Skip to content

Commit b7289ec

Browse files
committed
Removed [A]ll - yes to all
1 parent e35fe2b commit b7289ec

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/chocolatey.tests/infrastructure/commandline/InteractivePromptSpecs.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -666,7 +666,7 @@ public class when_prompting_answer_with_dash_with_interactivePrompt : Interactiv
666666
public override void Context()
667667
{
668668
base.Context();
669-
choices.Add("all - yes to all");
669+
choices.Add("all");
670670
}
671671

672672
public override void Because()
@@ -683,17 +683,17 @@ public override void AfterObservations()
683683
[Fact]
684684
public void should_return_all_when_full_all_answer_is_given()
685685
{
686-
console.Setup(c => c.ReadLine()).Returns("all - yes to all");
686+
console.Setup(c => c.ReadLine()).Returns("all");
687687
var result = prompt();
688-
result.ShouldEqual("all - yes to all");
688+
result.ShouldEqual("all");
689689
}
690690

691691
[Fact]
692692
public void should_return_all_when_only_all_is_given()
693693
{
694694
console.Setup(c => c.ReadLine()).Returns("all");
695695
var result = prompt();
696-
result.ShouldEqual("all - yes to all");
696+
result.ShouldEqual("all");
697697
}
698698
}
699699
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ public bool run_action(ChocolateyConfiguration configuration, PackageResult pack
267267
this.Log().Info(ChocolateyLoggers.Important, () => @"choco feature enable -n allowGlobalConfirmation");
268268

269269
var selection = InteractivePrompt.prompt_for_confirmation(@"Do you want to run the script?",
270-
new[] { "yes", "all - yes to all", "no", "print" },
270+
new[] { "yes", "all", "no", "print" },
271271
defaultChoice: null,
272272
requireAnswer: true,
273273
allowShortAnswer: true,

0 commit comments

Comments
 (0)