100+ results for 'windowscommand'
Not the results you expected?
widget_delegate.cc (https://bitbucket.org/peixuan/chromium_r197479_base.git) C++ · 186 lines
native_window_views_win.cc (https://gitlab.com/lishaomin/electron) C++ · 145 lines
LauncherUtil.java (https://github.com/jenkinsci/shiningpanda-plugin.git) Java · 101 lines
window_delegate.h (https://github.com/draco003/chromium.git) C Header · 143 lines
Helpers.java (https://bitbucket.org/lp/programming-multiactivities.git) Java · 94 lines
CommandLineJavaCompilerArgumentsGenerator.java (https://github.com/andrewhj-mn/gradle.git) Java · 76 lines
37 List<String> remainingArgs = new JavaCompilerArgumentsBuilder(spec).includeSourceFiles(true).build();
38 Iterable<String> allArgs = Iterables.concat(launcherOptions, remainingArgs);
39 if (exceedsWindowsCommandLineLengthLimit(allArgs)) {
40 return Iterables.concat(launcherOptions, shortenArgs(spec.getTempDir(), remainingArgs));
41 }
43 }
45 private boolean exceedsWindowsCommandLineLengthLimit(Iterable<String> args) {
46 int length = 0;
47 for (String arg : args) {
text.h (https://github.com/matulef/mongo.git) C Header · 162 lines
ntservice.h (https://gitlab.com/0072016/0072016-ApplePayDevice-) C Header · 103 lines
widget_delegate.h (https://github.com/snowlesswinter/framework.git) C Header · 181 lines
windowsCommands.test.ts (https://github.com/microsoft/nni.git) TypeScript · 102 lines
8 import * as component from '../../../common/component';
9 import { cleanupUnitTest, prepareUnitTest } from '../../../common/utils';
10 import { WindowsCommands } from '../extends/windowsCommands';
13 describe('Unit Test for Windows Commands', () => {
15 let windowsCommands: WindowsCommands
17 before(() => {
27 beforeEach(() => {
28 windowsCommands = component.get(WindowsCommands);
29 });
main.cc (https://gitlab.com/generic-library/webrtc) C++ · 93 lines
text_test.cpp (https://github.com/paralect/mongo.git) C++ · 92 lines
52 }
54 TEST(WindowsCommandLineConstruction, EmptyCommandLine) {
55 ASSERT_EQUALS("", constructUtf8WindowsCommandLine(svec(NULL)));
56 }
58 TEST(WindowsCommandLineConstruction, NothingToQuote) {
59 ASSERT_EQUALS("abc d \"\" e", constructUtf8WindowsCommandLine(svec("abc", "d", "", "e", NULL)));
60 }
62 TEST(WindowsCommandLineConstruction, ThingsToQuote) {
63 ASSERT_EQUALS("a\\\\\\b \"de fg\" h",
64 constructUtf8WindowsCommandLine(svec("a\\\\\\b", "de fg", "h", NULL)));
65 ASSERT_EQUALS("\"a\\\\b c\" d e",
66 constructUtf8WindowsCommandLine(svec("a\\\\b c", "d", "e", NULL)));
67 ASSERT_EQUALS("\"a \\\\\" \\", constructUtf8WindowsCommandLine(svec("a \\", "\\", NULL)));
ParseCLICommand.java (https://bitbucket.org/akshayk1987/javaexamples.git) Java · 100 lines
CommandsUtils.java (https://github.com/fasol2002/jboss-plugin.git) Java · 159 lines
cmSeparateArgumentsCommand.cxx (https://github.com/thewtex/CMake.git) C++ · 109 lines
ArgumentFlagsTests.cs (https://github.com/reubeno/NClap.git) C# · 144 lines
12 public class ArgumentFlagsTests
13 {
14 [ArgumentSet(Style = ArgumentSetStyle.WindowsCommandLine)]
15 public class RequiredArguments<T>
16 {
19 }
21 [ArgumentSet(Style = ArgumentSetStyle.WindowsCommandLine)]
22 public class AtMostOnceArguments<T>
23 {
26 }
28 [ArgumentSet(Style = ArgumentSetStyle.WindowsCommandLine)]
29 public class AtLeastOnceArguments<T>
30 {
PythonCommand.java (https://github.com/jenkinsci/shiningpanda-plugin.git) Java · 95 lines
text_test.cpp (https://github.com/tadmarshall/mongo.git) C++ · 81 lines
39 }
41 TEST(WindowsCommandLineConstruction, EmptyCommandLine) {
42 ASSERT_EQUALS("", constructUtf8WindowsCommandLine(svec(NULL)));
43 }
45 TEST(WindowsCommandLineConstruction, NothingToQuote) {
46 ASSERT_EQUALS("abc d \"\" e",
47 constructUtf8WindowsCommandLine(svec("abc", "d", "", "e", NULL)));
48 }
50 TEST(WindowsCommandLineConstruction, ThingsToQuote) {
51 ASSERT_EQUALS("a\\\\\\b \"de fg\" h",
52 constructUtf8WindowsCommandLine(svec("a\\\\\\b", "de fg", "h", NULL)));
53 ASSERT_EQUALS("\"a\\\\b c\" d e",
54 constructUtf8WindowsCommandLine(svec("a\\\\b c", "d" , "e", NULL)));
55 ASSERT_EQUALS("\"a \\\\\" \\",
56 constructUtf8WindowsCommandLine(svec("a \\", "\\", NULL)));
Fake.DotNet.NuGet.fs (https://github.com/fsharp/FAKE.git) F# · 122 lines
13 NuGet.NuGetPushParams.Create()
14 |> NuGet.toPushCliArgs
15 |> Args.toWindowsCommandLine
17 Expect.isEmpty cli "Empty push args."
33 param
34 |> NuGet.toPushCliArgs
35 |> Args.toWindowsCommandLine
37 let expected = "-ApiKey abc123 -DisableBuffering -NoSymbols -NoServiceEndpoint -Source MyNuGetSource -SymbolApiKey MySymbolApiKey -SymbolSource MySymbolSource -Timeout 360"
Command.java (https://github.com/jenkinsci/shiningpanda-plugin.git) Java · 247 lines
ntservice_test.cpp (https://github.com/tadmarshall/mongo.git) C++ · 110 lines
text.h (https://github.com/RedBeard0531/mongo.git) C Header · 118 lines
93 # endif
95 class WindowsCommandLine {
96 MONGO_DISALLOW_COPYING(WindowsCommandLine);
100 public:
101 WindowsCommandLine(int argc, wchar_t* argvW[], wchar_t* envpW[]);
102 ~WindowsCommandLine();
114 * http://msdn.microsoft.com/en-us/library/windows/desktop/17w5ykft(v=vs.85).aspx
115 */
116 std::string constructUtf8WindowsCommandLine(const std::vector<std::string>& argv);
118 } // namespace mongo
cmd.js (https://gitlab.com/boxnia/NFU_MOVIL) JavaScript · 120 lines
text.cpp (https://github.com/matulef/mongo.git) C++ · 141 lines
commands_test.go (https://gitlab.com/klauer/caddy) Go · 291 lines
71 }
73 func TestParseWindowsCommand(t *testing.T) {
74 tests := []struct {
75 input string
152 errorSuffix := fmt.Sprintf(" Command to parse: [%s]", test.input)
154 actual := parseWindowsCommand(test.input)
155 if len(actual) != len(test.expected) {
156 t.Errorf(errorPrefix+"Expected %d parts, got %d: %#v."+errorSuffix, len(test.expected), len(actual), actual)
WindowsCommand.java (https://github.com/jenkinsci/shiningpanda-plugin.git) Java · 127 lines
task_manager_view.h (git://github.com/chromium/chromium.git) C Header · 132 lines
ntservice.h (https://github.com/tadmarshall/mongo.git) C Header · 85 lines
ProcessBuilder.java (https://github.com/JetBrains/intellij-community.git) Java · 126 lines
Launcher.java (https://bitbucket.org/ianspigeon/applauncher.git) Java · 153 lines
plugin.go (https://github.com/instrumenta/conftest.git) Go · 207 lines
91 var err error
92 if runtime.GOOS == "windows" {
93 command, arguments, err = parseWindowsCommand(expandedCommand, args)
94 } else {
95 command, arguments, err = parseCommand(expandedCommand, args)
191 }
193 func parseWindowsCommand(command string, extraArgs []string) (string, []string, error) {
194 executable, arguments, err := parseCommand(command, extraArgs)
195 if err != nil {
GroupCCS.java (https://bitbucket.org/lp/programming-multiactivities.git) Java · 148 lines
condaActivationProvider.ts (https://github.com/DonJayamanne/pythonVSCode.git) TypeScript · 150 lines
98 default:
99 if (this.platform.isWindows) {
100 return this.getWindowsCommands(condaEnv);
101 } else {
102 return this.getUnixCommands(condaEnv, await this.condaService.getCondaFile());
120 }
122 public async getWindowsCommands(condaEnv: string): Promise<string[] | undefined> {
123 const activate = await this.getWindowsActivateCommand();
124 return [`${activate} ${condaEnv.toCommandArgument()}`];
task_manager_view.h (https://github.com/chromium/chromium.git) C Header · 130 lines
common.py (https://github.com/giantbranch/python-hacker-code.git) Python · 110 lines
actions.js (https://github.com/DevExpress/testcafe.git) JavaScript · 491 lines
CommandFactory.scala (https://bitbucket.org/mehmedbasic/scalaudiobookconverter.git) Scala · 40 lines
ArgumentListBuilderTest.java (https://github.com/pfeuffer/hudson.git) Java · 125 lines
108 @Test
109 public void testToWindowsCommand() {
110 ArgumentListBuilder builder = new ArgumentListBuilder(
111 "ant.bat", "-Dfoo1=abc", // nothing special, no quotes
121 + " \"-Dfoo8=% %\"Q\"ED% %\"c\"omspec% %-%(%.%\""
122 + " -Dfoo9=%'''%%@% && exit %%ERRORLEVEL%%\"" },
123 builder.toWindowsCommand().toCommandArray());
124 }
125 }
Fake.DotNet.Cli.fs (https://github.com/fsharp/FAKE.git) F# · 145 lines
19 DotNet.NuGetPushOptions.Create().PushParams
20 |> DotNet.buildNugetPushArgs
21 |> Args.toWindowsCommandLine
23 Expect.isEmpty cli "Empty push args."
39 param
40 |> DotNet.buildNugetPushArgs
41 |> Args.toWindowsCommandLine
43 let expected = "--disable-buffering --api-key abc123 --no-symbols --no-service-endpoint --source MyNuGetSource --symbol-api-key MySymbolApiKey --symbol-source MySymbolSource --timeout 300"
52 param
53 |> DotNet.buildPublishArgs
54 |> Args.toWindowsCommandLine
56 let expected = "--configuration Release --self-contained=false"
dbtests.cpp (https://github.com/tadmarshall/mongo.git) C++ · 59 lines
44 // In Windows, wmain() is an alternate entry point for main(), and receives the same parameters
45 // as main() but encoded in Windows Unicode (UTF-16); "wide" 16-bit wchar_t characters. The
46 // WindowsCommandLine object converts these wide character strings to a UTF-8 coded equivalent
47 // and makes them available through the argv() and envp() members. This enables dbtestsMain()
48 // to process UTF-8 encoded arguments and environment variables without regard to platform.
49 int wmain(int argc, wchar_t* argvW[], wchar_t* envpW[]) {
50 WindowsCommandLine wcl(argc, argvW, envpW);
51 int exitCode = dbtestsMain(argc, wcl.argv(), wcl.envp());
52 ::_exit(exitCode);
text.h (https://gitlab.com/0072016/0072016-ApplePayDevice-) C Header · 127 lines
98 #endif
100 class WindowsCommandLine {
101 MONGO_DISALLOW_COPYING(WindowsCommandLine);
105 public:
106 WindowsCommandLine(int argc, wchar_t* argvW[], wchar_t* envpW[]);
107 ~WindowsCommandLine();
123 * http://msdn.microsoft.com/en-us/library/windows/desktop/17w5ykft(v=vs.85).aspx
124 */
125 std::string constructUtf8WindowsCommandLine(const std::vector<std::string>& argv);
127 } // namespace mongo
JBossStopMojo.java (https://github.com/polopoly/embedded-jboss-maven-plugin.git) Java · 142 lines
menubarcommand.h (https://github.com/opentoonz/opentoonz.git) C Header · 280 lines
CreateWindowsCommandTest.as (https://github.com/GunioRobot/crayon.git) ActionScript · 106 lines
15 import org.voisen.crayon.view.editor.EditorWindow;
17 public class CreateWindowsCommandTest
18 {
19 //--------------------------------------------------------------------------
23 //--------------------------------------------------------------------------
25 protected var command:CreateWindowsCommand;
27 //--------------------------------------------------------------------------
34 public function setUp():void
35 {
36 command = new CreateWindowsCommand();
38 Async.proceedOnEvent(this, prepare(MediatorMap), Event.COMPLETE);
args.cpp (https://github.com/Syniurge/Calypso.git) C++ · 126 lines
task_manager_view.h (https://github.com/ric2b/Vivaldi-browser.git) C Header · 130 lines
escape_unittest.cc (https://gitlab.com/jonnialva90/iridium-browser) C++ · 60 lines
pypykatz_rekall.py (https://github.com/skelsec/pypykatz.git) Python · 99 lines
AzureBatchRuntimeConfigurationCreator.java (https://github.com/apache/reef.git) Java · 87 lines
23 import org.apache.reef.runtime.azbatch.util.command.CommandBuilder;
24 import org.apache.reef.runtime.azbatch.util.command.LinuxCommandBuilder;
25 import org.apache.reef.runtime.azbatch.util.command.WindowsCommandBuilder;
26 import org.apache.reef.tang.formats.ConfigurationModule;
27 import org.apache.reef.tang.formats.ConfigurationModuleBuilder;
53 if (isWindows) {
54 builder = builder.bindImplementation(CommandBuilder.class, WindowsCommandBuilder.class);
55 } else {
56 builder = builder.bindImplementation(CommandBuilder.class, LinuxCommandBuilder.class);
ConversionCommandFactory.scala (https://bitbucket.org/mehmedbasic/scalaudiobookconverter.git) Scala · 49 lines
text.h (https://github.com/paralect/mongo.git) C Header · 122 lines
94 class WindowsCommandLine {
95 WindowsCommandLine(const WindowsCommandLine&) = delete;
96 WindowsCommandLine& operator=(const WindowsCommandLine&) = delete;
100 public:
101 WindowsCommandLine(int argc, wchar_t* argvW[], wchar_t* envpW[]);
102 ~WindowsCommandLine();
118 * http://msdn.microsoft.com/en-us/library/windows/desktop/17w5ykft(v=vs.85).aspx
119 */
120 std::string constructUtf8WindowsCommandLine(const std::vector<std::string>& argv);
122 } // namespace mongo
native_window_observer.h (https://gitlab.com/lishaomin/electron) C Header · 70 lines
TestWindowsCommand.java (https://github.com/jenkinsci/shiningpanda-plugin.git) Java · 39 lines
24 import junit.framework.TestCase;
26 public class TestWindowsCommand extends TestCase {
28 public void testConvertCommand() throws Exception {
29 WindowsCommand command = new WindowsCommand("Hello ${Who} and $Who!\nls toto/tutu", true, true);
30 assertEquals("Hello %Who% and %Who%!\nls toto\\tutu\r\nexit %ERRORLEVEL%", command.getContents());
31 }
33 public void testDoNotConvertCommand() throws Exception {
34 String contents = "Hello ${Who} and $Who2!\nls toto/tutu";
35 WindowsCommand command = new WindowsCommand(contents, true, false);
36 assertEquals(contents + "\r\nexit %ERRORLEVEL%", command.getContents());
37 }
Execution.cs (https://github.com/mvelazc0/PurpleSharp.git) C# · 146 lines
SSH.fs (https://github.com/fsharp/FAKE.git) F# · 63 lines
CWindowsCommandLineHelper.cs (https://realhanhud.svn.codeplex.com/svn) C# · 107 lines
GetUIAWindowsCommand.cs (https://hg.codeplex.com/uiautomation) C# · 225 lines
childProcess.test.ts (https://github.com/aws/aws-toolkit-vscode.git) TypeScript · 434 lines
48 fs.mkdirSync(subfolder)
50 writeWindowsCommandFile(command)
52 const childProcess = new ChildProcess(command)
207 fs.mkdirSync(subfolder)
209 writeWindowsCommandFile(command)
211 const childProcess = new ChildProcess(command)
415 }
417 function writeWindowsCommandFile(filename: string): void {
418 fs.writeFileSync(filename, `@echo OFF${os.EOL}echo hi`)
419 }
CommandLineJavaCompilerArgumentsGenerator.java (https://github.com/xinthink/gradle.git) Java · 84 lines
45 List<String> remainingArgs = new JavaCompilerArgumentsBuilder(spec).includeSourceFiles(true).build();
46 Iterable<String> allArgs = Iterables.concat(launcherOptions, remainingArgs);
47 if (exceedsWindowsCommandLineLengthLimit(allArgs)) {
48 return Iterables.concat(launcherOptions, shortenArgs(remainingArgs));
49 }
51 }
53 private boolean exceedsWindowsCommandLineLengthLimit(Iterable<String> args) {
54 int length = 0;
55 for (String arg : args) {
Slicer3SlicerBaseGUITest.cxx (https://github.com/LinjieChen/Slicer3.git) C++ · 74 lines
OtherWindowsCommand.cs (https://github.com/ErikEJ/SqlCeToolbox.git) C# · 101 lines
10 /// Command handler
11 /// </summary>
12 internal sealed class OtherWindowsCommand
13 {
14 /// <summary>
29 /// <summary>
30 /// Initializes a new instance of the <see cref="OtherWindowsCommand"/> class.
31 /// Adds our command handlers for menu (commands must exist in the command table file)
32 /// </summary>
33 /// <param name="package">Owner package, not null.</param>
34 private OtherWindowsCommand(Package package)
35 {
36 if (package == null)
AnswerFileParsingTests.cs (https://github.com/reubeno/NClap.git) C# · 156 lines
FileManagerLauncher.java (https://bitbucket.org/ianspigeon/applauncher.git) Java · 81 lines
SlateUpdatableBuffer.cpp (https://github.com/windystrife/UnrealEngine_NVIDIAGameWorks.git) C++ · 106 lines
mongod.cpp (https://github.com/mongodb/mongo.git) C++ · 49 lines
37 // In Windows, wmain() is an alternate entry point for main(), and receives the same parameters
38 // as main() but encoded in Windows Unicode (UTF-16); "wide" 16-bit wchar_t characters. The
39 // WindowsCommandLine object converts these wide character strings to a UTF-8 coded equivalent
40 // and makes them available through the argv() and envp() members. This enables mongoDbMain()
41 // to process UTF-8 encoded arguments and environment variables without regard to platform.
42 int wmain(int argc, wchar_t* argvW[]) {
43 mongo::quickExit(mongo::mongod_main(argc, mongo::WindowsCommandLine(argc, argvW).argv()));
44 }
45 #else
RemoteProgram.pm (https://github.com/colloquium/spacewalk.git) Perl · 36 lines
hibinfo.py (https://github.com/giantbranch/python-hacker-code.git) Python · 83 lines
GetActivityWindowTests.cs (https://github.com/Azure/azure-powershell.git) C# · 259 lines
30 private const string activityName = "activity";
32 private GetAzureDataFactoryActivityWindowsCommand cmdlet;
34 private List<PSActivityWindow> expectedDf;
83 public void CanListDataFactoryActivityWindows()
84 {
85 cmdlet = new GetAzureDataFactoryActivityWindowsCommand()
86 {
87 CommandRuntime = commandRuntimeMock.Object,
115 public void CanListPipelineActivityWindows()
116 {
117 cmdlet = new GetAzureDataFactoryActivityWindowsCommand()
118 {
119 CommandRuntime = commandRuntimeMock.Object,
CreateWindowsCommand.as (https://github.com/GunioRobot/crayon.git) ActionScript · 65 lines
27 import org.voisen.crayon.view.editor.EditorWindow;
29 public class CreateWindowsCommand extends SignalCommand
30 {
31 //--------------------------------------------------------------------------
44 //--------------------------------------------------------------------------
46 public function CreateWindowsCommand()
47 {
48 }
Aws_json1_1.ts (https://github.com/aws/aws-sdk-js-v3.git) TypeScript · 21434 lines
SSMClient.ts (https://github.com/aws/aws-sdk-js-v3.git) TypeScript · 829 lines
149 } from "./commands/DescribeMaintenanceWindowTasksCommand";
150 import {
151 DescribeMaintenanceWindowsCommandInput,
152 DescribeMaintenanceWindowsCommandOutput,
153 } from "./commands/DescribeMaintenanceWindowsCommand";
154 import {
155 DescribeMaintenanceWindowsForTargetCommandInput,
467 | DescribeMaintenanceWindowTargetsCommandInput
468 | DescribeMaintenanceWindowTasksCommandInput
469 | DescribeMaintenanceWindowsCommandInput
470 | DescribeMaintenanceWindowsForTargetCommandInput
471 | DescribeOpsItemsCommandInput
591 | DescribeMaintenanceWindowTargetsCommandOutput
592 | DescribeMaintenanceWindowTasksCommandOutput
593 | DescribeMaintenanceWindowsCommandOutput
594 | DescribeMaintenanceWindowsForTargetCommandOutput
595 | DescribeOpsItemsCommandOutput
SSM.ts (https://github.com/aws/aws-sdk-js-v3.git) TypeScript · 4971 lines
Aws_json1_1.ts (https://github.com/aws/aws-sdk-js-v3.git) TypeScript · 3630 lines
6 import { CreateLocationEfsCommandInput, CreateLocationEfsCommandOutput } from "../commands/CreateLocationEfsCommand";
7 import {
8 CreateLocationFsxWindowsCommandInput,
9 CreateLocationFsxWindowsCommandOutput,
10 } from "../commands/CreateLocationFsxWindowsCommand";
11 import { CreateLocationNfsCommandInput, CreateLocationNfsCommandOutput } from "../commands/CreateLocationNfsCommand";
12 import {
26 } from "../commands/DescribeLocationEfsCommand";
27 import {
28 DescribeLocationFsxWindowsCommandInput,
29 DescribeLocationFsxWindowsCommandOutput,
30 } from "../commands/DescribeLocationFsxWindowsCommand";
31 import {
32 DescribeLocationNfsCommandInput,
DataSync.ts (https://github.com/aws/aws-sdk-js-v3.git) TypeScript · 1133 lines
12 } from "./commands/CreateLocationEfsCommand";
13 import {
14 CreateLocationFsxWindowsCommand,
15 CreateLocationFsxWindowsCommandInput,
16 CreateLocationFsxWindowsCommandOutput,
17 } from "./commands/CreateLocationFsxWindowsCommand";
55 } from "./commands/DescribeLocationEfsCommand";
56 import {
57 DescribeLocationFsxWindowsCommand,
58 DescribeLocationFsxWindowsCommandInput,
59 DescribeLocationFsxWindowsCommandOutput,
60 } from "./commands/DescribeLocationFsxWindowsCommand";
246 */
247 public createLocationFsxWindows(
248 args: CreateLocationFsxWindowsCommandInput,
249 options?: __HttpHandlerOptions
250 ): Promise<CreateLocationFsxWindowsCommandOutput>;
2ab2aa96383b2234ba94eb697c227e6ddcf1f696Plugins.fs (https://github.com/aliostad/deep-learning-lang-detection.git) F# · 193 lines
74 let! (result : ProcessResults<unit>) =
75 (sprintf "plugin inspect %s " pluginInfo.ImageName)
76 |> Arguments.OfWindowsCommandLine
77 |> DockerWrapper.createProcess
78 |> wrapProcess
82 do!
83 (sprintf "plugin disable --force %s" pluginInfo.ImageName)
84 |> Arguments.OfWindowsCommandLine
85 |> DockerWrapper.createProcess
86 |> CreateProcess.ensureExitCode
91 (sprintf "plugin set %s %s"
92 pluginInfo.ImageName settingsCmdLine)
93 |> Arguments.OfWindowsCommandLine
94 |> DockerWrapper.createProcess
95 |> CreateProcess.ensureExitCode
WindowsCommandRetriever.java (https://github.com/bluepimento/openflexo.git) Java · 73 lines
WindowsCommandBuilder.java (https://github.com/apache/reef.git) Java · 86 lines
TestNGIntegrationTest.groovy (https://github.com/danmueller/gradle.git) Groovy · 119 lines
common.go (https://github.com/elastic/beats.git) Go · 137 lines
modules.py (https://github.com/giantbranch/python-hacker-code.git) Python · 89 lines
28 import volatility.utils as utils
30 class Modules(common.AbstractWindowsCommand):
31 """Print list of loaded modules"""
32 def __init__(self, config, *args, **kwargs):
33 common.AbstractWindowsCommand.__init__(self, config, *args, **kwargs)
34 config.add_option("PHYSICAL-OFFSET", short_option = 'P', default = False,
35 cache_invalidator = False, help = "Physical Offset", action = "store_true")
66 return result
68 class UnloadedModules(common.AbstractWindowsCommand):
69 """Print list of unloaded modules"""
CrayonSuite.as (https://github.com/GunioRobot/crayon.git) ActionScript · 26 lines
1 package org.voisen.crayon
2 {
3 import org.voisen.crayon.command.startup.CreateWindowsCommandTest;
4 import org.voisen.crayon.view.editor.EditorWindowTest;
14 //--------------------------------------------------------------------------
16 public var createWindowsCommandTest:CreateWindowsCommandTest;
18 //--------------------------------------------------------------------------
CloseAllSQLResultWindowsAction.java (https://github.com/igorhvr/squirrel-sql.git) Java · 76 lines
50 /**
51 * Perform this action. Uses the <TT>CloseAllSQLResultWindowsCommand</TT>.
52 *
53 * @param evt The current event.
66 // Can't work with ISessionAction because if a result window is on top
67 // the session in a ISessionAction is null.
68 new CloseAllSQLResultWindowsCommand(activeSession.getSQLPanelAPIOfActiveSessionWindow()).execute();
69 }
70 }
sockets.py (https://github.com/giantbranch/python-hacker-code.git) Python · 72 lines
29 import volatility.protos as protos
31 class Sockets(common.AbstractWindowsCommand):
32 """Print list of open sockets"""
33 def __init__(self, config, *args, **kwargs):
34 common.AbstractWindowsCommand.__init__(self, config, *args, **kwargs)
35 config.add_option("PHYSICAL-OFFSET", short_option = 'P', default = False,
36 cache_invalidator = False,
bioskbd.py (https://github.com/giantbranch/python-hacker-code.git) Python · 64 lines
CloseAllSQLResultWindowsCommand.java (https://github.com/igorhvr/squirrel-sql.git) Java · 58 lines
29 * @author <A HREF="mailto:colbell@users.sourceforge.net">Colin Bell</A>
30 */
31 public class CloseAllSQLResultWindowsCommand implements ICommand
32 {
33 private final ISQLPanelAPI _api;
41 * Thrown if a <TT>null</TT> <TT>ISession</TT> passed.
42 */
43 public CloseAllSQLResultWindowsCommand(ISQLPanelAPI api)
44 {
45 super();
WindowsCommandLineProcessor.java (https://github.com/JetBrains/intellij-community.git) Java · 29 lines
9 * has ourMirrorClass initialized by the Bootstrap class; it calls the main instance of itself via reflection.
10 */
11 public final class WindowsCommandLineProcessor {
12 // The MainRunner class which is loaded in the main IDEA (non-bootstrap) classloader.
13 public static Class<?> ourMainRunnerClass;
ConcatCommandFactory.scala (https://bitbucket.org/mehmedbasic/scalaudiobookconverter.git) Scala · 44 lines
windows.py (https://github.com/Cisco-Talos/pyrebox.git) Python · 105 lines
DoubleQuotedArgumentsOnWindowsCommandLine.java (https://github.com/sgk/Arduino.git) Java · 35 lines
6 import java.io.File;
8 public class DoubleQuotedArgumentsOnWindowsCommandLine extends CommandLine {
10 public DoubleQuotedArgumentsOnWindowsCommandLine(String executable) {
12 }
14 public DoubleQuotedArgumentsOnWindowsCommandLine(File executable) {
15 super(executable);
16 }
18 public DoubleQuotedArgumentsOnWindowsCommandLine(CommandLine other) {
19 super(other);
20 }
StartupCommand.as (https://github.com/GunioRobot/crayon.git) ActionScript · 54 lines
injector.test.ts (https://github.com/khanhas/ueli.git) TypeScript · 135 lines
commands.go (https://gitlab.com/klauer/caddy) Go · 120 lines
18 if runtimeGoos == "windows" {
19 parts = parseWindowsCommand(command) // parse it Windows-style
20 } else {
21 parts, err = parseUnixCommand(command) // parse it Unix-style
45 }
47 // parseWindowsCommand parses windows command lines and
48 // returns the command and the arguments as an array. It
49 // should be able to parse commonly used command lines.
59 // of the shlex package because this function treats backslash
60 // characters properly.
61 func parseWindowsCommand(cmd string) []string {
62 const backslash = '\\'
63 const quote = '"'
build_windows.dart (https://github.com/flutter/flutter.git) Dart · 66 lines
index.ts (https://github.com/aws/aws-sdk-js-v3.git) TypeScript · 135 lines
47 export * from "./commands/DescribeMaintenanceWindowExecutionTaskInvocationsCommand";
48 export * from "./commands/DescribeMaintenanceWindowExecutionTasksCommand";
49 export * from "./commands/DescribeMaintenanceWindowsCommand";
50 export * from "./commands/DescribeMaintenanceWindowScheduleCommand";
51 export * from "./commands/DescribeMaintenanceWindowsForTargetCommand";
InterfaceTraffic.pm (https://github.com/colloquium/spacewalk.git) Perl · 31 lines
sessions.py (https://github.com/giantbranch/python-hacker-code.git) Python · 109 lines
SSHClientLauncher.java (https://bitbucket.org/ianspigeon/applauncher.git) Java · 37 lines
ESXClientLauncher.java (https://bitbucket.org/ianspigeon/applauncher.git) Java · 34 lines
shutdown.py (https://github.com/Cisco-Talos/pyrebox.git) Python · 110 lines
37 import struct
39 class ShutdownTime(common.AbstractWindowsCommand):
40 "Print ShutdownTime of machine from registry"
42 def __init__(self, config, *args, **kwargs):
43 common.AbstractWindowsCommand.__init__(self, config, *args, **kwargs)
44 config.add_option('HIVE-OFFSET', short_option = 'o',
45 help = 'Hive offset (virtual)', type = 'int')
index.ts (https://github.com/microsoft/react-native-windows.git) TypeScript · 93 lines
14 import {autoLinkCommand} from './runWindows/utils/autolink';
15 import {runWindowsCommand} from './runWindows/runWindows';
16 import {dependencyConfigWindows} from './config/dependencyConfig';
17 import {projectConfigWindows} from './config/projectConfig';
89 assertStableInterface;
91 export const commands = [autoLinkCommand, runWindowsCommand];
92 export const dependencyConfig = dependencyConfigWindows;
93 export const projectConfig = projectConfigWindows;
windows.js (https://github.com/dthree/cash.git) JavaScript · 145 lines
106 // Cash help.
107 let windowsHelpFlag = false;
108 const windowsCommandReject = 'is not recognized as an internal or external command';
110 /* istanbul ignore next */
116 proc.stderr.on('data', function (data) {
117 const str = data.toString('utf8');
118 if (windows && str.indexOf(windowsCommandReject) > -1) {
119 windowsHelpFlag = true;
120 return;