File tree Expand file tree Collapse file tree 2 files changed +42
-24
lines changed Expand file tree Collapse file tree 2 files changed +42
-24
lines changed Original file line number Diff line number Diff line change @@ -159,33 +159,26 @@ you can use the `include` property,
159
159
160
160
# ## CLI
161
161
162
- The `blobpack` command supports passing options :
163
-
164
- ` ` `
165
- $ blobpack --version
166
- $ blobpack version
167
162
```
168
163
169
- ```
170
- $ blobpack install \
171
- --config-path ./package.json \
172
- --tmp-root ./tmp
173
- ```
164
+ Usage: blobpack [ command] [ options]
165
+
166
+
167
+ Commands:
168
+
169
+ install Download Benthos .zip
170
+ build Build .zip artifacts
171
+ help Display help
172
+
173
+ Options:
174
+
175
+ --version Output the version number
176
+ --config-path Path to the JSON file containing the blobpack config
177
+ --tmp-root Path to tmp working directory
178
+ --config-root Path to the directory containing the artifact configs
179
+ --resources-root Path to the directory all resources are relative to
180
+ --dist-root Path to the directory to output artifacts
174
181
175
- ```
176
- $ blobpack \
177
- --config-path ./package.json \
178
- --tmp-root ./tmp \
179
- --config-root ./config \
180
- --resources-root ./ \
181
- --dist-root ./dist
182
-
183
- $ blobpack build \
184
- --config-path ./package.json \
185
- --tmp-root ./tmp \
186
- --config-root ./config \
187
- --resources-root ./ \
188
- --dist-root ./dist
189
182
```
190
183
191
184
## Development and Testing
Original file line number Diff line number Diff line change @@ -40,3 +40,28 @@ if (args._[0] === 'build' || args._[0] == null) {
40
40
distRoot : args [ '--dist-root' ]
41
41
} )
42
42
}
43
+
44
+ const docs = `
45
+ Usage: blobpack [command] [options]
46
+
47
+
48
+ Commands:
49
+
50
+ install Download Benthos .zip
51
+ build Build .zip artifacts
52
+ help Display help
53
+
54
+ Options:
55
+
56
+ --version Output the version number
57
+ --config-path Path to the JSON file containing the blobpack config
58
+ --tmp-root Path to tmp working directory
59
+ --config-root Output the version number
60
+ --resources-root Output the version number
61
+ --dist-root Output the version number
62
+ `
63
+
64
+ if ( args . _ [ 0 ] === 'help' ) {
65
+ // eslint-disable-next-line no-console
66
+ console . log ( docs )
67
+ }
You can’t perform that action at this time.
0 commit comments