Skip to content

Commit

Permalink
(#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 13, 2023
1 parent aa4913d commit 0b51a7d
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 0b51a7d

Please sign in to comment.