Skip to content

Commit 1438bc6

Browse files
committed
(#798) Add pin package option to tab completion
1 parent d94da07 commit 1438bc6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/chocolatey.resources/helpers/ChocolateyTabExpansion.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ $commandOptions = @{
6868
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
6969
sync = "--output-directory='' --id='' --package-id='' -? --use-self-service" + $allcommands
7070
optimize = "--deflate-nupkg-only --id='' -? --use-self-service" + $allcommands
71-
export = "--include-version-numbers --output-file-path='' -?" + $allcommands
71+
export = "--include-version-numbers --output-file-path='' --include-remembered-arguments -?" + $allcommands
7272
template = "--name=''" + $allcommands
7373
}
7474

src/chocolatey/infrastructure.app/commands/ChocolateyExportCommand.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ public void run(ChocolateyConfiguration configuration)
192192
if (configuration.ExportCommand.IncludeRememberedPackageArguments)
193193
{
194194

195-
var pkgInfo = _packageInfoService.get_package_information(packageResult.Package);
195+
var pkgInfo = _packageInfoService.get_package_information(packageResult.PackageMetadata);
196196
configuration.Features.UseRememberedArgumentsForUpgrades = true;
197197
_nugetService.set_package_config_for_upgrade(configuration, pkgInfo);
198198

0 commit comments

Comments
 (0)