Skip to content

Commit 758f9de

Browse files
committed
Add delete workflow confirmation check in cli
Signed-off-by: atalhens <[email protected]>
1 parent a8a2a74 commit 758f9de

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/aiq/cli/commands/workflow/workflow_commands.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,9 @@ def delete_command(workflow_name: str):
270270
workflow_name (str): The name of the workflow to delete.
271271
"""
272272
try:
273+
if not click.confirm(f"Are you sure you want to delete the workflow '{workflow_name}'?"):
274+
click.echo("Workflow deletion cancelled.")
275+
return
273276
editable = get_repo_root() is not None
274277

275278
workflow_dir = get_workflow_path_from_name(workflow_name)

0 commit comments

Comments
 (0)