hbg
v0.1.3
Published
CLI for generating boilerplate for coding competitions
Downloads
18
Maintainers
Readme
hbg (Hacker Boilerplate Generator)
CLI for generating boilerplate for coding competitions
Install
$ npm install -g hbg
Usage
Commands available
sudo hbg <command>
Commands:
gen Generate boilerplate
add Add default template
config Change config file
Options:
-h, --help Show help [boolean]
Command gen
Usage: hbg gen <options>
Options:
-h, --help Show help [boolean]
-l, --lang Language. Change `config` for default
-q, --ques Number of questions. Change `config` for default
Examples:
$ sudo hbg gen -l cpp -q 4
Command add
Usage: hbg add <options>
Options:
-h, --help Show help [boolean]
-t, --template Path to the template file [required]
-l, --lang Language chosen [required]
Examples:
$ sudo hbg add -t test/template.cpp -l cpp
Command config
Run $ sudo hbg config
to change configuration of your installation. This includes default language and default questions.
Usage: hbg config
Options:
-h, --help Show help [boolean]
-l, --list List language and their extension [boolean]
Examples:
$ sudo hbg config -l
Note
Some of the commands may require root permission. Please check before opening an issue.