@builder6/cli 0.7.12 → 0.8.0
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 +5 -10
- package/dist/commands/start/index.d.ts +1 -5
- package/dist/commands/start/index.js +3 -5
- package/oclif.manifest.json +2 -28
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -20,7 +20,7 @@ $ npm install -g @builder6/cli
|
|
|
20
20
|
$ b6 COMMAND
|
|
21
21
|
running command...
|
|
22
22
|
$ b6 (--version)
|
|
23
|
-
@builder6/cli/0.
|
|
23
|
+
@builder6/cli/0.8.0 darwin-arm64 node-v18.20.2
|
|
24
24
|
$ b6 --help [COMMAND]
|
|
25
25
|
USAGE
|
|
26
26
|
$ b6 COMMAND
|
|
@@ -66,7 +66,7 @@ EXAMPLES
|
|
|
66
66
|
hello friend from oclif! (./src/commands/hello/index.ts)
|
|
67
67
|
```
|
|
68
68
|
|
|
69
|
-
_See code: [src/commands/hello/index.ts](https://github.com/builder6app/cli/blob/v0.
|
|
69
|
+
_See code: [src/commands/hello/index.ts](https://github.com/builder6app/cli/blob/v0.8.0/src/commands/hello/index.ts)_
|
|
70
70
|
|
|
71
71
|
## `b6 hello world`
|
|
72
72
|
|
|
@@ -84,7 +84,7 @@ EXAMPLES
|
|
|
84
84
|
hello world! (./src/commands/hello/world.ts)
|
|
85
85
|
```
|
|
86
86
|
|
|
87
|
-
_See code: [src/commands/hello/world.ts](https://github.com/builder6app/cli/blob/v0.
|
|
87
|
+
_See code: [src/commands/hello/world.ts](https://github.com/builder6app/cli/blob/v0.8.0/src/commands/hello/world.ts)_
|
|
88
88
|
|
|
89
89
|
## `b6 help [COMMAND]`
|
|
90
90
|
|
|
@@ -402,12 +402,7 @@ Start b6 server.
|
|
|
402
402
|
|
|
403
403
|
```
|
|
404
404
|
USAGE
|
|
405
|
-
$ b6 start
|
|
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
|
|
405
|
+
$ b6 start
|
|
411
406
|
|
|
412
407
|
DESCRIPTION
|
|
413
408
|
Start b6 server.
|
|
@@ -416,5 +411,5 @@ EXAMPLES
|
|
|
416
411
|
$ b6 start --port 5100
|
|
417
412
|
```
|
|
418
413
|
|
|
419
|
-
_See code: [src/commands/start/index.ts](https://github.com/builder6app/cli/blob/v0.
|
|
414
|
+
_See code: [src/commands/start/index.ts](https://github.com/builder6app/cli/blob/v0.8.0/src/commands/start/index.ts)_
|
|
420
415
|
<!-- commandsstop -->
|
|
@@ -3,10 +3,6 @@ export default class Start extends Command {
|
|
|
3
3
|
static args: {};
|
|
4
4
|
static description: string;
|
|
5
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
|
-
};
|
|
6
|
+
static flags: {};
|
|
11
7
|
run(): Promise<void>;
|
|
12
8
|
}
|
|
@@ -7,14 +7,12 @@ class Start extends core_1.Command {
|
|
|
7
7
|
static examples = [
|
|
8
8
|
`<%= config.bin %> <%= command.id %> --port 5100`,
|
|
9
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
|
-
};
|
|
10
|
+
static flags = {};
|
|
15
11
|
async run() {
|
|
16
12
|
const { args, flags } = await this.parse(Start);
|
|
13
|
+
const { bootstrap } = require('@builder6/server');
|
|
17
14
|
this.log(`Launching builder6 to port ${flags.port}...`);
|
|
15
|
+
bootstrap();
|
|
18
16
|
}
|
|
19
17
|
}
|
|
20
18
|
exports.default = Start;
|
package/oclif.manifest.json
CHANGED
|
@@ -71,33 +71,7 @@
|
|
|
71
71
|
"examples": [
|
|
72
72
|
"<%= config.bin %> <%= command.id %> --port 5100"
|
|
73
73
|
],
|
|
74
|
-
"flags": {
|
|
75
|
-
"port": {
|
|
76
|
-
"description": "port to listen on",
|
|
77
|
-
"name": "port",
|
|
78
|
-
"default": 5100,
|
|
79
|
-
"hasDynamicHelp": false,
|
|
80
|
-
"multiple": false,
|
|
81
|
-
"type": "option"
|
|
82
|
-
},
|
|
83
|
-
"userDir": {
|
|
84
|
-
"char": "u",
|
|
85
|
-
"description": "use specified user directory",
|
|
86
|
-
"name": "userDir",
|
|
87
|
-
"hasDynamicHelp": false,
|
|
88
|
-
"multiple": false,
|
|
89
|
-
"type": "option"
|
|
90
|
-
},
|
|
91
|
-
"config": {
|
|
92
|
-
"char": "c",
|
|
93
|
-
"description": "use specified config file",
|
|
94
|
-
"name": "config",
|
|
95
|
-
"default": "b6.config.js",
|
|
96
|
-
"hasDynamicHelp": false,
|
|
97
|
-
"multiple": false,
|
|
98
|
-
"type": "option"
|
|
99
|
-
}
|
|
100
|
-
},
|
|
74
|
+
"flags": {},
|
|
101
75
|
"hasDynamicHelp": false,
|
|
102
76
|
"hiddenAliases": [],
|
|
103
77
|
"id": "start",
|
|
@@ -115,5 +89,5 @@
|
|
|
115
89
|
]
|
|
116
90
|
}
|
|
117
91
|
},
|
|
118
|
-
"version": "0.
|
|
92
|
+
"version": "0.8.0"
|
|
119
93
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@builder6/cli",
|
|
3
3
|
"description": "A new CLI generated with oclif",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.8.0",
|
|
5
5
|
"author": "Jack Zhuang",
|
|
6
6
|
"bin": {
|
|
7
7
|
"b6": "./bin/run.js"
|
|
@@ -72,5 +72,5 @@
|
|
|
72
72
|
"access": "public"
|
|
73
73
|
},
|
|
74
74
|
"types": "dist/index.d.ts",
|
|
75
|
-
"gitHead": "
|
|
75
|
+
"gitHead": "22f6497633035f6a0f073dcfeb9fb35bbf75cf9a"
|
|
76
76
|
}
|