Skip to content

Commit

Permalink
(maint) Fix whitespace and formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
AdmiringWorm committed Mar 8, 2022
1 parent ccbb395 commit 0462df4
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
Original file line number Diff line number Diff line change
@@ -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");
Expand Down Expand Up @@ -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())
Expand All @@ -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;
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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.
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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");
Expand Down Expand Up @@ -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
Expand All @@ -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+.",
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 0462df4

Please sign in to comment.