We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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 for:
var cli = helmsman({ npmPrefix:'nabu-cli-' });
and it will automatically search the libraries npm installed packages and add any exposed 'commands'
The text was updated successfully, but these errors were encountered:
hey @mattmcmanus this would be really cool, are you still interested in doing something this this?
Sorry, something went wrong.
as a hacky work-around, I just ended up doing this:
#!/usr/bin/env node // load binaries from node_modules var pkg = require('../package'); pkg.commands.forEach( function( moduleName ){ process.env.PATH += ':' + process.cwd() + '/node_modules/' + moduleName + '/bin'; }); var helmsman = require('helmsman'); helmsman({ usePath: true }).parse();
... and in my package.json
package.json
"commands": [ "submodule1", "submodule2" ],
No branches or pull requests
Allow for:
and it will automatically search the libraries npm installed packages and add any exposed 'commands'
The text was updated successfully, but these errors were encountered: