2 implementations of ICommand
Microsoft.DotNet.Cli.Utils (2)
BuiltInCommand.cs (1)
9public class BuiltInCommand : ICommand
Command.cs (1)
8public class Command(Process? process, bool trimTrailingNewlines = false, IDictionary<string, string?>? customEnvironmentVariables = null) : ICommand
48 references to ICommand
dotnet (18)
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\DotNetCommandFactory.cs (1)
23public ICommand Create(string commandName, IEnumerable<string> args, NuGetFramework? framework = null, string configuration = Constants.DefaultConfiguration)
Commands\Run\RunCommand.cs (11)
215var targetCommand = GetTargetCommand(launchProfileParseResult.Profile, projectFactory, cachedRunProperties, logger); 237internal ICommand GetTargetCommand(LaunchProfile? launchSettings, Func<ProjectCollection, ProjectInstance>? projectFactory, RunProperties? cachedRunProperties, FacadeLogger? logger) 396private ICommand GetTargetCommandForExecutable(ExecutableLaunchProfile launchSettings) 405var command = CommandFactoryUsingResolver.Create(commandSpec) 413private void SetEnvironmentVariables(ICommand command, LaunchProfile? launchSettings) 564private ICommand GetTargetCommandForProject(ProjectLaunchProfile? launchSettings, Func<ProjectCollection, ProjectInstance>? projectFactory, RunProperties? cachedRunProperties, FacadeLogger? logger) 566ICommand command; 639static ICommand CreateCommandFromRunProperties(RunProperties runProperties) 643var command = CommandFactoryUsingResolver.Create(commandSpec) 655static void SetRootVariableName(ICommand command, string runtimeIdentifier, string defaultAppHostRuntimeIdentifier, string targetFrameworkVersion) 667static ICommand CreateCommandForCscBuiltProgram(string entryPointFileFullPath, string[] args)
Commands\Tool\Install\ProjectRestorer.cs (1)
41var command = new DotNetCommandFactory(alwaysRunOutOfProc: true)
NugetPackageDownloader\FirstPartyNuGetPackageSigningVerifier.cs (1)
148var command = new DotNetCommandFactory(alwaysRunOutOfProc: true, currentWorkingDirectory)
Microsoft.DotNet.Cli.Utils (30)
BuiltInCommand.cs (10)
86public ICommand OnOutputLine(Action<string> handler) 98public ICommand OnErrorLine(Action<string> handler) 110public ICommand WorkingDirectory(string workingDirectory) 150public ICommand CaptureStdErr() 157public ICommand CaptureStdOut() 164public ICommand EnvironmentVariable(string name, string? value) 169public ICommand ForwardStdErr(TextWriter? to = null, bool onlyIfVerbose = false, bool ansiPassThrough = true) 174public ICommand ForwardStdOut(TextWriter? to = null, bool onlyIfVerbose = false, bool ansiPassThrough = true) 178public ICommand SetCommandArgs(string commandArgs) 183public ICommand StandardOutputEncoding(Encoding encoding)
Command.cs (10)
94public ICommand WorkingDirectory(string? projectDirectory) 100public ICommand EnvironmentVariable(string name, string? value) 107public ICommand StandardOutputEncoding(Encoding encoding) 113public ICommand CaptureStdOut() 121public ICommand CaptureStdErr() 129public ICommand ForwardStdOut(TextWriter? to = null, bool onlyIfVerbose = false, bool ansiPassThrough = true) 149public ICommand ForwardStdErr(TextWriter? to = null, bool onlyIfVerbose = false, bool ansiPassThrough = true) 169public ICommand OnOutputLine(Action<string> handler) 178public ICommand OnErrorLine(Action<string> handler) 199public 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);