12 references to ToolRestoreCommandParser
dotnet (6)
Commands\Tool\Restore\ToolRestoreCommand.cs (5)
64
_configFilePath = result.GetValue(
ToolRestoreCommandParser
.ConfigOption);
65
_sources = result.GetValue(
ToolRestoreCommandParser
.AddSourceOption);
66
_verbosity = result.GetValue(
ToolRestoreCommandParser
.VerbosityOption);
67
if (!result.HasOption(
ToolRestoreCommandParser
.VerbosityOption) && result.GetValue(ToolCommandRestorePassThroughOptions.InteractiveRestoreOption))
168
string customFile = _parseResult.GetValue(
ToolRestoreCommandParser
.ToolManifestOption);
Commands\Tool\ToolCommandParser.cs (1)
40
command.Subcommands.Add(
ToolRestoreCommandParser
.GetCommand());
dotnet.Tests (6)
CommandTests\Tool\Restore\ToolRestoreParserTests.cs (6)
25
result.GetRequiredValue(
ToolRestoreCommandParser
.ToolManifestOption).Should().Be("folder/my-manifest.format");
35
result.GetRequiredValue(
ToolRestoreCommandParser
.ConfigOption).Should().Be(@"C:\TestAssetLocalNugetFeed");
46
result.GetRequiredValue(
ToolRestoreCommandParser
.AddSourceOption).First().Should().Be(expectedSourceValue);
61
result.GetRequiredValue(
ToolRestoreCommandParser
.AddSourceOption)[0].Should().Be(expectedSourceValue1);
62
result.GetRequiredValue(
ToolRestoreCommandParser
.AddSourceOption)[1].Should().Be(expectedSourceValue2);
72
Enum.GetName(result.GetRequiredValue(
ToolRestoreCommandParser
.VerbosityOption)).Should().Be(expectedVerbosityLevel);