1 | const HAKI_HINTS = [
|
2 | '`haki` without arguments will run the default generator',
|
3 | '`haki --gist` help you to manage your haki-gists',
|
4 | '`haki --help` to display all available generators',
|
5 | '`haki --quiet` will supress status output from logging',
|
6 | '`haki --force` will overwrite any files even if they exists',
|
7 | '`haki --debug` print the stack trace whenever an error occurs',
|
8 | '`haki --no-add` will skip from writing new files',
|
9 | '`haki --no-copy` will skip from copying new files',
|
10 | '`haki --no-exec` will skip from executing commands',
|
11 | '`haki --no-clone` will skip from cloning repositories',
|
12 | '`haki --no-install` will skip from installing dependencies',
|
13 | ];
|
14 |
|
15 | const HAKI_TXT = `
|
16 | ██╗ ██╗ █████╗ ██╗ ██╗██╗
|
17 | ██║ ██║██╔══██╗██║ ██╔╝██║
|
18 | ███████║███████║█████╔╝ ██║
|
19 | ██╔══██║██╔══██║██╔═██╗ ██║
|
20 | ██║ ██║██║ ██║██║ ██╗██║
|
21 | ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝╚═╝
|
22 |
|
23 | Try: ${HAKI_HINTS[Math.floor(Math.random() * HAKI_HINTS.length)]}
|
24 | `;
|
25 |
|
26 | module.exports = haki => {
|
27 | haki.setGenerator('default', {
|
28 | description: 'Print a huge banner ;-)',
|
29 | actions() {
|
30 | process.stdout.write(`${HAKI_TXT}\n`);
|
31 | },
|
32 | });
|
33 | };
|