hbg

CLI for generating boilerplate for coding competitions

Usage no npm install needed!

<script type="module">
  import hbg from 'https://cdn.skypack.dev/hbg';
</script>

README

hbg (Hacker Boilerplate Generator)

npm version npm awesome

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.

License

MIT © Manraj Singh