-
Notifications
You must be signed in to change notification settings - Fork 243
/
helpMessages.js
85 lines (85 loc) · 2.96 KB
/
helpMessages.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
module.exports = {
'main': [
'amp [command] <options>',
'',
'',
'curls ..................... generate AMP cache URL(s)',
'download................... download the AMP runtime',
'help ...................... show this menu',
'lint ...................... checks document for errors',
'optimize .................. runs AMP Optimizer for a given URL or file',
'runtime-version ........... shows the current AMP runtime version [production]',
'update-cache .............. removes documents from the AMP Caches',
'version ................... shows the current AMP Toolbox version',
].join('\n'),
'update-cache': [
'Usage:',
'',
'',
'amp update-cache [url] <options>',
'',
'',
'Options:',
"--privateKey .............. path to the private key file. Defaults to './privateKey.pem'.",
].join('\n'),
'lint': ['Usage:', '', '', 'amp lint url', '', 'Examples:', ' $ amplint https://amp.dev/'].join(
'\n'
),
'runtime-version': [
'Usage:',
'',
'',
'amp runtime-version',
'',
'',
'Options:',
'--canary .................. Get canary version. Defaults to false.',
'--lts ..................... Get long-term stable version. Defaults to false.',
'--host .................... AMP host. Defaults to https://cdn.ampproject.org.',
].join('\n'),
'curls': [
'Usage:',
'',
'',
'amp curls [url] <options>',
'',
'',
'Options:',
'--cache ................... AMP cache id as specified here: https://cdn.ampproject.org/caches.json.',
'--servingType ............. Serving type as specified here: https://amp.dev/documentation/guides-and-tutorials/learn/amp-caches-and-cors/amp-cache-urls/',
].join('\n'),
'optimize': [
'Usage:',
'',
'',
'amp optimize [url|file] <options>',
'',
'',
'Options:',
'--host .................... Rewrite URLs with custom AMP host',
' Default: https://cdn.ampproject.org',
'--rtv ..................... Specify runtime version for URLs',
' Default: (unversioned URLs)',
'--lts ..................... Use long-term stable URLs',
' Default: false',
'--geoapi .................. Specify fallback amp-geo API',
' Default: (no fallback)',
].join('\n'),
'download': [
'Usage:',
'',
'',
'amp download <options>',
'',
'',
'Options:',
'--dest .................... Path to download folder',
' Default: current working directory',
'--clear ................... Clear destination directory before downloading',
' Default: true',
'--rtv ..................... Runtime version to download',
' Default: latest available',
'--host .................... AMP host',
' Default: https://cdn.ampproject.org',
].join('\n'),
};