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