Loving Vorpal, but one feature I miss is a default view. Something that is rendered when the script is called with no command, like node toolkit.js or just toolkit. As of right now, it outputs nothing and simply exits.
It would be nice if we could do something like the following.
vorpal
.version('1.2.3')
.name('Toolkit')
.description('User interface components built on React.')
.parse(process.argv);
And when ran, would output the following.
Toolkit v1.2.3
User interface components built on React.
Usage: toolkit <command> [options]
Commands:
help [command...] Provides help for a given command.
exit Exits application.
build [options] Transpile source files.
Options:
--version Output the current application version.
--verbose Log more information.
We can even go crazier by supporting banners that prepend to the top.
Loving Vorpal, but one feature I miss is a default view. Something that is rendered when the script is called with no command, like
node toolkit.js
or justtoolkit
. As of right now, it outputs nothing and simply exits.It would be nice if we could do something like the following.
And when ran, would output the following.
We can even go crazier by supporting banners that prepend to the top.