Creates a new CLI parser instance
const cli = new CLI({
baseDir: __dirname,
commandDir: './relative/path/to/my/command/impls',
commandDelim: ':', // use colons instead of spaces to traverse command tree
});
configurations or overrides to package.json configuration
Add help text to the main program
Add ui heading
Help text to show
Flag to output the raw text without formatting
Add global options to the main program
global option configuration object
parsed option value callback
Manually output help text
Main execution method. Parse arguments from the command line and run the program.
import { CLI } from '@jib/cli';
const parser = new CLI({
// options
});
parser.parse(process.argv);
raw command line arguments
The main entrypoint for CLI argv parsing and execution