9 references to EscapeSingleArg
dotnet (8)
Commands\Run\CSharpCompilerCommand.cs (1)
316
return ArgumentEscaper.
EscapeSingleArg
(arg, additionalShouldSurroundWithQuotes: static (string arg) =>
Commands\Run\RunCommandSelector.cs (2)
477
Reporter.Output.WriteLine($"{CliCommandStrings.RunCommandExampleText}: {_commandName} --device {ArgumentEscaper.
EscapeSingleArg
(devices[0].Id)}");
523
Reporter.Error.WriteLine($"{CliCommandStrings.RunCommandExampleText}: {_commandName} --device {ArgumentEscaper.
EscapeSingleArg
(devices[0].Id)}");
Commands\Test\MTP\TestApplication.cs (5)
226
builder.Append($" {TestCommandDefinition.MicrosoftTestingPlatform.ResultsDirectoryOptionName} {ArgumentEscaper.
EscapeSingleArg
(resultsDirectoryPath)}");
231
builder.Append($" {TestCommandDefinition.MicrosoftTestingPlatform.ConfigFileOptionName} {ArgumentEscaper.
EscapeSingleArg
(configFilePath)}");
236
builder.Append($" {TestCommandDefinition.MicrosoftTestingPlatform.DiagnosticOutputDirectoryOptionName} {ArgumentEscaper.
EscapeSingleArg
(diagnosticOutputDirectoryPath)}");
241
builder.Append($" {ArgumentEscaper.
EscapeSingleArg
(arg)}");
244
builder.Append($" {CliConstants.ServerOptionKey} {CliConstants.ServerOptionValue} {CliConstants.DotNetTestPipeOptionKey} {ArgumentEscaper.
EscapeSingleArg
(_pipeName)}");
Microsoft.DotNet.Cli.Utils (1)
ArgumentEscaper.cs (1)
61
escapedArgs.Add(
EscapeSingleArg
(arg));