2 implementations of ICommand
Microsoft.DotNet.Cli.Utils (2)
BuiltInCommand.cs (1)
11
public class BuiltInCommand :
ICommand
Command.cs (1)
10
public class Command(Process? process, bool trimTrailingNewlines = false, IDictionary<string, string?>? customEnvironmentVariables = null) :
ICommand
51 references to ICommand
dotnet (16)
BuildServer\RazorServer.cs (1)
35
var
command = _commandFactory
BuildServer\VBCSCompilerServer.cs (1)
64
static void execute(
ICommand
command, ref List<string> errors)
CommandFactory\CommandFactory.cs (1)
13
public
ICommand
Create(
CommandFactory\ICommandFactory.cs (1)
13
ICommand
Create(
Commands\Run\RunCommand.cs (9)
158
ICommand
targetCommand = GetTargetCommand(projectFactory, cachedRunProperties);
183
internal void ApplyLaunchSettingsProfileToCommand(
ICommand
targetCommand, ProjectLaunchSettingsModel? launchSettings)
384
internal
ICommand
GetTargetCommand(Func<ProjectCollection, ProjectInstance>? projectFactory, RunProperties? cachedRunProperties)
410
var
command = CreateCommandFromRunProperties(runProperties);
438
static
ICommand
CreateCommandFromRunProperties(RunProperties runProperties)
442
var
command = CommandFactoryUsingResolver.Create(commandSpec)
454
static void SetRootVariableName(
ICommand
command, string runtimeIdentifier, string defaultAppHostRuntimeIdentifier, string targetFrameworkVersion)
466
static
ICommand
CreateCommandForCscBuiltProgram(string entryPointFileFullPath)
471
var
command = CommandFactoryUsingResolver.Create(commandSpec)
Commands\Tool\Install\ProjectRestorer.cs (1)
41
var
command = new DotNetCommandFactory(alwaysRunOutOfProc: true)
DotNetCommandFactory.cs (1)
19
public
ICommand
Create(
NugetPackageDownloader\FirstPartyNuGetPackageSigningVerifier.cs (1)
82
var
command = new DotNetCommandFactory(alwaysRunOutOfProc: true, currentWorkingDirectory)
dotnet.Tests (2)
BuildServerTests\RazorServerTests.cs (1)
132
var commandMock = new Mock<
ICommand
>(MockBehavior.Strict);
BuildServerTests\VBCSCompilerServerTests.cs (1)
41
var commandMock = new Mock<
ICommand
>(MockBehavior.Strict);
Microsoft.DotNet.Cli.Utils (30)
BuiltInCommand.cs (10)
88
public
ICommand
OnOutputLine(Action<string> handler)
100
public
ICommand
OnErrorLine(Action<string> handler)
112
public
ICommand
WorkingDirectory(string workingDirectory)
152
public
ICommand
CaptureStdErr()
159
public
ICommand
CaptureStdOut()
166
public
ICommand
EnvironmentVariable(string name, string? value)
171
public
ICommand
ForwardStdErr(TextWriter? to = null, bool onlyIfVerbose = false, bool ansiPassThrough = true)
176
public
ICommand
ForwardStdOut(TextWriter? to = null, bool onlyIfVerbose = false, bool ansiPassThrough = true)
180
public
ICommand
SetCommandArgs(string commandArgs)
185
public
ICommand
StandardOutputEncoding(Encoding encoding)
Command.cs (10)
96
public
ICommand
WorkingDirectory(string? projectDirectory)
102
public
ICommand
EnvironmentVariable(string name, string? value)
109
public
ICommand
StandardOutputEncoding(Encoding encoding)
115
public
ICommand
CaptureStdOut()
123
public
ICommand
CaptureStdErr()
131
public
ICommand
ForwardStdOut(TextWriter? to = null, bool onlyIfVerbose = false, bool ansiPassThrough = true)
151
public
ICommand
ForwardStdErr(TextWriter? to = null, bool onlyIfVerbose = false, bool ansiPassThrough = true)
171
public
ICommand
OnOutputLine(Action<string> handler)
180
public
ICommand
OnErrorLine(Action<string> handler)
201
public
ICommand
SetCommandArgs(string commandArgs)
ICommand.cs (10)
10
ICommand
WorkingDirectory(string projectDirectory);
12
ICommand
EnvironmentVariable(string name, string? value);
14
ICommand
CaptureStdOut();
16
ICommand
CaptureStdErr();
18
ICommand
ForwardStdOut(TextWriter? to = null, bool onlyIfVerbose = false, bool ansiPassThrough = true);
20
ICommand
ForwardStdErr(TextWriter? to = null, bool onlyIfVerbose = false, bool ansiPassThrough = true);
22
ICommand
OnOutputLine(Action<string> handler);
24
ICommand
OnErrorLine(Action<string> handler);
26
ICommand
SetCommandArgs(string commandArgs);
28
ICommand
StandardOutputEncoding(Encoding encoding);
Microsoft.NET.Build.Tests (2)
AspNetCoreOnFullFramework.cs (1)
92
ICommand
toolCommand = toolCommandSpec.ToCommand().CaptureStdOut();
GivenThatWeWantToGenerateADepsFileForATool.cs (1)
235
ICommand
toolCommand = toolCommandSpec.ToCommand().CaptureStdOut();
Microsoft.NET.TestFramework (1)
Commands\TestCommand.cs (1)
149
var
command = spec