Skip to content

Commit 0b53340

Browse files
committed
Merge branch 'list-command-date' of https://github.com/swaran18999/choco into list-command-with-date
2 parents d2eebc6 + 3bbbd8e commit 0b53340

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/chocolatey.resources/helpers/ChocolateyTabExpansion.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ $commandOptions = @{
4949
info = "--cert='' --certpassword='' --disable-repository-optimizations --include-configured-sources --local-only --password='' --prerelease --source='' --user='' --version=''"
5050
install = "--allow-downgrade --allow-empty-checksums --allow-empty-checksums-secure --apply-args-to-dependencies --apply-package-parameters-to-dependencies --cert='' --certpassword='' --disable-repository-optimizations --download-checksum='' --download-checksum-x64='' --download-checksum-type='' --download-checksum-type-x64='' --exit-when-reboot-detected --force-dependencies --forcex86 --ignore-checksum --ignore-dependencies --ignore-detected-reboot --ignore-package-exit-codes --include-configured-sources --install-arguments='' --not-silent --override-arguments --package-parameters='' --password='' --pin --prerelease --require-checksums --skip-hooks --skip-scripts --source='' --stop-on-first-failure --use-package-exit-codes --user='' --version=''"
5151
license = ""
52-
list = "--by-id-only --by-tag-only --detail --exact --id-only --id-starts-with --ignore-pinned --include-programs --page='' --page-size='' --prerelease --order-by-last-updated-date --show-last-updated-date --source='' --version=''"
52+
list = "--by-id-only --by-tag-only --detail --exact --id-only --id-starts-with --ignore-pinned --include-programs --order-by-last-updated-date --page='' --page-size='' --prerelease --show-last-updated-date --source='' --version=''"
5353
new = "--automaticpackage --download-checksum='' --download-checksum-x64='' --download-checksum-type='' --maintainer='' --name='' --output-directory='' --template='' --use-built-in-template --version=''"
5454
outdated = "--cert='' --certpassword='' --disable-repository-optimizations --ignore-pinned --ignore-unfound --include-configured-sources --password='' --prerelease --source='' --user=''"
5555
pack = "--output-directory='' --version=''"

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ public virtual void ConfigureArgumentParser(OptionSet optionSet, ChocolateyConfi
140140
"Ignore Pinned - Ignore pinned packages. Defaults to false.",
141141
option => configuration.ListCommand.IgnorePinned = option != null)
142142
.Add("show-last-updated-date",
143-
"Show Date - Shows the last date the package was installed/updated.",
143+
"Show Last Updated Date - Shows the last date the package was installed/updated.",
144144
option => configuration.ListCommand.ShowLastUpdatedDate = option != null)
145145
.Add("order-by-last-updated-date",
146146
"Order by Last Updated Date - Orders packages by date the package was installed/updated.",

src/chocolatey/infrastructure.app/services/NugetService.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,12 +276,12 @@ it is possible that incomplete package lists are returned from a command
276276
{
277277
if (!(packageInfo != null && packageInfo.IsPinned && config.ListCommand.IgnorePinned))
278278
{
279-
this.Log().Info(logger, () => "{0}{1}".FormatWith(package.Identity.Id, config.ListCommand.IdOnly ? string.Empty : " {0}{1}{2}{3} {4}".FormatWith(
279+
this.Log().Info(logger, () => "{0}{1}".FormatWith(package.Identity.Id, config.ListCommand.IdOnly ? string.Empty : " {0}{1}{2}{3}{4}".FormatWith(
280280
packageLocalMetadata != null ? packageLocalMetadata.Version.ToFullStringChecked() : package.Identity.Version.ToFullStringChecked(),
281281
package.IsApproved ? " [Approved]" : string.Empty,
282282
package.IsDownloadCacheAvailable ? " Downloads cached for licensed users" : string.Empty,
283283
package.PackageTestResultStatus == "Failing" && package.IsDownloadCacheAvailable ? " - Possibly broken for FOSS users (due to original download location changes by vendor)" : package.PackageTestResultStatus == "Failing" ? " - Possibly broken" : string.Empty,
284-
config.ListCommand.ShowLastUpdatedDate ? package.Published?.ToString("yyyy-MM-dd HH:mm:ss") ?? "Last updated not available" : string.Empty
284+
config.ListCommand.ShowLastUpdatedDate ? package.Published?.ToString(" yyyy-MM-dd HH:mm:ss") ?? " Last updated not available" : string.Empty
285285
))
286286
);
287287

0 commit comments

Comments
 (0)