Skip to content

Feat - Exit with Non-Zero Code on Migration Cancellation #1471

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

angelod1as
Copy link

Summary

This PR adds a non-zero exit code to contentful space migration when the user cancels the migration by pressing "n" at the confirmation prompt.

Description

#1470 has the detailed reasoning behind this PR.

Motivation and Context

This change allows scripts to reliably detect user-cancelled migrations and take appropriate action.

Closes #1470

Caveats

I've never contributed to such CLI tools so I don't know exactly how to build and test this locally. I've run npm test in a test space and I had 4 failures (probably because it's a free space).

If someone guides me through how to build and test this locally I'd love to do that. I'd gladly add documetation regarding to that as well.

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.

Request: Exit with Non-Zero Code on Migration Cancellation
1 participant