Skip to content

Commit

Permalink
(chocolatey#798) Add pin package option to tab completion
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCakeIsNaOH committed Jan 7, 2023
1 parent d94da07 commit 1438bc6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ $commandOptions = @{
download = "--internalize --internalize-all-urls --ignore-dependencies --installed-packages --ignore-unfound-packages --resources-location='' --download-location='' --outputdirectory='' --source='' --version='' --prerelease --user='' --password='' --cert='' --certpassword='' --append-use-original-location --recompile --disable-package-repository-optimizations -? --use-self-service" + $allcommands
sync = "--output-directory='' --id='' --package-id='' -? --use-self-service" + $allcommands
optimize = "--deflate-nupkg-only --id='' -? --use-self-service" + $allcommands
export = "--include-version-numbers --output-file-path='' -?" + $allcommands
export = "--include-version-numbers --output-file-path='' --include-remembered-arguments -?" + $allcommands
template = "--name=''" + $allcommands
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ public void run(ChocolateyConfiguration configuration)
if (configuration.ExportCommand.IncludeRememberedPackageArguments)
{

var pkgInfo = _packageInfoService.get_package_information(packageResult.Package);
var pkgInfo = _packageInfoService.get_package_information(packageResult.PackageMetadata);
configuration.Features.UseRememberedArgumentsForUpgrades = true;
_nugetService.set_package_config_for_upgrade(configuration, pkgInfo);

Expand Down

0 comments on commit 1438bc6

Please sign in to comment.