-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy pathhelp.js
56 lines (34 loc) · 1.22 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
44
45
46
47
48
49
50
51
52
53
54
55
56
const chalk = require('chalk');
module.exports =
`${chalk.bold('Usage:')}
gcal [-C <file>] [cmd] [--debug]
OPTIONS
-C, --config <file>
--debug
${chalk.bold('Commands')}:
${chalk.bold('list')} [<term> | [-f <date | datetime>] [-t <date | datetime>]] [-i]
List events. By default it shows today events (executed without arguments).
OPTIONS
-f, --from <date | datetime>
-t, --to <date | datetime>
-i, --show-id
${chalk.bold('insert')} <term> | -s <summary> -d <date> [-t <time>] [-D <duration>]
Insert events. <term> is specified in natural language, in case it's not specified,
-s and -d are mandatory.
OPTIONS
-s, --summary <summary>
-d, --date <date>
-t, --time <time>
-D, --duration <duration>
${chalk.bold('bulk')} -e <file>
Bulk insert of events. File can be .json or .js.
OPTIONS
-e, --events <file>
${chalk.bold('generateUrl')}
Generate consent page URL. In order to work client_secret.js must be in your
home folder.
${chalk.bold('storeToken')} <code>
Store Token in your home folder.
${chalk.bold('help')}
Show this help page.
`;