@builder6/cli 0.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +420 -0
- package/bin/dev.cmd +3 -0
- package/bin/dev.js +6 -0
- package/bin/run.cmd +3 -0
- package/bin/run.js +7 -0
- package/dist/commands/hello/index.d.ts +12 -0
- package/dist/commands/hello/index.js +22 -0
- package/dist/commands/hello/world.d.ts +8 -0
- package/dist/commands/hello/world.js +17 -0
- package/dist/commands/start/index.d.ts +12 -0
- package/dist/commands/start/index.js +20 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +5 -0
- package/oclif.manifest.json +119 -0
- package/package.json +76 -0
package/README.md
ADDED
|
@@ -0,0 +1,420 @@
|
|
|
1
|
+
@builder6/cli
|
|
2
|
+
=================
|
|
3
|
+
|
|
4
|
+
A new CLI generated with oclif
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
[](https://oclif.io)
|
|
8
|
+
[](https://npmjs.org/package/@builder6/cli)
|
|
9
|
+
[](https://npmjs.org/package/@builder6/cli)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
<!-- toc -->
|
|
13
|
+
* [Usage](#usage)
|
|
14
|
+
* [Commands](#commands)
|
|
15
|
+
<!-- tocstop -->
|
|
16
|
+
# Usage
|
|
17
|
+
<!-- usage -->
|
|
18
|
+
```sh-session
|
|
19
|
+
$ npm install -g @builder6/cli
|
|
20
|
+
$ b6 COMMAND
|
|
21
|
+
running command...
|
|
22
|
+
$ b6 (--version)
|
|
23
|
+
@builder6/cli/0.5.4 darwin-arm64 node-v18.20.3
|
|
24
|
+
$ b6 --help [COMMAND]
|
|
25
|
+
USAGE
|
|
26
|
+
$ b6 COMMAND
|
|
27
|
+
...
|
|
28
|
+
```
|
|
29
|
+
<!-- usagestop -->
|
|
30
|
+
# Commands
|
|
31
|
+
<!-- commands -->
|
|
32
|
+
* [`b6 hello PERSON`](#b6-hello-person)
|
|
33
|
+
* [`b6 hello world`](#b6-hello-world)
|
|
34
|
+
* [`b6 help [COMMAND]`](#b6-help-command)
|
|
35
|
+
* [`b6 plugins`](#b6-plugins)
|
|
36
|
+
* [`b6 plugins add PLUGIN`](#b6-plugins-add-plugin)
|
|
37
|
+
* [`b6 plugins:inspect PLUGIN...`](#b6-pluginsinspect-plugin)
|
|
38
|
+
* [`b6 plugins install PLUGIN`](#b6-plugins-install-plugin)
|
|
39
|
+
* [`b6 plugins link PATH`](#b6-plugins-link-path)
|
|
40
|
+
* [`b6 plugins remove [PLUGIN]`](#b6-plugins-remove-plugin)
|
|
41
|
+
* [`b6 plugins reset`](#b6-plugins-reset)
|
|
42
|
+
* [`b6 plugins uninstall [PLUGIN]`](#b6-plugins-uninstall-plugin)
|
|
43
|
+
* [`b6 plugins unlink [PLUGIN]`](#b6-plugins-unlink-plugin)
|
|
44
|
+
* [`b6 plugins update`](#b6-plugins-update)
|
|
45
|
+
* [`b6 start`](#b6-start)
|
|
46
|
+
|
|
47
|
+
## `b6 hello PERSON`
|
|
48
|
+
|
|
49
|
+
Say hello
|
|
50
|
+
|
|
51
|
+
```
|
|
52
|
+
USAGE
|
|
53
|
+
$ b6 hello PERSON -f <value>
|
|
54
|
+
|
|
55
|
+
ARGUMENTS
|
|
56
|
+
PERSON Person to say hello to
|
|
57
|
+
|
|
58
|
+
FLAGS
|
|
59
|
+
-f, --from=<value> (required) Who is saying hello
|
|
60
|
+
|
|
61
|
+
DESCRIPTION
|
|
62
|
+
Say hello
|
|
63
|
+
|
|
64
|
+
EXAMPLES
|
|
65
|
+
$ b6 hello friend --from oclif
|
|
66
|
+
hello friend from oclif! (./src/commands/hello/index.ts)
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
_See code: [src/commands/hello/index.ts](https://github.com/builder6app/cli/blob/v0.5.4/src/commands/hello/index.ts)_
|
|
70
|
+
|
|
71
|
+
## `b6 hello world`
|
|
72
|
+
|
|
73
|
+
Say hello world
|
|
74
|
+
|
|
75
|
+
```
|
|
76
|
+
USAGE
|
|
77
|
+
$ b6 hello world
|
|
78
|
+
|
|
79
|
+
DESCRIPTION
|
|
80
|
+
Say hello world
|
|
81
|
+
|
|
82
|
+
EXAMPLES
|
|
83
|
+
$ b6 hello world
|
|
84
|
+
hello world! (./src/commands/hello/world.ts)
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
_See code: [src/commands/hello/world.ts](https://github.com/builder6app/cli/blob/v0.5.4/src/commands/hello/world.ts)_
|
|
88
|
+
|
|
89
|
+
## `b6 help [COMMAND]`
|
|
90
|
+
|
|
91
|
+
Display help for b6.
|
|
92
|
+
|
|
93
|
+
```
|
|
94
|
+
USAGE
|
|
95
|
+
$ b6 help [COMMAND...] [-n]
|
|
96
|
+
|
|
97
|
+
ARGUMENTS
|
|
98
|
+
COMMAND... Command to show help for.
|
|
99
|
+
|
|
100
|
+
FLAGS
|
|
101
|
+
-n, --nested-commands Include all nested commands in the output.
|
|
102
|
+
|
|
103
|
+
DESCRIPTION
|
|
104
|
+
Display help for b6.
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v6.2.19/src/commands/help.ts)_
|
|
108
|
+
|
|
109
|
+
## `b6 plugins`
|
|
110
|
+
|
|
111
|
+
List installed plugins.
|
|
112
|
+
|
|
113
|
+
```
|
|
114
|
+
USAGE
|
|
115
|
+
$ b6 plugins [--json] [--core]
|
|
116
|
+
|
|
117
|
+
FLAGS
|
|
118
|
+
--core Show core plugins.
|
|
119
|
+
|
|
120
|
+
GLOBAL FLAGS
|
|
121
|
+
--json Format output as json.
|
|
122
|
+
|
|
123
|
+
DESCRIPTION
|
|
124
|
+
List installed plugins.
|
|
125
|
+
|
|
126
|
+
EXAMPLES
|
|
127
|
+
$ b6 plugins
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.22/src/commands/plugins/index.ts)_
|
|
131
|
+
|
|
132
|
+
## `b6 plugins add PLUGIN`
|
|
133
|
+
|
|
134
|
+
Installs a plugin into b6.
|
|
135
|
+
|
|
136
|
+
```
|
|
137
|
+
USAGE
|
|
138
|
+
$ b6 plugins add PLUGIN... [--json] [-f] [-h] [-s | -v]
|
|
139
|
+
|
|
140
|
+
ARGUMENTS
|
|
141
|
+
PLUGIN... Plugin to install.
|
|
142
|
+
|
|
143
|
+
FLAGS
|
|
144
|
+
-f, --force Force npm to fetch remote resources even if a local copy exists on disk.
|
|
145
|
+
-h, --help Show CLI help.
|
|
146
|
+
-s, --silent Silences npm output.
|
|
147
|
+
-v, --verbose Show verbose npm output.
|
|
148
|
+
|
|
149
|
+
GLOBAL FLAGS
|
|
150
|
+
--json Format output as json.
|
|
151
|
+
|
|
152
|
+
DESCRIPTION
|
|
153
|
+
Installs a plugin into b6.
|
|
154
|
+
|
|
155
|
+
Uses npm to install plugins.
|
|
156
|
+
|
|
157
|
+
Installation of a user-installed plugin will override a core plugin.
|
|
158
|
+
|
|
159
|
+
Use the B6_NPM_LOG_LEVEL environment variable to set the npm loglevel.
|
|
160
|
+
Use the B6_NPM_REGISTRY environment variable to set the npm registry.
|
|
161
|
+
|
|
162
|
+
ALIASES
|
|
163
|
+
$ b6 plugins add
|
|
164
|
+
|
|
165
|
+
EXAMPLES
|
|
166
|
+
Install a plugin from npm registry.
|
|
167
|
+
|
|
168
|
+
$ b6 plugins add myplugin
|
|
169
|
+
|
|
170
|
+
Install a plugin from a github url.
|
|
171
|
+
|
|
172
|
+
$ b6 plugins add https://github.com/someuser/someplugin
|
|
173
|
+
|
|
174
|
+
Install a plugin from a github slug.
|
|
175
|
+
|
|
176
|
+
$ b6 plugins add someuser/someplugin
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
## `b6 plugins:inspect PLUGIN...`
|
|
180
|
+
|
|
181
|
+
Displays installation properties of a plugin.
|
|
182
|
+
|
|
183
|
+
```
|
|
184
|
+
USAGE
|
|
185
|
+
$ b6 plugins inspect PLUGIN...
|
|
186
|
+
|
|
187
|
+
ARGUMENTS
|
|
188
|
+
PLUGIN... [default: .] Plugin to inspect.
|
|
189
|
+
|
|
190
|
+
FLAGS
|
|
191
|
+
-h, --help Show CLI help.
|
|
192
|
+
-v, --verbose
|
|
193
|
+
|
|
194
|
+
GLOBAL FLAGS
|
|
195
|
+
--json Format output as json.
|
|
196
|
+
|
|
197
|
+
DESCRIPTION
|
|
198
|
+
Displays installation properties of a plugin.
|
|
199
|
+
|
|
200
|
+
EXAMPLES
|
|
201
|
+
$ b6 plugins inspect myplugin
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.22/src/commands/plugins/inspect.ts)_
|
|
205
|
+
|
|
206
|
+
## `b6 plugins install PLUGIN`
|
|
207
|
+
|
|
208
|
+
Installs a plugin into b6.
|
|
209
|
+
|
|
210
|
+
```
|
|
211
|
+
USAGE
|
|
212
|
+
$ b6 plugins install PLUGIN... [--json] [-f] [-h] [-s | -v]
|
|
213
|
+
|
|
214
|
+
ARGUMENTS
|
|
215
|
+
PLUGIN... Plugin to install.
|
|
216
|
+
|
|
217
|
+
FLAGS
|
|
218
|
+
-f, --force Force npm to fetch remote resources even if a local copy exists on disk.
|
|
219
|
+
-h, --help Show CLI help.
|
|
220
|
+
-s, --silent Silences npm output.
|
|
221
|
+
-v, --verbose Show verbose npm output.
|
|
222
|
+
|
|
223
|
+
GLOBAL FLAGS
|
|
224
|
+
--json Format output as json.
|
|
225
|
+
|
|
226
|
+
DESCRIPTION
|
|
227
|
+
Installs a plugin into b6.
|
|
228
|
+
|
|
229
|
+
Uses npm to install plugins.
|
|
230
|
+
|
|
231
|
+
Installation of a user-installed plugin will override a core plugin.
|
|
232
|
+
|
|
233
|
+
Use the B6_NPM_LOG_LEVEL environment variable to set the npm loglevel.
|
|
234
|
+
Use the B6_NPM_REGISTRY environment variable to set the npm registry.
|
|
235
|
+
|
|
236
|
+
ALIASES
|
|
237
|
+
$ b6 plugins add
|
|
238
|
+
|
|
239
|
+
EXAMPLES
|
|
240
|
+
Install a plugin from npm registry.
|
|
241
|
+
|
|
242
|
+
$ b6 plugins install myplugin
|
|
243
|
+
|
|
244
|
+
Install a plugin from a github url.
|
|
245
|
+
|
|
246
|
+
$ b6 plugins install https://github.com/someuser/someplugin
|
|
247
|
+
|
|
248
|
+
Install a plugin from a github slug.
|
|
249
|
+
|
|
250
|
+
$ b6 plugins install someuser/someplugin
|
|
251
|
+
```
|
|
252
|
+
|
|
253
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.22/src/commands/plugins/install.ts)_
|
|
254
|
+
|
|
255
|
+
## `b6 plugins link PATH`
|
|
256
|
+
|
|
257
|
+
Links a plugin into the CLI for development.
|
|
258
|
+
|
|
259
|
+
```
|
|
260
|
+
USAGE
|
|
261
|
+
$ b6 plugins link PATH [-h] [--install] [-v]
|
|
262
|
+
|
|
263
|
+
ARGUMENTS
|
|
264
|
+
PATH [default: .] path to plugin
|
|
265
|
+
|
|
266
|
+
FLAGS
|
|
267
|
+
-h, --help Show CLI help.
|
|
268
|
+
-v, --verbose
|
|
269
|
+
--[no-]install Install dependencies after linking the plugin.
|
|
270
|
+
|
|
271
|
+
DESCRIPTION
|
|
272
|
+
Links a plugin into the CLI for development.
|
|
273
|
+
|
|
274
|
+
Installation of a linked plugin will override a user-installed or core plugin.
|
|
275
|
+
|
|
276
|
+
e.g. If you have a user-installed or core plugin that has a 'hello' command, installing a linked plugin with a 'hello'
|
|
277
|
+
command will override the user-installed or core plugin implementation. This is useful for development work.
|
|
278
|
+
|
|
279
|
+
|
|
280
|
+
EXAMPLES
|
|
281
|
+
$ b6 plugins link myplugin
|
|
282
|
+
```
|
|
283
|
+
|
|
284
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.22/src/commands/plugins/link.ts)_
|
|
285
|
+
|
|
286
|
+
## `b6 plugins remove [PLUGIN]`
|
|
287
|
+
|
|
288
|
+
Removes a plugin from the CLI.
|
|
289
|
+
|
|
290
|
+
```
|
|
291
|
+
USAGE
|
|
292
|
+
$ b6 plugins remove [PLUGIN...] [-h] [-v]
|
|
293
|
+
|
|
294
|
+
ARGUMENTS
|
|
295
|
+
PLUGIN... plugin to uninstall
|
|
296
|
+
|
|
297
|
+
FLAGS
|
|
298
|
+
-h, --help Show CLI help.
|
|
299
|
+
-v, --verbose
|
|
300
|
+
|
|
301
|
+
DESCRIPTION
|
|
302
|
+
Removes a plugin from the CLI.
|
|
303
|
+
|
|
304
|
+
ALIASES
|
|
305
|
+
$ b6 plugins unlink
|
|
306
|
+
$ b6 plugins remove
|
|
307
|
+
|
|
308
|
+
EXAMPLES
|
|
309
|
+
$ b6 plugins remove myplugin
|
|
310
|
+
```
|
|
311
|
+
|
|
312
|
+
## `b6 plugins reset`
|
|
313
|
+
|
|
314
|
+
Remove all user-installed and linked plugins.
|
|
315
|
+
|
|
316
|
+
```
|
|
317
|
+
USAGE
|
|
318
|
+
$ b6 plugins reset [--hard] [--reinstall]
|
|
319
|
+
|
|
320
|
+
FLAGS
|
|
321
|
+
--hard Delete node_modules and package manager related files in addition to uninstalling plugins.
|
|
322
|
+
--reinstall Reinstall all plugins after uninstalling.
|
|
323
|
+
```
|
|
324
|
+
|
|
325
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.22/src/commands/plugins/reset.ts)_
|
|
326
|
+
|
|
327
|
+
## `b6 plugins uninstall [PLUGIN]`
|
|
328
|
+
|
|
329
|
+
Removes a plugin from the CLI.
|
|
330
|
+
|
|
331
|
+
```
|
|
332
|
+
USAGE
|
|
333
|
+
$ b6 plugins uninstall [PLUGIN...] [-h] [-v]
|
|
334
|
+
|
|
335
|
+
ARGUMENTS
|
|
336
|
+
PLUGIN... plugin to uninstall
|
|
337
|
+
|
|
338
|
+
FLAGS
|
|
339
|
+
-h, --help Show CLI help.
|
|
340
|
+
-v, --verbose
|
|
341
|
+
|
|
342
|
+
DESCRIPTION
|
|
343
|
+
Removes a plugin from the CLI.
|
|
344
|
+
|
|
345
|
+
ALIASES
|
|
346
|
+
$ b6 plugins unlink
|
|
347
|
+
$ b6 plugins remove
|
|
348
|
+
|
|
349
|
+
EXAMPLES
|
|
350
|
+
$ b6 plugins uninstall myplugin
|
|
351
|
+
```
|
|
352
|
+
|
|
353
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.22/src/commands/plugins/uninstall.ts)_
|
|
354
|
+
|
|
355
|
+
## `b6 plugins unlink [PLUGIN]`
|
|
356
|
+
|
|
357
|
+
Removes a plugin from the CLI.
|
|
358
|
+
|
|
359
|
+
```
|
|
360
|
+
USAGE
|
|
361
|
+
$ b6 plugins unlink [PLUGIN...] [-h] [-v]
|
|
362
|
+
|
|
363
|
+
ARGUMENTS
|
|
364
|
+
PLUGIN... plugin to uninstall
|
|
365
|
+
|
|
366
|
+
FLAGS
|
|
367
|
+
-h, --help Show CLI help.
|
|
368
|
+
-v, --verbose
|
|
369
|
+
|
|
370
|
+
DESCRIPTION
|
|
371
|
+
Removes a plugin from the CLI.
|
|
372
|
+
|
|
373
|
+
ALIASES
|
|
374
|
+
$ b6 plugins unlink
|
|
375
|
+
$ b6 plugins remove
|
|
376
|
+
|
|
377
|
+
EXAMPLES
|
|
378
|
+
$ b6 plugins unlink myplugin
|
|
379
|
+
```
|
|
380
|
+
|
|
381
|
+
## `b6 plugins update`
|
|
382
|
+
|
|
383
|
+
Update installed plugins.
|
|
384
|
+
|
|
385
|
+
```
|
|
386
|
+
USAGE
|
|
387
|
+
$ b6 plugins update [-h] [-v]
|
|
388
|
+
|
|
389
|
+
FLAGS
|
|
390
|
+
-h, --help Show CLI help.
|
|
391
|
+
-v, --verbose
|
|
392
|
+
|
|
393
|
+
DESCRIPTION
|
|
394
|
+
Update installed plugins.
|
|
395
|
+
```
|
|
396
|
+
|
|
397
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.22/src/commands/plugins/update.ts)_
|
|
398
|
+
|
|
399
|
+
## `b6 start`
|
|
400
|
+
|
|
401
|
+
Start b6 server.
|
|
402
|
+
|
|
403
|
+
```
|
|
404
|
+
USAGE
|
|
405
|
+
$ b6 start [--port <value>] [-u <value>] [-c <value>]
|
|
406
|
+
|
|
407
|
+
FLAGS
|
|
408
|
+
-c, --config=<value> [default: b6.config.js] use specified config file
|
|
409
|
+
-u, --userDir=<value> use specified user directory
|
|
410
|
+
--port=<value> [default: 5100] port to listen on
|
|
411
|
+
|
|
412
|
+
DESCRIPTION
|
|
413
|
+
Start b6 server.
|
|
414
|
+
|
|
415
|
+
EXAMPLES
|
|
416
|
+
$ b6 start --port 5100
|
|
417
|
+
```
|
|
418
|
+
|
|
419
|
+
_See code: [src/commands/start/index.ts](https://github.com/builder6app/cli/blob/v0.5.4/src/commands/start/index.ts)_
|
|
420
|
+
<!-- commandsstop -->
|
package/bin/dev.cmd
ADDED
package/bin/dev.js
ADDED
package/bin/run.cmd
ADDED
package/bin/run.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Command } from '@oclif/core';
|
|
2
|
+
export default class Hello extends Command {
|
|
3
|
+
static args: {
|
|
4
|
+
person: import("@oclif/core/lib/interfaces").Arg<string, Record<string, unknown>>;
|
|
5
|
+
};
|
|
6
|
+
static description: string;
|
|
7
|
+
static examples: string[];
|
|
8
|
+
static flags: {
|
|
9
|
+
from: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
10
|
+
};
|
|
11
|
+
run(): Promise<void>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const core_1 = require("@oclif/core");
|
|
4
|
+
class Hello extends core_1.Command {
|
|
5
|
+
static args = {
|
|
6
|
+
person: core_1.Args.string({ description: 'Person to say hello to', required: true }),
|
|
7
|
+
};
|
|
8
|
+
static description = 'Say hello';
|
|
9
|
+
static examples = [
|
|
10
|
+
`<%= config.bin %> <%= command.id %> friend --from oclif
|
|
11
|
+
hello friend from oclif! (./src/commands/hello/index.ts)
|
|
12
|
+
`,
|
|
13
|
+
];
|
|
14
|
+
static flags = {
|
|
15
|
+
from: core_1.Flags.string({ char: 'f', description: 'Who is saying hello', required: true }),
|
|
16
|
+
};
|
|
17
|
+
async run() {
|
|
18
|
+
const { args, flags } = await this.parse(Hello);
|
|
19
|
+
this.log(`hello ${args.person} from ${flags.from}! (./src/commands/hello/index.ts)`);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.default = Hello;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const core_1 = require("@oclif/core");
|
|
4
|
+
class World extends core_1.Command {
|
|
5
|
+
static args = {};
|
|
6
|
+
static description = 'Say hello world';
|
|
7
|
+
static examples = [
|
|
8
|
+
`<%= config.bin %> <%= command.id %>
|
|
9
|
+
hello world! (./src/commands/hello/world.ts)
|
|
10
|
+
`,
|
|
11
|
+
];
|
|
12
|
+
static flags = {};
|
|
13
|
+
async run() {
|
|
14
|
+
this.log('hello world! (./src/commands/hello/world.ts)');
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.default = World;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Command } from '@oclif/core';
|
|
2
|
+
export default class Start extends Command {
|
|
3
|
+
static args: {};
|
|
4
|
+
static description: string;
|
|
5
|
+
static examples: string[];
|
|
6
|
+
static flags: {
|
|
7
|
+
port: import("@oclif/core/lib/interfaces").OptionFlag<number, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
8
|
+
userDir: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
9
|
+
config: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
10
|
+
};
|
|
11
|
+
run(): Promise<void>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const core_1 = require("@oclif/core");
|
|
4
|
+
class Start extends core_1.Command {
|
|
5
|
+
static args = {};
|
|
6
|
+
static description = 'Start b6 server.';
|
|
7
|
+
static examples = [
|
|
8
|
+
`<%= config.bin %> <%= command.id %> --port 5100`,
|
|
9
|
+
];
|
|
10
|
+
static flags = {
|
|
11
|
+
port: core_1.Flags.integer({ description: 'port to listen on', default: 5100 }),
|
|
12
|
+
userDir: core_1.Flags.string({ char: 'u', description: 'use specified user directory' }),
|
|
13
|
+
config: core_1.Flags.string({ char: 'c', default: 'b6.config.js', description: 'use specified config file' }),
|
|
14
|
+
};
|
|
15
|
+
async run() {
|
|
16
|
+
const { args, flags } = await this.parse(Start);
|
|
17
|
+
this.log(`Launching builder6 to port ${flags.port}...`);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.default = Start;
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { run } from '@oclif/core';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
{
|
|
2
|
+
"commands": {
|
|
3
|
+
"start": {
|
|
4
|
+
"aliases": [],
|
|
5
|
+
"args": {},
|
|
6
|
+
"description": "Start b6 server.",
|
|
7
|
+
"examples": [
|
|
8
|
+
"<%= config.bin %> <%= command.id %> --port 5100"
|
|
9
|
+
],
|
|
10
|
+
"flags": {
|
|
11
|
+
"port": {
|
|
12
|
+
"description": "port to listen on",
|
|
13
|
+
"name": "port",
|
|
14
|
+
"default": 5100,
|
|
15
|
+
"hasDynamicHelp": false,
|
|
16
|
+
"multiple": false,
|
|
17
|
+
"type": "option"
|
|
18
|
+
},
|
|
19
|
+
"userDir": {
|
|
20
|
+
"char": "u",
|
|
21
|
+
"description": "use specified user directory",
|
|
22
|
+
"name": "userDir",
|
|
23
|
+
"hasDynamicHelp": false,
|
|
24
|
+
"multiple": false,
|
|
25
|
+
"type": "option"
|
|
26
|
+
},
|
|
27
|
+
"config": {
|
|
28
|
+
"char": "c",
|
|
29
|
+
"description": "use specified config file",
|
|
30
|
+
"name": "config",
|
|
31
|
+
"default": "b6.config.js",
|
|
32
|
+
"hasDynamicHelp": false,
|
|
33
|
+
"multiple": false,
|
|
34
|
+
"type": "option"
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"hasDynamicHelp": false,
|
|
38
|
+
"hiddenAliases": [],
|
|
39
|
+
"id": "start",
|
|
40
|
+
"pluginAlias": "@builder6/cli",
|
|
41
|
+
"pluginName": "@builder6/cli",
|
|
42
|
+
"pluginType": "core",
|
|
43
|
+
"strict": true,
|
|
44
|
+
"enableJsonFlag": false,
|
|
45
|
+
"isESM": false,
|
|
46
|
+
"relativePath": [
|
|
47
|
+
"dist",
|
|
48
|
+
"commands",
|
|
49
|
+
"start",
|
|
50
|
+
"index.js"
|
|
51
|
+
]
|
|
52
|
+
},
|
|
53
|
+
"hello": {
|
|
54
|
+
"aliases": [],
|
|
55
|
+
"args": {
|
|
56
|
+
"person": {
|
|
57
|
+
"description": "Person to say hello to",
|
|
58
|
+
"name": "person",
|
|
59
|
+
"required": true
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
"description": "Say hello",
|
|
63
|
+
"examples": [
|
|
64
|
+
"<%= config.bin %> <%= command.id %> friend --from oclif\nhello friend from oclif! (./src/commands/hello/index.ts)\n"
|
|
65
|
+
],
|
|
66
|
+
"flags": {
|
|
67
|
+
"from": {
|
|
68
|
+
"char": "f",
|
|
69
|
+
"description": "Who is saying hello",
|
|
70
|
+
"name": "from",
|
|
71
|
+
"required": true,
|
|
72
|
+
"hasDynamicHelp": false,
|
|
73
|
+
"multiple": false,
|
|
74
|
+
"type": "option"
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
"hasDynamicHelp": false,
|
|
78
|
+
"hiddenAliases": [],
|
|
79
|
+
"id": "hello",
|
|
80
|
+
"pluginAlias": "@builder6/cli",
|
|
81
|
+
"pluginName": "@builder6/cli",
|
|
82
|
+
"pluginType": "core",
|
|
83
|
+
"strict": true,
|
|
84
|
+
"enableJsonFlag": false,
|
|
85
|
+
"isESM": false,
|
|
86
|
+
"relativePath": [
|
|
87
|
+
"dist",
|
|
88
|
+
"commands",
|
|
89
|
+
"hello",
|
|
90
|
+
"index.js"
|
|
91
|
+
]
|
|
92
|
+
},
|
|
93
|
+
"hello:world": {
|
|
94
|
+
"aliases": [],
|
|
95
|
+
"args": {},
|
|
96
|
+
"description": "Say hello world",
|
|
97
|
+
"examples": [
|
|
98
|
+
"<%= config.bin %> <%= command.id %>\nhello world! (./src/commands/hello/world.ts)\n"
|
|
99
|
+
],
|
|
100
|
+
"flags": {},
|
|
101
|
+
"hasDynamicHelp": false,
|
|
102
|
+
"hiddenAliases": [],
|
|
103
|
+
"id": "hello:world",
|
|
104
|
+
"pluginAlias": "@builder6/cli",
|
|
105
|
+
"pluginName": "@builder6/cli",
|
|
106
|
+
"pluginType": "core",
|
|
107
|
+
"strict": true,
|
|
108
|
+
"enableJsonFlag": false,
|
|
109
|
+
"isESM": false,
|
|
110
|
+
"relativePath": [
|
|
111
|
+
"dist",
|
|
112
|
+
"commands",
|
|
113
|
+
"hello",
|
|
114
|
+
"world.js"
|
|
115
|
+
]
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
"version": "0.5.4"
|
|
119
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@builder6/cli",
|
|
3
|
+
"description": "A new CLI generated with oclif",
|
|
4
|
+
"version": "0.5.4",
|
|
5
|
+
"author": "Jack Zhuang",
|
|
6
|
+
"bin": {
|
|
7
|
+
"b6": "./bin/run.js"
|
|
8
|
+
},
|
|
9
|
+
"bugs": "https://github.com/builder6app/cli/issues",
|
|
10
|
+
"dependencies": {
|
|
11
|
+
"@oclif/core": "^4",
|
|
12
|
+
"@oclif/plugin-help": "^6",
|
|
13
|
+
"@oclif/plugin-plugins": "^5",
|
|
14
|
+
"fs-extra": "^11.2.0"
|
|
15
|
+
},
|
|
16
|
+
"devDependencies": {
|
|
17
|
+
"@oclif/prettier-config": "^0.2.1",
|
|
18
|
+
"@oclif/test": "^4",
|
|
19
|
+
"@types/chai": "^4",
|
|
20
|
+
"@types/node": "^18",
|
|
21
|
+
"chai": "^4",
|
|
22
|
+
"eslint": "^8",
|
|
23
|
+
"eslint-config-oclif": "^5",
|
|
24
|
+
"eslint-config-oclif-typescript": "^3",
|
|
25
|
+
"eslint-config-prettier": "^9",
|
|
26
|
+
"oclif": "^4",
|
|
27
|
+
"shx": "^0.3.3",
|
|
28
|
+
"ts-node": "^10",
|
|
29
|
+
"typescript": "^5"
|
|
30
|
+
},
|
|
31
|
+
"engines": {
|
|
32
|
+
"node": ">=18.0.0"
|
|
33
|
+
},
|
|
34
|
+
"files": [
|
|
35
|
+
"/bin",
|
|
36
|
+
"/dist",
|
|
37
|
+
"/oclif.manifest.json"
|
|
38
|
+
],
|
|
39
|
+
"homepage": "https://github.com/builder6app/cli",
|
|
40
|
+
"keywords": [
|
|
41
|
+
"oclif"
|
|
42
|
+
],
|
|
43
|
+
"license": "MIT",
|
|
44
|
+
"main": "dist/index.js",
|
|
45
|
+
"oclif": {
|
|
46
|
+
"bin": "b6",
|
|
47
|
+
"dirname": "b6",
|
|
48
|
+
"commands": "./dist/commands",
|
|
49
|
+
"plugins": [
|
|
50
|
+
"@oclif/plugin-help",
|
|
51
|
+
"@oclif/plugin-plugins"
|
|
52
|
+
],
|
|
53
|
+
"topicSeparator": " ",
|
|
54
|
+
"topics": {
|
|
55
|
+
"hello": {
|
|
56
|
+
"description": "Say hello to the world and others"
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"repository": "builder6app/cli",
|
|
61
|
+
"scripts": {
|
|
62
|
+
"build": "shx rm -rf dist && tsc",
|
|
63
|
+
"build:watch": "shx rm -rf dist && tsc --watch",
|
|
64
|
+
"lint": "eslint . --ext .ts",
|
|
65
|
+
"postpack": "shx rm -f oclif.manifest.json",
|
|
66
|
+
"posttest": "yarn lint",
|
|
67
|
+
"prepack": "oclif manifest && oclif readme",
|
|
68
|
+
"test": "mocha --forbid-only \"test/**/*.test.ts\"",
|
|
69
|
+
"version": "oclif readme && git add README.md"
|
|
70
|
+
},
|
|
71
|
+
"publishConfig": {
|
|
72
|
+
"access": "public"
|
|
73
|
+
},
|
|
74
|
+
"types": "dist/index.d.ts",
|
|
75
|
+
"gitHead": "e8a62cf2a20c2a4be6d05b6966d5afbfd5e95949"
|
|
76
|
+
}
|