forked from bitrix-tools/cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhelp.js
43 lines (34 loc) · 1.16 KB
/
help.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import Help from './tools/help';
const helper = new Help();
helper
.usage('bitrix <command> [options]')
.header('Bundler commands')
.command('build', 'Builds all bundles from current directory')
.subheader('Options')
.option('-w, --watch', 'Run file change watcher for current directory')
.option('-m, --modules', 'Run command for specified modules')
.option('-p, --path', 'Run command for path')
.option('-t, --test', 'Run tests after build')
.separator()
.header('Create extension')
.command('create [extName]', 'Runs create extension wizard')
.separator()
.header('Testing')
.command('test', 'Runs file change watcher for current directory')
.subheader('Options')
.option('-w, --watch', 'Run file change watcher for current directory')
.option('-m, --modules', 'Run command for specified modules')
.option('-p, --path', 'Run command for path')
.separator()
.header('Settings')
.command('settings', 'Runs settings wizard')
.separator()
.header('Info')
.command('info', 'Prints information about tools')
.separator()
.header('Help')
.command('--help, -h', 'Prints help information')
.separator();
export default function help() {
helper.print();
}