rsm-hcd / AndcultureCode.Cli

and-cli command-line tool to manage the development of software applications
https://andculture.com
Apache License 2.0
14 stars 15 forks source link

Upgrade to commander 7.0.0 #151

Open brandongregoryscott opened 3 years ago

brandongregoryscott commented 3 years ago

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