Skip to content

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