51 writes to CommandName
dotnet (2)
CommandFactory\CommandResolver.cs (1)
44
CommandName
= commandName,
Commands\Tool\Run\ToolRunCommand.cs (1)
34
CommandName
= $"dotnet-{toolCommandName}",
dotnet.Tests (49)
CommandFactoryTests\GivenADotnetToolsCommandResolver.cs (3)
26
CommandName
= null,
39
CommandName
= "nonexistent-command",
52
CommandName
= "dotnet-watch",
CommandFactoryTests\GivenALocalToolsCommandResolver.cs (7)
42
CommandName
= "dotnet-a",
61
CommandName
= "dotnet-a",
78
CommandName
= "-d",
149
CommandName
= $"dotnet-{toolCommandNameA.ToString()}",
173
CommandName
= $"dotnet-{toolCommandNameA.ToString()}",
219
CommandName
= "dotnet-a",
224
CommandName
= "dotnet-dotnet-a",
CommandFactoryTests\GivenAnAppBaseCommandResolver.cs (8)
20
CommandName
= null,
36
CommandName
= "nonexistent-command",
55
CommandName
= "appbasetestcommand1",
79
CommandName
= "appbasetestsubdircommand",
98
CommandName
= "appbasetestcommand1",
118
CommandName
= "appbasetestcommand1",
141
CommandName
= "appbasetestcommand1",
166
CommandName
= "someWrapCommand",
CommandFactoryTests\GivenAProjectDependencyCommandResolver.cs (4)
42
CommandName
= "dotnet-portable",
77
CommandName
= "dotnet-portable",
108
CommandName
= "nonexistent-command",
139
CommandName
= "dotnet-portable",
CommandFactoryTests\GivenAProjectPathCommandResolver.cs (10)
22
CommandName
= null,
39
CommandName
= "command",
56
CommandName
= "nonexistent-command",
77
CommandName
= "projectpathtestsubdircommand",
97
CommandName
= "projectpathtestcommand1",
121
CommandName
= "projectpathtestcommand1",
146
CommandName
= "projectpathexttest",
171
CommandName
= "projectpathtestcommand1",
195
CommandName
= "projectpathtestcommand1",
221
CommandName
= "cmdWrapCommand",
CommandFactoryTests\GivenAProjectToolsCommandResolver.cs (10)
34
CommandName
= null,
51
CommandName
= "command",
70
CommandName
= "command",
94
CommandName
= "nonexistent-command",
118
CommandName
= "dotnet-portable",
148
CommandName
= "dotnet-portable",
173
CommandName
= "dotnet-portable",
200
CommandName
= "dotnet-prefercliruntime",
228
CommandName
= "dotnet-portable",
311
CommandName
= "dotnet-portable",
CommandFactoryTests\GivenARootedCommandResolver.cs (5)
19
CommandName
= null,
35
CommandName
= "some/relative/path",
51
CommandName
= "/some/rooted/path",
68
CommandName
= "/some/rooted/path",
87
CommandName
= "/some/rooted/path",
CommandTests\Tool\Run\ToolRunCommandTests.cs (2)
38
CommandName
= "dotnet-a",
58
CommandName
= "dotnet-a",
39 references to CommandName
dotnet (34)
CommandFactory\CommandResolution\AbstractPathBasedCommandResolver.cs (2)
35
if (commandResolverArguments.
CommandName
== null)
48
commandResolverArguments.
CommandName
,
CommandFactory\CommandResolution\AppBaseCommandResolver.cs (1)
17
commandResolverArguments.
CommandName
);
CommandFactory\CommandResolution\AppBaseDllCommandResolver.cs (3)
15
if (commandResolverArguments.
CommandName
== null)
19
if (commandResolverArguments.
CommandName
.EndsWith(FileNameSuffixes.DotNet.DynamicLib))
22
commandResolverArguments.
CommandName
);
CommandFactory\CommandResolution\CompositeCommandResolver.cs (1)
43
{ "commandName", commandResolverArguments is null ? string.Empty : Sha256Hasher.HashWithNormalizedCasing(commandResolverArguments.
CommandName
) },
CommandFactory\CommandResolution\DepsJsonCommandResolver.cs (2)
29
if (commandResolverArguments.
CommandName
== null
36
commandResolverArguments.
CommandName
,
CommandFactory\CommandResolution\DotnetToolsCommandResolver.cs (3)
27
if (string.IsNullOrEmpty(arguments.
CommandName
))
32
var packageId = new DirectoryInfo(Path.Combine(_dotnetToolPath, arguments.
CommandName
));
42
.GetFiles($"{arguments.
CommandName
}.dll")[0];
CommandFactory\CommandResolution\LocalToolsCommandResolver.cs (8)
29
if (arguments == null || string.IsNullOrWhiteSpace(arguments.
CommandName
))
34
if (!arguments.
CommandName
.StartsWith(LeadingDotnetPrefix, StringComparison.OrdinalIgnoreCase))
40
new ToolCommandName(arguments.
CommandName
.Substring(LeadingDotnetPrefix.Length)), allowRollForward);
47
if (arguments == null || string.IsNullOrWhiteSpace(arguments.
CommandName
))
52
if (!arguments.
CommandName
.StartsWith(LeadingDotnetPrefix, StringComparison.OrdinalIgnoreCase) ||
53
string.IsNullOrWhiteSpace(arguments.
CommandName
.Substring(LeadingDotnetPrefix.Length)))
61
new ToolCommandName(arguments.
CommandName
.Substring(LeadingDotnetPrefix.Length)));
69
return GetPackageCommandSpecUsingMuxer(arguments, new ToolCommandName(arguments.
CommandName
));
CommandFactory\CommandResolution\MuxerCommandResolver.cs (1)
15
if (commandResolverArguments.
CommandName
== Muxer.MuxerName)
CommandFactory\CommandResolution\OutputPathCommandResolver.cs (2)
20
|| commandResolverArguments.
CommandName
== null)
29
commandResolverArguments.
CommandName
,
CommandFactory\CommandResolution\PathCommandResolver.cs (1)
15
return _environment.GetCommandPath(commandResolverArguments.
CommandName
);
CommandFactory\CommandResolution\ProjectDependenciesCommandResolver.cs (3)
43
commandResolverArguments.
CommandName
));
48
|| commandResolverArguments.
CommandName
== null)
61
commandResolverArguments.
CommandName
,
CommandFactory\CommandResolution\ProjectPathCommandResolver.cs (1)
23
commandResolverArguments.
CommandName
,
CommandFactory\CommandResolution\ProjectToolsCommandResolver.cs (2)
28
if (commandResolverArguments.
CommandName
== null
64
commandResolverArguments.
CommandName
,
CommandFactory\CommandResolution\PublishedPathCommandResolver.cs (1)
23
var commandName = commandResolverArguments.
CommandName
;
CommandFactory\CommandResolution\RootedCommandResolver.cs (3)
15
if (commandResolverArguments.
CommandName
== null)
20
if (Path.IsPathRooted(commandResolverArguments.
CommandName
))
25
return new CommandSpec(commandResolverArguments.
CommandName
, escapedArgs);
dotnet.Tests (5)
CommandFactoryTests\GivenAProjectDependencyCommandResolver.cs (1)
56
result.Args.Should().Contain(commandResolverArguments.
CommandName
);
CommandFactoryTests\GivenAProjectToolsCommandResolver.cs (1)
131
result.Args.Should().Contain(commandResolverArguments.
CommandName
);
CommandFactoryTests\GivenARootedCommandResolver.cs (3)
58
result.Path.Should().Be(commandResolverArguments.
CommandName
);
75
result.Path.Should().Be(commandResolverArguments.
CommandName
);
94
result.Path.Should().Be(commandResolverArguments.
CommandName
);