We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4eec351 commit 3aa6a33Copy full SHA for 3aa6a33
src/flux/cli.py
@@ -223,7 +223,8 @@ async def _apply(
223
) as runner:
224
await _print_apply_report(runner=runner, n=n)
225
if not auto_approve:
226
- Confirm("Apply these migrations?")
+ if not Confirm("Apply these migrations?"):
227
+ raise typer.Exit(1)
228
await runner.apply_migrations(n=n)
229
230
@@ -262,7 +263,8 @@ async def _rollback(
262
263
264
await _print_rollback_report(runner=runner, n=n)
265
- Confirm("Undo these migrations?")
266
+ if not Confirm("Undo these migrations?"):
267
268
269
await runner.rollback_migrations(n=n)
270
0 commit comments