Skip to content
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

Merged
merged 3 commits into from
Nov 30, 2023
Merged

feat: delete pipeline #91

merged 3 commits into from
Nov 30, 2023

Conversation

cheikhgwane
Copy link
Contributor

Allow user to delete a pipeline given his code.

Copy link
Contributor

@pvanliefland pvanliefland left a 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.

sys.exit(1)

confirmation_code = click.prompt(
f"Removing {code} from workspace {workspace}. Please type {code} to confirm",
Copy link
Contributor

@pvanliefland pvanliefland Nov 29, 2023

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:'

Copy link
Contributor

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

@pvanliefland
Copy link
Contributor

@cheikhgwane ok so let's keep your approach regarding the code - the only task left is to improve the message and its formatting.

Copy link
Contributor

@pvanliefland pvanliefland left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@pvanliefland pvanliefland merged commit 549f73d into main Nov 30, 2023
4 checks passed
@pvanliefland pvanliefland deleted the feat/delete-pipeline branch November 30, 2023 10:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants