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

[FR]: aspect init should handle a SIGINT signal (keyboard interrupt / CTRL +C) #721

Open
albertocavalcante opened this issue Jul 3, 2024 · 0 comments
Labels
enhancement New feature or request untriaged Requires traige

Comments

@albertocavalcante
Copy link

What is the current behavior?

Today if I run aspect init it clones https://github.com/aspect-build/aspect-workflows-template:

args = append(args, "https://github.com/aspect-build/aspect-workflows-template.git")
and enters interactive mode. If a user do not proceed (hits CTRL + C) it does not gracefully handle this event.

It exits with status code = 1, prints Error: user aborted and leaves the cloned github.com directory in the current dir.

Describe the feature

When an user aborts the init operation, it should cleanup changes done to the current workdir and do not treat it as an error.

@albertocavalcante albertocavalcante added the enhancement New feature or request label Jul 3, 2024
@github-actions github-actions bot added the untriaged Requires traige label Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request untriaged Requires traige
Projects
None yet
Development

No branches or pull requests

1 participant