49 references to ToolCommandRestorePassThroughOptions
dotnet (34)
Commands\Tool\Execute\ToolExecuteCommand.cs (4)
35
private readonly RestoreActionConfig _restoreActionConfig = new RestoreActionConfig(DisableParallel: result.GetValue(
ToolCommandRestorePassThroughOptions
.DisableParallelOption),
36
NoCache: result.GetValue(
ToolCommandRestorePassThroughOptions
.NoCacheOption) || result.GetValue(
ToolCommandRestorePassThroughOptions
.NoHttpCacheOption),
37
IgnoreFailedSources: result.GetValue(
ToolCommandRestorePassThroughOptions
.IgnoreFailedSourcesOption),
Commands\Tool\Execute\ToolExecuteCommandParser.cs (4)
53
command.Options.Add(
ToolCommandRestorePassThroughOptions
.DisableParallelOption);
54
command.Options.Add(
ToolCommandRestorePassThroughOptions
.IgnoreFailedSourcesOption);
55
command.Options.Add(
ToolCommandRestorePassThroughOptions
.NoCacheOption);
56
command.Options.Add(
ToolCommandRestorePassThroughOptions
.NoHttpCacheOption);
Commands\Tool\Install\ToolInstallCommandParser.cs (5)
118
command.Options.Add(
ToolCommandRestorePassThroughOptions
.DisableParallelOption);
119
command.Options.Add(
ToolCommandRestorePassThroughOptions
.IgnoreFailedSourcesOption);
120
command.Options.Add(
ToolCommandRestorePassThroughOptions
.NoCacheOption);
121
command.Options.Add(
ToolCommandRestorePassThroughOptions
.NoHttpCacheOption);
122
command.Options.Add(
ToolCommandRestorePassThroughOptions
.InteractiveRestoreOption);
Commands\Tool\Install\ToolInstallGlobalOrToolPathCommand.cs (5)
91
_restoreActionConfig = new RestoreActionConfig(DisableParallel: parseResult.GetValue(
ToolCommandRestorePassThroughOptions
.DisableParallelOption),
92
NoCache: parseResult.GetValue(
ToolCommandRestorePassThroughOptions
.NoCacheOption) || parseResult.GetValue(
ToolCommandRestorePassThroughOptions
.NoHttpCacheOption),
93
IgnoreFailedSources: parseResult.GetValue(
ToolCommandRestorePassThroughOptions
.IgnoreFailedSourcesOption),
94
Interactive: parseResult.GetValue(
ToolCommandRestorePassThroughOptions
.InteractiveRestoreOption));
Commands\Tool\Install\ToolInstallLocalCommand.cs (5)
62
restoreActionConfig = new RestoreActionConfig(DisableParallel: parseResult.GetValue(
ToolCommandRestorePassThroughOptions
.DisableParallelOption),
63
NoCache: parseResult.GetValue(
ToolCommandRestorePassThroughOptions
.NoCacheOption) || parseResult.GetValue(
ToolCommandRestorePassThroughOptions
.NoHttpCacheOption),
64
IgnoreFailedSources: parseResult.GetValue(
ToolCommandRestorePassThroughOptions
.IgnoreFailedSourcesOption),
65
Interactive: parseResult.GetValue(
ToolCommandRestorePassThroughOptions
.InteractiveRestoreOption));
Commands\Tool\Restore\ToolRestoreCommand.cs (6)
67
if (!result.HasOption(ToolRestoreCommandParser.VerbosityOption) && result.GetValue(
ToolCommandRestorePassThroughOptions
.InteractiveRestoreOption))
72
_restoreActionConfig = new RestoreActionConfig(DisableParallel: result.GetValue(
ToolCommandRestorePassThroughOptions
.DisableParallelOption),
73
NoCache: result.GetValue(
ToolCommandRestorePassThroughOptions
.NoCacheOption) || result.GetValue(
ToolCommandRestorePassThroughOptions
.NoHttpCacheOption),
74
IgnoreFailedSources: result.GetValue(
ToolCommandRestorePassThroughOptions
.IgnoreFailedSourcesOption),
75
Interactive: result.GetValue(
ToolCommandRestorePassThroughOptions
.InteractiveRestoreOption));
Commands\Tool\Restore\ToolRestoreCommandParser.cs (5)
37
command.Options.Add(
ToolCommandRestorePassThroughOptions
.DisableParallelOption);
38
command.Options.Add(
ToolCommandRestorePassThroughOptions
.IgnoreFailedSourcesOption);
39
command.Options.Add(
ToolCommandRestorePassThroughOptions
.NoCacheOption);
40
command.Options.Add(
ToolCommandRestorePassThroughOptions
.NoHttpCacheOption);
41
command.Options.Add(
ToolCommandRestorePassThroughOptions
.InteractiveRestoreOption);
dotnet.Tests (15)
CommandTests\Tool\Install\InstallToolParserTests.cs (5)
125
result.GetRequiredValue(
ToolCommandRestorePassThroughOptions
.NoCacheOption).Should().BeTrue();
134
result.GetRequiredValue(
ToolCommandRestorePassThroughOptions
.NoHttpCacheOption).Should().BeTrue();
143
result.GetRequiredValue(
ToolCommandRestorePassThroughOptions
.IgnoreFailedSourcesOption).Should().BeTrue();
152
result.GetRequiredValue(
ToolCommandRestorePassThroughOptions
.DisableParallelOption).Should().BeTrue();
161
result.GetRequiredValue(
ToolCommandRestorePassThroughOptions
.InteractiveRestoreOption).Should().BeTrue();
CommandTests\Tool\Restore\ToolRestoreParserTests.cs (5)
81
result.GetRequiredValue(
ToolCommandRestorePassThroughOptions
.NoCacheOption).Should().BeTrue();
90
result.GetRequiredValue(
ToolCommandRestorePassThroughOptions
.NoHttpCacheOption).Should().BeTrue();
99
result.GetRequiredValue(
ToolCommandRestorePassThroughOptions
.IgnoreFailedSourcesOption).Should().BeTrue();
108
result.GetRequiredValue(
ToolCommandRestorePassThroughOptions
.DisableParallelOption).Should().BeTrue();
117
result.GetRequiredValue(
ToolCommandRestorePassThroughOptions
.InteractiveRestoreOption).Should().BeTrue();
CommandTests\Tool\Update\UpdateToolParserTests.cs (5)
118
result.GetValue(
ToolCommandRestorePassThroughOptions
.NoCacheOption).Should().Be(true);
127
result.GetValue(
ToolCommandRestorePassThroughOptions
.NoHttpCacheOption).Should().Be(true);
136
result.GetValue(
ToolCommandRestorePassThroughOptions
.IgnoreFailedSourcesOption).Should().Be(true);
145
result.GetValue(
ToolCommandRestorePassThroughOptions
.DisableParallelOption).Should().Be(true);
153
result.GetValue(
ToolCommandRestorePassThroughOptions
.InteractiveRestoreOption).Should().Be(true);