taptap-commanderTab/Auto Completion for Commander.js CLIs.
ExampleLook at the code of the Example App @ /examples/exampleapp
If installed properly and you entered
exampleappand striked tab you would get…
Then if you were to enter
# exampleapp hello helllllooooooo world
exampleapp heand striked tab you would get…
Or if you were to enter
# exampleapp hello hello helllllooooooo
exampleapp wand striked tab you would get…
# exampleapp world
InstallationSorry wording isn't brilliant. If you need a hand drop me a note. @bencevans on Twitter and GitHub. You can find my email on my GitHub profile.
- Require taptap-commander.
commanderTabTab = require('taptap-commander');
- Just before
commanderTabTab.init(program, 'NAME OF YOUR BIN/CLI FILE/APP');
- Install your app using NPM
npm install -g .(This adds your app to your shell's PATH)
If you would like to install completion everywhere rather than just in the current shell enter this line.
- Add completion helper to ~/.bashrc (or ~/.zshrc)
APPNAME completion >> ~/.bashrc
else if you just want to try out with it enabled in the current shell enter this line.
- Add completion to current shell
source <(pkgname completion)
In The Wildnpunch - NodeJS WebApp Development Hostbox Thing.