UNPKG

949 BPlain TextView Raw
1import * as program from 'commander';
2const pkg = require('../package.json');
3console.log(`
4 ___
5 /'\\_/\`\\ /\\_ \\
6/\\ \\ __ \\//\\ \\ __ __ __ __
7\\ \\ \\__\\ \\ /'__\`\\ \\ \\ \\ /'__\`\\ /'_ \`\\/\\ \\/\\ \\
8 \\ \\ \\_/\\ \\/\\ \\L\\.\\_ \\_\\ \\_/\\ \\L\\.\\_/\\ \\L\\ \\ \\ \\_\\ \\
9 \\ \\_\\\\ \\_\\ \\__/.\\_\\/\\____\\ \\__/.\\_\\ \\____ \\ \\____/
10 \\/_/ \\/_/\\/__/\\/_/\\/____/\\/__/\\/_/\\/___L\\ \\/___/
11 /\\____/
12 ${(('@malagu/cli@' + pkg.version) as any).padStart(20, ' ')} \\_/__/
13`);
14
15program
16 .version(pkg.version)
17 .description(`Malagu CLI ${pkg.version}`)
18 .command('init [name]', 'init a application')
19 .command('serve [options]', 'serve a applicaton')
20 .command('build [options]', 'build a applicaton')
21 .command('deploy [options]', 'build and deply a application')
22 .parse(process.argv);