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

Allow skipping errors #48

Open
TimWhiting opened this issue Jul 17, 2021 · 1 comment
Open

Allow skipping errors #48

TimWhiting opened this issue Jul 17, 2021 · 1 comment

Comments

@TimWhiting
Copy link
Contributor

When developing a new codemod, it would be helpful to be able to allow continuing regardless of exceptions with some sort of debug flag or parameter passed to runInteractiveCodemodSequence.

Something like
--continue-on-exceptions

Motivation: It's hard to catch every edge case when creating a migration when there are a lot of breaking changes like what happened recently with package riverpod going to v1.0.0-dev. Users would still like to be able to do a best-effort migration when the migration tool has exceptions, so that they don't have to do the full migration manually and don't have to wait for the migration tool to be flawless.

@evanweible-wf
Copy link
Contributor

A CLI flag like --continue-on-exceptions makes sense, especially for automated use cases where they might be using --yes-to-all as well. Seems like we could also update the default behavior of runInteractiveCodemodSequence to catch these exceptions and prompt the user on whether they want to continue or quit.

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

No branches or pull requests

2 participants