CLI tool builder using 'cola' namespace.
Assuming you have node.js installed, run
npm i -g colapack-cli
This package contains an executable under the namespace
cola, and all it really does is looks for a file
colapack.js in the current directory you
Unless you have a file named
colapack.js in your
current directory, you should get a warning when
cola in your terminal/cmd.exe.
colapack.js gets executed when you call 'cola', so use it wisely.
To test, console.log anything for now and save the file.
Now make sure you're in the directory with the
colapack.js file and enter
cola into the terminal
and you should have the colapack.js file executed
within that directory.
Pretty neat huh...
Here is everything we just did...
You can go ahead and get creative using node and all
of its super awesome npm packages, but also stay tuned
colapack v0.1.2. This package will be a library
of tools and default plugins, intended to be used for
building command line tools.
For a quick example of how to make a CLI using node and npm, head over to this article I wrote to remind myself how to do it.