alwaysai / alwayscli

A framework for building command-line interfaces in Node.js
Other
6 stars 2 forks source link

feat: Command links #7

Closed carnesen closed 4 years ago

carnesen commented 5 years ago

Here is an example of the scenario we want to support:

$ cli foo
Error: Could find the foo. Did you run "cli bar" yet?

Currently the "cli bar" "command link" string is hard-coded into the error message so there's no way to know programmatically whether its referencing an actual command or not. It might be nice to build an abstraction for these links so they can be checked.

carnesen commented 4 years ago

Howdy yall! This project was originally a copy-paste fork of @carnesen/cli, which I've continued to work on over the last six months. I just put out the 0.5.0 release including thorough online documentation and examples. @carnesen/cli is also fully isomorphic, so it works in a browser too! Check it out and star the project's repo on GitHub if you like what you see. Since that's the more actively maintained fork of this project, I'll close my feature requests here. As always, please just let me know by GitHub or email if there's anything I can do to help with any of my open-source contributions.