3 instantiations of Command
dotnet (1)
CommandFactory\CommandFactoryUsingResolver.cs (1)
123
return new
Command
(_process, customEnvironmentVariables: commandSpec.EnvironmentVariables);
dotnet-new.IntegrationTests (1)
CommonTemplatesTests.cs (1)
159
new
Command
(process)
Microsoft.NET.TestFramework (1)
Commands\SdkCommandSpec.cs (1)
35
var ret = new
Command
(process, trimTrailingNewlines: true);
16 references to Command
ArgumentForwarding.Tests (1)
ArgumentForwardingTests.cs (1)
193
var
cmd = CommandFactoryUsingResolver.Create(s_reflectorCmdName, rawEvaluatedArgument);
dotnet (10)
CommandFactory\CommandFactoryUsingResolver.cs (6)
17
public static
Command
CreateDotNet(
37
public static
Command
Create(
57
public static
Command
Create(
81
public static
Command
CreateOrThrow(string commandName, CommandSpec? commandSpec)
95
var
command = Create(commandSpec);
101
public static
Command
Create(CommandSpec commandSpec)
Commands\Run\Api\RunApiCommand.cs (2)
114
var
targetCommand = (Utils.
Command
)runCommand.GetTargetCommand(buildCommand.CreateProjectInstance, cachedRunProperties: null);
Commands\Tool\Execute\ToolExecuteCommand.cs (1)
136
var
command = CommandFactoryUsingResolver.Create(commandSpec);
Program.cs (1)
270
var
resolvedCommand = CommandFactoryUsingResolver.CreateOrThrow(commandName, resolvedCommandSpec);
Microsoft.DotNet.Cli.Utils (2)
Command.cs (2)
48
Reporter.Verbose.WriteLine($"> {
Command
.FormatProcessInfo(_process.StartInfo)}".White());
76
Command
.FormatProcessInfo(_process.StartInfo),
Microsoft.NET.TestFramework (3)
Commands\SdkCommandSpec.cs (2)
29
public
Command
ToCommand(bool doNotEscapeArguments = false)
35
var
ret = new Command(process, trimTrailingNewlines: true);
Commands\TestCommand.cs (1)
176
var result = ((
Command
)command).Execute(ProcessStartedHandler);