fuse-box-cli
Fusebox is a nice piece of software, i really like it! But sadly there is no easy way for providing options.
For this reason i created this module.
Features
- Works with zero configuration! (Just like FuseBox)
- Nice formatted help
- Powerfull options api, thanks to yargs
Examples
Zero configuration
fuse.js:
const FuseBox Sparky = const options = SparkySparky
Now running the script it will output something like this:
D:\Programming\Projects\some-project> node fuse -h
Usage: fuse <task> [options]
Tasks:
clean:dist
* default The default task
Options:
--help, -h Show help [boolean]
Simple init
fuse.js:
const FuseBox Sparky = const options = if optionsalert console process SparkySparky
Now running the script it will output something like this:
D:\Programming\Projects\some-project> node fuse --alert
ALLLLEEERRRT! ALLLEEEEERRRTTT!
or
D:\Programming\Projects\some-project> node fuse -h
Usage: fuse <task> [options]
Tasks:
clean:dist Cleans the dist folder
* default The default task
Options:
--help, -h Show help [boolean]
--alert Alerts something! [boolean] [default: false]