Skip to content

Commit

Permalink
The prompt for adding all modules now has yes/y/no/n options, like th…
Browse files Browse the repository at this point in the history
…e other prompts

Ticket: ENT-8980

Signed-off-by: Daniel Skinstad Drabitzius <[email protected]>
  • Loading branch information
danielskinstad committed Nov 8, 2023
1 parent 48a6be4 commit 8fc3857
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions cfbs/cfbs_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,11 @@ def _add_using_url(
if not any(modules):
user_error("no modules available, nothing to do")
if not self.non_interactive:
answer = input(
"Do you want to add all %d of them? [y/N] " % (len(modules))
answer = prompt_user(
non_interactive=self.non_interactive,
prompt="Do you want to add all %d of them?" % (len(modules)),
choices=YES_NO_CHOICES,
default="no",
)
if answer.lower() not in ("y", "yes"):
return
Expand Down

0 comments on commit 8fc3857

Please sign in to comment.