11 references to AddSourceOption
dotnet (6)
Commands\Tool\Execute\ToolExecuteCommandParser.cs (1)
24public static readonly Option<string[]> AddSourceOption = ToolInstallCommandParser.AddSourceOption;
Commands\Tool\Install\ToolInstallCommandParser.cs (1)
114command.Options.Add(AddSourceOption);
Commands\Tool\Install\ToolInstallGlobalOrToolPathCommand.cs (2)
76_addSource = parseResult.GetValue(ToolInstallCommandParser.AddSourceOption); 89var sourceOption = parseResult.GetValue(ToolInstallCommandParser.AddSourceOption);
Commands\Tool\Install\ToolInstallLocalInstaller.cs (1)
35_sources = parseResult.GetValue(ToolInstallCommandParser.AddSourceOption);
Commands\Tool\Restore\ToolRestoreCommandParser.cs (1)
17public static readonly Option<string[]> AddSourceOption = ToolInstallCommandParser.AddSourceOption;
dotnet.Tests (5)
CommandTests\Tool\Install\InstallToolParserTests.cs (3)
54result.GetRequiredValue(ToolInstallCommandParser.AddSourceOption).First().Should().Be(expectedSourceValue); 70result.GetRequiredValue(ToolInstallCommandParser.AddSourceOption)[0].Should().Be(expectedSourceValue1); 71result.GetRequiredValue(ToolInstallCommandParser.AddSourceOption)[1].Should().Be(expectedSourceValue2);
CommandTests\Tool\Update\UpdateToolParserTests.cs (2)
74result.GetRequiredValue(ToolInstallCommandParser.AddSourceOption).First().Should().Be(expectedSourceValue); 89result.GetValue(ToolInstallCommandParser.AddSourceOption).Should().BeEquivalentTo([expectedSourceValue1, expectedSourceValue2]);