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