Amplify-cli: Respect Ctrl+C during `amplify init` or `amplify push`

Created on 22 Oct 2020  路  6Comments  路  Source: aws-amplify/amplify-cli

Is your feature request related to a problem? Please describe.

When I run amplify init or amplify push and realize it is hanging or that i have made a mistake while it is executing something in the cloud, a standard CLI workflow is to ctrl+C to kill the process and restart. i would like this to actually work.

currently i have to kill the entire terminal process i am working on.

Describe the solution you'd like

i dont know what the cause is so i dont know the solution.

bug pending-close-response-required platform

Most helpful comment

@sw-yx It's the spinner swallowing the CTRL+C, I will mark this as a bug and figure out a way for the spinner to not swallow the SIGINT event.

All 6 comments

@sw-yx What version are you using? we do handle SIGINT and exit the process.

image

4.28 - i should clarify that this is specifically during parts where there is a spinner, like "Initializing Environment"

image

it is also happening everytime i amplify push which obviously takes longer

@sw-yx It's the spinner swallowing the CTRL+C, I will mark this as a bug and figure out a way for the spinner to not swallow the SIGINT event.

@sw-yx I tried it with 4.32.0 can you confirm?
2020-11-03 09 54 01

image
yes!! thank you!

Was this page helpful?
0 / 5 - 0 ratings