From 0462df4224242822d25c7e275bfcddb40ad74431 Mon Sep 17 00:00:00 2001 From: AdmiringWorm Date: Tue, 8 Mar 2022 11:28:40 +0100 Subject: [PATCH] (maint) Fix whitespace and formatting --- .../commands/ChocolateyListCommand.cs | 16 ++++++++-------- .../commands/ChocolateyUpgradeCommand.cs | 14 +++++++------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/chocolatey/infrastructure.app/commands/ChocolateyListCommand.cs b/src/chocolatey/infrastructure.app/commands/ChocolateyListCommand.cs index f0040fd090..2e27345867 100644 --- a/src/chocolatey/infrastructure.app/commands/ChocolateyListCommand.cs +++ b/src/chocolatey/infrastructure.app/commands/ChocolateyListCommand.cs @@ -1,4 +1,4 @@ -// Copyright © 2017 - 2021 Chocolatey Software, Inc +// Copyright © 2017 - 2021 Chocolatey Software, Inc // Copyright © 2011 - 2017 RealDimensions Software, LLC // // Licensed under the Apache License, Version 2.0 (the "License"); @@ -59,7 +59,7 @@ public virtual void configure_argument_parser(OptionSet optionSet, ChocolateyCon option => configuration.ListCommand.IncludeRegistryPrograms = option != null) .Add("a|all|allversions|all-versions", "AllVersions - include results from all versions.", - option => configuration.AllVersions = option != null) + option => configuration.AllVersions = option != null) .Add("version=", "Version - Specific version of a package to return.", option => configuration.Version = option.remove_surrounding_quotes()) @@ -76,7 +76,7 @@ public virtual void configure_argument_parser(OptionSet optionSet, ChocolateyCon "Certificate Password - the client certificate's password to the source. Defaults to empty. Available in 0.9.10+.", option => configuration.SourceCommand.CertificatePassword = option.remove_surrounding_quotes()) .Add("page=", - "Page - the 'page' of results to return. Defaults to return all results. Available in 0.9.10+.", + "Page - the 'page' of results to return. Defaults to return all results. Available in 0.9.10+.", option => { int page; @@ -106,13 +106,13 @@ public virtual void configure_argument_parser(OptionSet optionSet, ChocolateyCon option => configuration.ListCommand.IdStartsWith = option != null) .Add("order-by-popularity", "OrderByPopularity - Sort by package results by popularity. Available in 0.9.10+.", - option => configuration.ListCommand.OrderByPopularity = option != null) + option => configuration.ListCommand.OrderByPopularity = option != null) .Add("approved-only", "ApprovedOnly - Only return approved packages - this option will filter out results not from the community repository. Available in 0.9.10+.", - option => configuration.ListCommand.ApprovedOnly = option != null) + option => configuration.ListCommand.ApprovedOnly = option != null) .Add("download-cache|download-cache-only", "DownloadCacheAvailable - Only return packages that have a download cache available - this option will filter out results not from the community repository. Available in 0.9.10+.", - option => configuration.ListCommand.DownloadCacheAvailable = option != null) + option => configuration.ListCommand.DownloadCacheAvailable = option != null) .Add("not-broken", "NotBroken - Only return packages that are not failing testing - this option only filters out failing results from the community feed. It will not filter against other sources. Available in 0.9.10+.", option => configuration.ListCommand.NotBroken = option != null) @@ -181,7 +181,7 @@ choco search git write proper scripts and integrations. "); - + "chocolatey".Log().Info(ChocolateyLoggers.Important, "Exit Codes"); "chocolatey".Log().Info(@" Exit codes that normally result from running this command. @@ -204,7 +204,7 @@ file a ticket so we can document it at https://github.com/chocolatey/choco/issues/new/choose. ".format_with(ApplicationParameters.Features.UseEnhancedExitCodes)); - + "chocolatey".Log().Info(ChocolateyLoggers.Important, "See It In Action"); "chocolatey".Log().Info(@" choco search: https://raw.githubusercontent.com/wiki/chocolatey/choco/images/gifs/choco_search.gif diff --git a/src/chocolatey/infrastructure.app/commands/ChocolateyUpgradeCommand.cs b/src/chocolatey/infrastructure.app/commands/ChocolateyUpgradeCommand.cs index 439f841d20..7141470bd7 100644 --- a/src/chocolatey/infrastructure.app/commands/ChocolateyUpgradeCommand.cs +++ b/src/chocolatey/infrastructure.app/commands/ChocolateyUpgradeCommand.cs @@ -1,4 +1,4 @@ -// Copyright © 2017 - 2021 Chocolatey Software, Inc +// Copyright © 2017 - 2021 Chocolatey Software, Inc // Copyright © 2011 - 2017 RealDimensions Software, LLC // // Licensed under the Apache License, Version 2.0 (the "License"); @@ -163,7 +163,7 @@ public virtual void configure_argument_parser(OptionSet optionSet, ChocolateyCon .Add("stoponfirstfailure|stop-on-first-failure|stop-on-first-package-failure", "Stop On First Package Failure - stop running install, upgrade or uninstall on first package failure instead of continuing with others. Overrides the default feature '{0}' set to '{1}'. Available in 0.10.4+.".format_with(ApplicationParameters.Features.StopOnFirstPackageFailure, configuration.Features.StopOnFirstPackageFailure.to_string()), option => configuration.Features.StopOnFirstPackageFailure = option != null - ) + ) .Add("skip-if-not-installed|only-upgrade-installed|skip-when-not-installed", "Skip Packages Not Installed - if a package is not installed, do not install it during the upgrade process. Overrides the default feature '{0}' set to '{1}'. Available in 0.10.12+.".format_with(ApplicationParameters.Features.SkipPackageUpgradesWhenNotInstalled, configuration.Features.SkipPackageUpgradesWhenNotInstalled.to_string()), option => configuration.Features.SkipPackageUpgradesWhenNotInstalled = option != null @@ -172,10 +172,10 @@ public virtual void configure_argument_parser(OptionSet optionSet, ChocolateyCon "Install Missing Packages When Not Installed - if a package is not installed, install it as part of running upgrade (typically default behavior). Overrides the default feature '{0}' set to '{1}'. Available in 0.10.12+.".format_with(ApplicationParameters.Features.SkipPackageUpgradesWhenNotInstalled, configuration.Features.SkipPackageUpgradesWhenNotInstalled.to_string()), option => { - if (option != null) - { - configuration.Features.SkipPackageUpgradesWhenNotInstalled = false; - } + if (option != null) + { + configuration.Features.SkipPackageUpgradesWhenNotInstalled = false; + } }) .Add("exclude-pre|exclude-prerelease|exclude-prereleases", "Exclude Prerelease - Should prerelease be ignored for upgrades? Will be ignored if you pass `--pre`. Available in 0.10.4+.", @@ -341,7 +341,7 @@ when the feature '{1}' is turned on. It typically requires the feature '{0}' to also be turned on to work properly. Available in v0.10.12+. ".format_with(ApplicationParameters.Features.UsePackageExitCodes, ApplicationParameters.Features.ExitOnRebootDetected)); - + "chocolatey".Log().Info(ChocolateyLoggers.Important, "See It In Action"); "chocolatey".Log().Info(@" choco upgrade: https://raw.githubusercontent.com/wiki/chocolatey/choco/images/gifs/choco_upgrade.gif