Skip to content

Commit

Permalink
Merge pull request #79 from jusschwitalla/fix-exclusive-mode
Browse files Browse the repository at this point in the history
fix exclusive mode in ConfigManager
  • Loading branch information
philross authored Sep 27, 2023
2 parents 921c467 + 393668a commit 6fce349
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/ConfigManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,9 +325,11 @@ def _query_for_config(param_opts: dict, prefix: str = "") -> dict:
print(f"{prefix} {config_answer['description']}: {config_answer['values'][0]}")

elif config_answer.get('exclusive', False):
answer = checkbox(key=key,
message=f"{prefix} {config_answer['description']}",
choices=config_answer['values'])
answer = inquirer.prompt(
[inquirer.List(key,
message=f"{prefix} {config_answer['description']}",
choices=config_answer['values']
)])
values = (answer[key],)
else:

Expand Down

0 comments on commit 6fce349

Please sign in to comment.