-
Notifications
You must be signed in to change notification settings - Fork 47
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(stop): allow to also cancel any ongoing deployment #766
base: master
Are you sure you want to change the base?
Conversation
6fe35d3
to
6e8b88a
Compare
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.
👍 I'm OK with the code but I want to discuss the UX...
- a
clever stop --cancel
fails if there is no ongoing deployment - why no
clever stop && clever cancel-deploy
? - is
--cancel
clear enough? should it beclever stop --cancel-deploy
?
🔎 A preview has been automatically published:
This preview will be deleted once this PR is closed. |
A For the flag name I'm open. Help is clear enough but the command is |
802586c
to
2ab0d72
Compare
As discussed in sync it's now:
|
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! GJ looks clean to me
I think that the
clever stop --all --app {APP_ID}
will be really useful 💖
2ab0d72
to
77965c7
Compare
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.
I don't think a command should import another command. I'll rework the commit myself.
77965c7
to
9f9b075
Compare
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.
I updated the code so a command does not rely on another but I'm not sure this update is necessary.
From my tests, a stop on an app cancels any ongoing deployments (new commits and upscaling). Let's do some more tests before merging this...
This PR adds
--cancel
and-c
to thestop
command. It allows to ask to stop the app and to cancel any ongoing deployment with only one command.The branch has been rebased on
support-app-id
from Pierre