18 references to CompleteCommand
dotnet (1)
Commands\Hidden\Complete\CompleteCommandParser.cs (1)
36
command.SetAction(
CompleteCommand
.Run);
dotnet.Tests (17)
CommandTests\Hidden\Complete\CompleteCommandTests.cs (17)
58
CompleteCommand
.RunWithReporter(new[] { "dotnet " }, reporter).Should().Be(0);
80
CompleteCommand
.RunWithReporter(new[] { "dotnet -" }, reporter).Should().Be(0);
102
CompleteCommand
.RunWithReporter(new[] { "dotnet new " }, reporter).Should().Be(0);
128
CompleteCommand
.RunWithReporter(new[] { "dotnet nuget " }, reporter).Should().Be(0);
152
CompleteCommand
.RunWithReporter(new[] { "dotnet nuget delete " }, reporter).Should().Be(0);
178
CompleteCommand
.RunWithReporter(new[] { "dotnet nuget locals " }, reporter).Should().Be(0);
213
CompleteCommand
.RunWithReporter(new[] { "dotnet nuget push " }, reporter).Should().Be(0);
233
CompleteCommand
.RunWithReporter(new[] { "dotnet nuget verify " }, reporter).Should().Be(0);
259
CompleteCommand
.RunWithReporter(new[] { "dotnet nuget trust " }, reporter).Should().Be(0);
289
CompleteCommand
.RunWithReporter(new[] { "dotnet nuget sign " }, reporter).Should().Be(0);
307
CompleteCommand
.RunWithReporter(new[] { "dotnet nuget why " }, reporter).Should().Be(0);
319
CompleteCommand
.RunWithReporter(GetArguments("dotnet add pack$ abc"), reporter).Should().Be(0);
332
CompleteCommand
.RunWithReporter(GetArguments("dotnet tool in$ abc"), reporter).Should().Be(0);
348
CompleteCommand
.RunWithReporter(GetArguments("dotnet add package Newt$"), reporter).Should().Be(0);
370
CompleteCommand
.RunWithReporter(GetArguments($"dotnet add package {knownPackage} --version $"), reporter).Should().Be(0);
393
CompleteCommand
.RunWithReporter(GetArguments($"dotnet add package {knownPackage} --version {knownVersion}$"), reporter).Should().Be(0);
419
CompleteCommand
.RunWithReporter(GetArguments($"dotnet add package {knownPackage} --prerelease --version {knownVersion}$"), reporter).Should().Be(0);