forward param for dotnet tool udpate (#9969)
This commit is contained in:
parent
23612babd8
commit
824a014203
1 changed files with 3 additions and 1 deletions
|
@ -37,6 +37,7 @@ namespace Microsoft.DotNet.Tools.Tool.Update
|
|||
private readonly bool _global;
|
||||
private readonly string _verbosity;
|
||||
private readonly string _toolPath;
|
||||
private readonly IEnumerable<string> _forwardRestoreArguments;
|
||||
|
||||
public ToolUpdateCommand(AppliedOption appliedCommand,
|
||||
ParseResult parseResult,
|
||||
|
@ -57,6 +58,7 @@ namespace Microsoft.DotNet.Tools.Tool.Update
|
|||
_global = appliedCommand.ValueOrDefault<bool>("global");
|
||||
_verbosity = appliedCommand.SingleArgumentOrDefault("verbosity");
|
||||
_toolPath = appliedCommand.SingleArgumentOrDefault("tool-path");
|
||||
_forwardRestoreArguments = appliedCommand.OptionValuesToBeForwarded();
|
||||
|
||||
_createToolPackageStoreAndInstaller = createToolPackageStoreAndInstaller ??
|
||||
ToolPackageFactory.CreateToolPackageStoreAndInstaller;
|
||||
|
@ -79,7 +81,7 @@ namespace Microsoft.DotNet.Tools.Tool.Update
|
|||
}
|
||||
|
||||
(IToolPackageStore toolPackageStore, IToolPackageInstaller toolPackageInstaller) =
|
||||
_createToolPackageStoreAndInstaller(toolPath);
|
||||
_createToolPackageStoreAndInstaller(toolPath, _forwardRestoreArguments);
|
||||
IShellShimRepository shellShimRepository = _createShellShimRepository(toolPath);
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue