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); 67if (!result.HasOption(ToolRestoreCommandParser.VerbosityOption) && result.GetValue(ToolCommandRestorePassThroughOptions.InteractiveRestoreOption)) 168string customFile = _parseResult.GetValue(ToolRestoreCommandParser.ToolManifestOption);
Commands\Tool\ToolCommandParser.cs (1)
40command.Subcommands.Add(ToolRestoreCommandParser.GetCommand());
dotnet.Tests (6)
CommandTests\Tool\Restore\ToolRestoreParserTests.cs (6)
25result.GetRequiredValue(ToolRestoreCommandParser.ToolManifestOption).Should().Be("folder/my-manifest.format"); 35result.GetRequiredValue(ToolRestoreCommandParser.ConfigOption).Should().Be(@"C:\TestAssetLocalNugetFeed"); 46result.GetRequiredValue(ToolRestoreCommandParser.AddSourceOption).First().Should().Be(expectedSourceValue); 61result.GetRequiredValue(ToolRestoreCommandParser.AddSourceOption)[0].Should().Be(expectedSourceValue1); 62result.GetRequiredValue(ToolRestoreCommandParser.AddSourceOption)[1].Should().Be(expectedSourceValue2); 72Enum.GetName(result.GetRequiredValue(ToolRestoreCommandParser.VerbosityOption)).Should().Be(expectedVerbosityLevel);