Skip to content

Commit

Permalink
🚸(interactive prompt): add final confirm dialog
Browse files Browse the repository at this point in the history
Signed-off-by: rjdbcm <[email protected]>
  • Loading branch information
rjdbcm committed Jun 21, 2024
1 parent 0b4c054 commit 045df8a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion ozi/new/interactive.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,4 +277,11 @@ def interactive_prompt() -> list[str]: # noqa: C901 # pragma: no cover
style=style,
).run()
output += [f'--readme-type="{readme_type}"'] if readme_type else []
return output
if yes_no_dialog(
title='ozi-new interactive prompt',
text=prefix + 'Confirm project creation?\n(answering "No" will exit the prompt)',
style=style,
).run():
return output
else:
return ['project']

0 comments on commit 045df8a

Please sign in to comment.