You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* stable:
(GH-1655) make virtual methods for outdated / package service
(GH-1747) Fix: passing timeout switch of 0 is ignored
(GH-1746) Update XML comments / formatting
(GH-1746) update logging for validation
(GH-1038) Stop operation on package reboot request
(GH-1038) Stop execution if pending reboot
(GH-1746) Add concept of global validation
(maint) Corrected white space
config.CacheLocation=Environment.ExpandEnvironmentVariables(set_config_item(ApplicationParameters.ConfigSettings.CacheLocation,configFileSettings,string.IsNullOrWhiteSpace(configFileSettings.CacheLocation)?string.Empty:configFileSettings.CacheLocation,"Cache location if not TEMP folder. Replaces `$env:TEMP` value."));
varcommandExecutionTimeout=set_config_item(ApplicationParameters.ConfigSettings.CommandExecutionTimeoutSeconds,configFileSettings,string.IsNullOrWhiteSpace(configFileSettings.CommandExecutionTimeoutSeconds.to_string())?ApplicationParameters.DefaultWaitForExitInSeconds.to_string():configFileSettings.CommandExecutionTimeoutSeconds.to_string(),"Default timeout for command execution. '0' for infinite (starting in 0.10.4).");
config.Features.ScriptsCheckLastExitCode=set_feature_flag(ApplicationParameters.Features.ScriptsCheckLastExitCode,configFileSettings,defaultEnabled:false,description:"Scripts Check $LastExitCode (external commands) - Leave this off unless you absolutely need it while you fix your package scripts to use `throw 'error message'` or `Set-PowerShellExitCode #` instead of `exit #`. This behavior started in 0.9.10 and produced hard to find bugs. If the last external process exits successfully but with an exit code of not zero, this could cause hard to detect package failures. Available in 0.10.3+. Will be removed in 0.11.0.");
306
306
config.PromptForConfirmation=!set_feature_flag(ApplicationParameters.Features.AllowGlobalConfirmation,configFileSettings,defaultEnabled:false,description:"Prompt for confirmation in scripts or bypass.");
307
+
config.Features.ExitOnRebootDetected=set_feature_flag(ApplicationParameters.Features.ExitOnRebootDetected,configFileSettings,defaultEnabled:false,description:"Exit On Reboot Detected - Stop running install, upgrade, or uninstall when a reboot request is detected. Requires '{0}' feature to be turned on. Will exit with either {1} or {2}. When it exits with {1}, it means pending reboot discovered prior to running operation. When it exits with {2}, it means some work completed prior to reboot request being detected. As this will affect upgrade all, it is normally recommended to leave this off. Available in 0.10.12+.".format_with(ApplicationParameters.Features.ExitOnRebootDetected,ApplicationParameters.ExitCodes.ErrorFailNoActionReboot,ApplicationParameters.ExitCodes.ErrorInstallSuspend));
"Trace - Show trace messaging. Very, very verbose trace messaging. Avoid except when needing super low-level .NET Framework debugging. Available in 0.10.4+.",
353
-
option =>config.Trace=option!=null)
354
+
option =>config.Trace=option!=null)
354
355
.Add("nocolor|no-color",
355
356
"No Color - Do not show colorization in logging output. This overrides the feature '{0}', set to '{1}'. Available in 0.10.9+.".format_with(ApplicationParameters.Features.LogWithoutColor,config.Features.LogWithoutColor),
"Proxy Bypass On Local - Bypass proxy for local connections. Requires explicity proxy (`--proxy` or config setting). Overrides the default proxy bypass on local setting of '{0}'. Available in 0.10.4+.".format_with(config.Proxy.BypassOnLocal),
416
-
option =>config.Proxy.BypassOnLocal=option!=null)
418
+
option =>config.Proxy.BypassOnLocal=option!=null)
417
419
.Add("log-file=",
418
420
"Log File to output to in addition to regular loggers. Available in 0.10.8+.",
FIPS Mode detected - run 'choco feature enable -n {0}'
702
+
FIPS Mode detected - run 'choco feature enable -n {0}'
701
703
to use Chocolatey.".format_with(ApplicationParameters.Features.UseFipsCompliantChecksums));
702
704
703
705
varerrorMessage="When FIPS Mode is enabled, Chocolatey requires {0} feature also be enabled.".format_with(ApplicationParameters.Features.UseFipsCompliantChecksums);
0 commit comments