@builder6/cli 0.7.11 → 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 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.7.11 darwin-arm64 node-v18.20.2
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.7.11/src/commands/hello/index.ts)_
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.7.11/src/commands/hello/world.ts)_
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 [--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
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.7.11/src/commands/start/index.ts)_
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;
@@ -1,55 +1,5 @@
1
1
  {
2
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
3
  "hello": {
54
4
  "aliases": [],
55
5
  "args": {
@@ -113,7 +63,31 @@
113
63
  "hello",
114
64
  "world.js"
115
65
  ]
66
+ },
67
+ "start": {
68
+ "aliases": [],
69
+ "args": {},
70
+ "description": "Start b6 server.",
71
+ "examples": [
72
+ "<%= config.bin %> <%= command.id %> --port 5100"
73
+ ],
74
+ "flags": {},
75
+ "hasDynamicHelp": false,
76
+ "hiddenAliases": [],
77
+ "id": "start",
78
+ "pluginAlias": "@builder6/cli",
79
+ "pluginName": "@builder6/cli",
80
+ "pluginType": "core",
81
+ "strict": true,
82
+ "enableJsonFlag": false,
83
+ "isESM": false,
84
+ "relativePath": [
85
+ "dist",
86
+ "commands",
87
+ "start",
88
+ "index.js"
89
+ ]
116
90
  }
117
91
  },
118
- "version": "0.7.11"
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.7.11",
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": "3dabc85d340b91687f80ac13ea0469a3bee78f8a"
75
+ "gitHead": "22f6497633035f6a0f073dcfeb9fb35bbf75cf9a"
76
76
  }