-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: delete pipeline #91
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good work! Let's wait for other opinions on whether we should have a code
argument or just use the current working directory.
openhexa/cli/cli.py
Outdated
sys.exit(1) | ||
|
||
confirmation_code = click.prompt( | ||
f"Removing {code} from workspace {workspace}. Please type {code} to confirm", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor change:
f'This will remove the pipeline "{code}" from the "{workspace} workspace. This operation cannot be undone.\nPlease enter "{code}" to confirm:'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and let's use click.style
like a couple of lines above
@cheikhgwane ok so let's keep your approach regarding the code - the only task left is to improve the message and its formatting. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Allow user to delete a pipeline given his code.