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