Skip to content

Commit b5ca8ea

Browse files
authored
Delete workflow confirmation check in CLI - #114 (#137)
Add a confirmation check from CLI before deletion of workflow. Closes - #114 ## By Submitting this PR I confirm: - I am familiar with the [Contributing Guidelines](https://github.com/NVIDIA/AgentIQ/blob/develop/docs/source/advanced/contributing.md). - We require that all contributors "sign-off" on their commits. This certifies that the contribution is your original work, or you have rights to submit it under the same license, or a compatible license. - Any contribution which contains commits that are not Signed-Off will not be accepted. - When the PR is ready for review, new or existing tests cover these changes. - When the PR is ready for review, the documentation is up to date with these changes. Authors: - Snehlata (https://github.com/atalhens) Approvers: - Michael Demoret (https://github.com/mdemoret-nv) URL: #137
1 parent 718a4bc commit b5ca8ea

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

+3
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)