Skip to content

Commit

Permalink
(GH-265) Mention how to auto confirm prompts
Browse files Browse the repository at this point in the history
Most folks have a hard time reading the manual. Let's give them a help
out so we can stop answering the same question over and over and over
and ...well you get the idea.
  • Loading branch information
ferventcoder committed May 16, 2015
1 parent f3e2084 commit b11798e
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -217,6 +217,8 @@ public bool run_action(ChocolateyConfiguration configuration, PackageResult pack
{
this.Log().Info(ChocolateyLoggers.Important, () => "The package {0} wants to run '{1}'.".format_with(package.Id, _fileSystem.get_file_name(chocoPowerShellScript)));
this.Log().Info(ChocolateyLoggers.Important, () => "Note: If you don't run this script, the installation will fail.");
this.Log().Info(ChocolateyLoggers.Important, () => @"Note: To confirm automatically next time, use '-y' or consider setting
'allowGlobalConfirmation'. Run 'choco feature -h' for more details.");

var selection = InteractivePrompt.prompt_for_confirmation(@"Do you want to run the script?", new[] {"yes", "no", "print"}, defaultChoice: null, requireAnswer: true);

Expand Down

0 comments on commit b11798e

Please sign in to comment.