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

Upgrade to commander 7.0.0 #151

Open
brandongregoryscott opened this issue Jan 17, 2021 · 0 comments
Open

Upgrade to commander 7.0.0 #151

brandongregoryscott opened this issue Jan 17, 2021 · 0 comments
Labels
dependencies Pull requests that update a dependency file enhancement New feature or request

Comments

@brandongregoryscott
Copy link
Contributor

commander recently published v7.0.0 which includes a few features that are nice-to-have. Some breaking changes are included but shouldn't be too hard to swap over.

The biggest breaking change will be converting all of the program.option references to use program.opts().option, or destructuring syntax (ie, const { run, watch } = program.opts())

A new configureOutput() function is available for overriding the default stderr/stdout calls, which might be nice to always prefix with our [ERROR] message

I believe there's also support for reusing the same option between a parent and subcommand. Not sure we've needed it so far, but I think I ran into a case where it would be nice to have for the Github command refactor in #124

@brandongregoryscott brandongregoryscott added enhancement New feature or request dependencies Pull requests that update a dependency file labels Jan 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant