@cloudbase/cli 2.0.10 → 2.0.12-alpha.1

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.
Files changed (33) hide show
  1. package/.history/.gitignore_20220624162613 +84 -0
  2. package/.history/.gitignore_20220627114054 +86 -0
  3. package/.history/package_20220711204706.json +88 -0
  4. package/.history/package_20220711204818.json +88 -0
  5. package/.history/package_20220712151717.json +88 -0
  6. package/.history/src/commands/lowcode/app_20220624162613.ts +34 -0
  7. package/.history/src/commands/lowcode/app_20220627114205.ts +52 -0
  8. package/.history/src/index_20220624162613.ts +13 -0
  9. package/.history/src/index_20220627113609.ts +15 -0
  10. package/.history/src/index_20220627114102.ts +13 -0
  11. package/.vscode/launch.json +10 -0
  12. package/lib/commands/lowcode/app.js +30 -2
  13. package/lib/commands/run/service/create.js +4 -0
  14. package/lib/commands/run/service/deploy.js +4 -0
  15. package/lib/commands/run/service/update.js +4 -0
  16. package/lib/run/service/common.js +115 -21
  17. package/lib/types.js +6 -1
  18. package/package.json +2 -2
  19. package/src/commands/lowcode/app.ts +19 -1
  20. package/src/commands/run/service/create.ts +4 -0
  21. package/src/commands/run/service/deploy.ts +4 -0
  22. package/src/commands/run/service/list.ts +4 -4
  23. package/src/commands/run/service/update.ts +4 -0
  24. package/src/run/service/common.ts +129 -24
  25. package/src/run/service/create.ts +1 -1
  26. package/src/run/service/update.ts +2 -1
  27. package/src/types.ts +13 -0
  28. package/types/commands/lowcode/app.d.ts +10 -0
  29. package/types/run/service/common.d.ts +4 -1
  30. package/types/run/service/create.d.ts +1 -1
  31. package/types/run/service/update.d.ts +2 -1
  32. package/types/types.d.ts +11 -0
  33. package/yarn-error.log +12841 -0
@@ -0,0 +1,84 @@
1
+ # Logs
2
+ logs
3
+ *.log
4
+ npm-debug.log*
5
+ yarn-debug.log*
6
+ yarn-error.log*
7
+ package-lock.json
8
+ yarn.lock
9
+
10
+ # Runtime data
11
+ pids
12
+ *.pid
13
+ *.seed
14
+ *.pid.lock
15
+
16
+ # Directory for instrumented libs generated by jscoverage/JSCover
17
+ lib-cov
18
+
19
+ # Coverage directory used by tools like istanbul
20
+ coverage
21
+
22
+ # nyc test coverage
23
+ .nyc_output
24
+
25
+ # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
26
+ .grunt
27
+
28
+ # Bower dependency directory (https://bower.io/)
29
+ bower_components
30
+
31
+ # node-waf configuration
32
+ .lock-wscript
33
+
34
+ # Compiled binary addons (https://nodejs.org/api/addons.html)
35
+ build/Release
36
+
37
+ # Dependency directories
38
+ node_modules/
39
+ jspm_packages/
40
+
41
+ # TypeScript v1 declaration files
42
+ typings/
43
+
44
+ # Optional npm cache directory
45
+ .npm
46
+
47
+ # Optional eslint cache
48
+ .eslintcache
49
+
50
+ # Optional REPL history
51
+ .node_repl_history
52
+
53
+ # Output of 'npm pack'
54
+ *.tgz
55
+
56
+ # Yarn Integrity file
57
+ .yarn-integrity
58
+
59
+ # dotenv environment variables file
60
+ .env
61
+
62
+ # next.js build output
63
+ .next
64
+
65
+ dist
66
+
67
+ example/**/tcb.json
68
+
69
+ node_modules
70
+
71
+ .idea
72
+ .vscode/*
73
+ !.vscode/launch.json
74
+
75
+ # Test api Key
76
+ test/api-key.js
77
+
78
+ pkg/
79
+
80
+ .DS_Store
81
+
82
+ # Build files
83
+ /lib
84
+ /types
@@ -0,0 +1,86 @@
1
+ # Logs
2
+ logs
3
+ *.log
4
+ npm-debug.log*
5
+ yarn-debug.log*
6
+ yarn-error.log*
7
+ package-lock.json
8
+ yarn.lock
9
+
10
+ # Runtime data
11
+ pids
12
+ *.pid
13
+ *.seed
14
+ *.pid.lock
15
+
16
+ # Directory for instrumented libs generated by jscoverage/JSCover
17
+ lib-cov
18
+
19
+ # Coverage directory used by tools like istanbul
20
+ coverage
21
+
22
+ # nyc test coverage
23
+ .nyc_output
24
+
25
+ # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
26
+ .grunt
27
+
28
+ # Bower dependency directory (https://bower.io/)
29
+ bower_components
30
+
31
+ # node-waf configuration
32
+ .lock-wscript
33
+
34
+ # Compiled binary addons (https://nodejs.org/api/addons.html)
35
+ build/Release
36
+
37
+ # Dependency directories
38
+ node_modules/
39
+ jspm_packages/
40
+
41
+ # TypeScript v1 declaration files
42
+ typings/
43
+
44
+ # Optional npm cache directory
45
+ .npm
46
+
47
+ # Optional eslint cache
48
+ .eslintcache
49
+
50
+ # Optional REPL history
51
+ .node_repl_history
52
+
53
+ # Output of 'npm pack'
54
+ *.tgz
55
+
56
+ # Yarn Integrity file
57
+ .yarn-integrity
58
+
59
+ # dotenv environment variables file
60
+ .env
61
+
62
+ # next.js build output
63
+ .next
64
+
65
+ dist
66
+
67
+ example/**/tcb.json
68
+
69
+ node_modules
70
+
71
+ .idea
72
+ .vscode/*
73
+ !.vscode/launch.json
74
+
75
+ # Test api Key
76
+ test/api-key.js
77
+
78
+ pkg/
79
+
80
+ .DS_Store
81
+
82
+ # Build files
83
+ /lib
84
+ /types
85
+
86
+ .history
@@ -0,0 +1,88 @@
1
+ {
2
+ "name": "@cloudbase/cli",
3
+ "version": "2.0.11",
4
+ "description": "cli tool for cloudbase",
5
+ "main": "lib/index.js",
6
+ "scripts": {
7
+ "build": "rimraf lib types && tsc",
8
+ "watch": "rimraf lib types && tsc -w",
9
+ "dev": "rimraf lib types && tsc -w",
10
+ "eslint": "eslint \"./**/*.ts\"",
11
+ "test": "jest --runInBand --forceExit --detectOpenHandles --coverage --verbose --testTimeout=10000",
12
+ "tsc": "tsc",
13
+ "pkg": "pkg ./bin/cloudbase.js --out-path ./pkg",
14
+ "postinstall": "node ./post-install.js || exit 0"
15
+ },
16
+ "repository": {
17
+ "type": "git",
18
+ "url": "https://github.com/TencentCloudBase/cloud-base-cli.git"
19
+ },
20
+ "bin": {
21
+ "tcb": "bin/tcb.js",
22
+ "cloudbase": "bin/cloudbase.js"
23
+ },
24
+ "husky": {
25
+ "hooks": {
26
+ "pre-commit": "npm run build && git add ."
27
+ }
28
+ },
29
+ "author": "cwuyiqing@gmail.com",
30
+ "license": "ISC",
31
+ "dependencies": {
32
+ "@cloudbase/cloud-api": "^0.5.5",
33
+ "@cloudbase/framework-core": "^1.6.1",
34
+ "@cloudbase/lowcode-cli": "^0.14.3",
35
+ "@cloudbase/manager-node": "4.0.1",
36
+ "@cloudbase/toolbox": "^0.7.3",
37
+ "@sentry/node": "^5.10.2",
38
+ "address": "^1.1.2",
39
+ "chalk": "^2.4.2",
40
+ "cli-table3": "^0.5.1",
41
+ "commander": "7",
42
+ "del": "^5.1.0",
43
+ "didyoumean": "^1.2.2",
44
+ "enquirer": "^2.3.6",
45
+ "execa": "^4.0.3",
46
+ "fs-extra": "^8.1.0",
47
+ "https-proxy-agent": "^5.0.1",
48
+ "inquirer": "^6.5.0",
49
+ "lodash": "^4.17.21",
50
+ "log-symbols": "^3.0.0",
51
+ "lowdb": "^1.0.0",
52
+ "make-dir": "^3.0.0",
53
+ "node-fetch": "^2.6.0",
54
+ "open": "^7.0.0",
55
+ "ora": "^4.0.2",
56
+ "portfinder": "^1.0.28",
57
+ "progress": "^2.0.3",
58
+ "query-string": "^6.8.1",
59
+ "reflect-metadata": "^0.1.13",
60
+ "semver": "^7.3.7",
61
+ "tar-fs": "^2.0.1",
62
+ "terminal-link": "^2.1.1",
63
+ "unzipper": "^0.10.10",
64
+ "update-notifier": "^4.0.0",
65
+ "xdg-basedir": "^4.0.0",
66
+ "yargs": "^16.2.0",
67
+ "yargs-parser": "^21.0.1"
68
+ },
69
+ "devDependencies": {
70
+ "@types/jest": "^27",
71
+ "@types/koa__router": "^8.0.11",
72
+ "@types/lodash": "^4.14.182",
73
+ "@types/node": "^12.12.38",
74
+ "@types/node-fetch": "^2.5.4",
75
+ "@types/react": "^17.0.37",
76
+ "@types/semver": "^7.3.9",
77
+ "@types/webpack-dev-server": "^3.11.1",
78
+ "@typescript-eslint/eslint-plugin": "^4.8.1",
79
+ "@typescript-eslint/parser": "^4.8.1",
80
+ "eslint": "^7.14.0",
81
+ "eslint-config-alloy": "^3.8.2",
82
+ "husky": "^3.0.9",
83
+ "jest": "^27",
84
+ "rimraf": "^3.0.2",
85
+ "ts-jest": "^27",
86
+ "typescript": "^4.7.2"
87
+ }
88
+ }
@@ -0,0 +1,88 @@
1
+ {
2
+ "name": "@cloudbase/cli",
3
+ "version": "2.0.11",
4
+ "description": "cli tool for cloudbase",
5
+ "main": "lib/index.js",
6
+ "scripts": {
7
+ "build": "rimraf lib types && tsc",
8
+ "watch": "rimraf lib types && tsc -w",
9
+ "dev": "rimraf lib types && tsc -w",
10
+ "eslint": "eslint \"./**/*.ts\"",
11
+ "test": "jest --runInBand --forceExit --detectOpenHandles --coverage --verbose --testTimeout=10000",
12
+ "tsc": "tsc",
13
+ "pkg": "pkg ./bin/cloudbase.js --out-path ./pkg",
14
+ "postinstall": "node ./post-install.js || exit 0"
15
+ },
16
+ "repository": {
17
+ "type": "git",
18
+ "url": "https://github.com/TencentCloudBase/cloud-base-cli.git"
19
+ },
20
+ "bin": {
21
+ "tcb": "bin/tcb.js",
22
+ "cloudbase": "bin/cloudbase.js"
23
+ },
24
+ "husky": {
25
+ "hooks": {
26
+ "pre-commit": "npm run build && git add ."
27
+ }
28
+ },
29
+ "author": "cwuyiqing@gmail.com",
30
+ "license": "ISC",
31
+ "dependencies": {
32
+ "@cloudbase/cloud-api": "^0.5.5",
33
+ "@cloudbase/framework-core": "^1.6.1",
34
+ "@cloudbase/lowcode-cli": "0.14.5-alpha.0",
35
+ "@cloudbase/manager-node": "4.0.1",
36
+ "@cloudbase/toolbox": "^0.7.3",
37
+ "@sentry/node": "^5.10.2",
38
+ "address": "^1.1.2",
39
+ "chalk": "^2.4.2",
40
+ "cli-table3": "^0.5.1",
41
+ "commander": "7",
42
+ "del": "^5.1.0",
43
+ "didyoumean": "^1.2.2",
44
+ "enquirer": "^2.3.6",
45
+ "execa": "^4.0.3",
46
+ "fs-extra": "^8.1.0",
47
+ "https-proxy-agent": "^5.0.1",
48
+ "inquirer": "^6.5.0",
49
+ "lodash": "^4.17.21",
50
+ "log-symbols": "^3.0.0",
51
+ "lowdb": "^1.0.0",
52
+ "make-dir": "^3.0.0",
53
+ "node-fetch": "^2.6.0",
54
+ "open": "^7.0.0",
55
+ "ora": "^4.0.2",
56
+ "portfinder": "^1.0.28",
57
+ "progress": "^2.0.3",
58
+ "query-string": "^6.8.1",
59
+ "reflect-metadata": "^0.1.13",
60
+ "semver": "^7.3.7",
61
+ "tar-fs": "^2.0.1",
62
+ "terminal-link": "^2.1.1",
63
+ "unzipper": "^0.10.10",
64
+ "update-notifier": "^4.0.0",
65
+ "xdg-basedir": "^4.0.0",
66
+ "yargs": "^16.2.0",
67
+ "yargs-parser": "^21.0.1"
68
+ },
69
+ "devDependencies": {
70
+ "@types/jest": "^27",
71
+ "@types/koa__router": "^8.0.11",
72
+ "@types/lodash": "^4.14.182",
73
+ "@types/node": "^12.12.38",
74
+ "@types/node-fetch": "^2.5.4",
75
+ "@types/react": "^17.0.37",
76
+ "@types/semver": "^7.3.9",
77
+ "@types/webpack-dev-server": "^3.11.1",
78
+ "@typescript-eslint/eslint-plugin": "^4.8.1",
79
+ "@typescript-eslint/parser": "^4.8.1",
80
+ "eslint": "^7.14.0",
81
+ "eslint-config-alloy": "^3.8.2",
82
+ "husky": "^3.0.9",
83
+ "jest": "^27",
84
+ "rimraf": "^3.0.2",
85
+ "ts-jest": "^27",
86
+ "typescript": "^4.7.2"
87
+ }
88
+ }
@@ -0,0 +1,88 @@
1
+ {
2
+ "name": "@cloudbase/cli",
3
+ "version": "2.0.12-alpha.0",
4
+ "description": "cli tool for cloudbase",
5
+ "main": "lib/index.js",
6
+ "scripts": {
7
+ "build": "rimraf lib types && tsc",
8
+ "watch": "rimraf lib types && tsc -w",
9
+ "dev": "rimraf lib types && tsc -w",
10
+ "eslint": "eslint \"./**/*.ts\"",
11
+ "test": "jest --runInBand --forceExit --detectOpenHandles --coverage --verbose --testTimeout=10000",
12
+ "tsc": "tsc",
13
+ "pkg": "pkg ./bin/cloudbase.js --out-path ./pkg",
14
+ "postinstall": "node ./post-install.js || exit 0"
15
+ },
16
+ "repository": {
17
+ "type": "git",
18
+ "url": "https://github.com/TencentCloudBase/cloud-base-cli.git"
19
+ },
20
+ "bin": {
21
+ "tcb": "bin/tcb.js",
22
+ "cloudbase": "bin/cloudbase.js"
23
+ },
24
+ "husky": {
25
+ "hooks": {
26
+ "pre-commit": "npm run build && git add ."
27
+ }
28
+ },
29
+ "author": "cwuyiqing@gmail.com",
30
+ "license": "ISC",
31
+ "dependencies": {
32
+ "@cloudbase/cloud-api": "^0.5.5",
33
+ "@cloudbase/framework-core": "^1.6.1",
34
+ "@cloudbase/lowcode-cli": "0.14.5-alpha.1",
35
+ "@cloudbase/manager-node": "4.0.1",
36
+ "@cloudbase/toolbox": "^0.7.3",
37
+ "@sentry/node": "^5.10.2",
38
+ "address": "^1.1.2",
39
+ "chalk": "^2.4.2",
40
+ "cli-table3": "^0.5.1",
41
+ "commander": "7",
42
+ "del": "^5.1.0",
43
+ "didyoumean": "^1.2.2",
44
+ "enquirer": "^2.3.6",
45
+ "execa": "^4.0.3",
46
+ "fs-extra": "^8.1.0",
47
+ "https-proxy-agent": "^5.0.1",
48
+ "inquirer": "^6.5.0",
49
+ "lodash": "^4.17.21",
50
+ "log-symbols": "^3.0.0",
51
+ "lowdb": "^1.0.0",
52
+ "make-dir": "^3.0.0",
53
+ "node-fetch": "^2.6.0",
54
+ "open": "^7.0.0",
55
+ "ora": "^4.0.2",
56
+ "portfinder": "^1.0.28",
57
+ "progress": "^2.0.3",
58
+ "query-string": "^6.8.1",
59
+ "reflect-metadata": "^0.1.13",
60
+ "semver": "^7.3.7",
61
+ "tar-fs": "^2.0.1",
62
+ "terminal-link": "^2.1.1",
63
+ "unzipper": "^0.10.10",
64
+ "update-notifier": "^4.0.0",
65
+ "xdg-basedir": "^4.0.0",
66
+ "yargs": "^16.2.0",
67
+ "yargs-parser": "^21.0.1"
68
+ },
69
+ "devDependencies": {
70
+ "@types/jest": "^27",
71
+ "@types/koa__router": "^8.0.11",
72
+ "@types/lodash": "^4.14.182",
73
+ "@types/node": "^12.12.38",
74
+ "@types/node-fetch": "^2.5.4",
75
+ "@types/react": "^17.0.37",
76
+ "@types/semver": "^7.3.9",
77
+ "@types/webpack-dev-server": "^3.11.1",
78
+ "@typescript-eslint/eslint-plugin": "^4.8.1",
79
+ "@typescript-eslint/parser": "^4.8.1",
80
+ "eslint": "^7.14.0",
81
+ "eslint-config-alloy": "^3.8.2",
82
+ "husky": "^3.0.9",
83
+ "jest": "^27",
84
+ "rimraf": "^3.0.2",
85
+ "ts-jest": "^27",
86
+ "typescript": "^4.7.2"
87
+ }
88
+ }
@@ -0,0 +1,34 @@
1
+ import _ from 'lodash'
2
+ import { Command, ICommand } from '../common'
3
+ import { watchApp } from '@cloudbase/lowcode-cli'
4
+ import { InjectParams, Log, Logger, CmdContext, ArgsOptions } from '../../decorators'
5
+
6
+ @ICommand()
7
+ export class LowCodeWatch extends Command {
8
+ get options() {
9
+ return {
10
+ cmd: 'lowcode',
11
+ childCmd: 'watch',
12
+ options: [
13
+ {
14
+ flags: '--verbose',
15
+ desc: '是否打印详细日志'
16
+ },
17
+ {
18
+ flags: '--wx-devtool-path <wxDevtoolPath>',
19
+ desc: '微信开发者工具的安装路径'
20
+ }
21
+ ],
22
+ desc: '开启云开发低码的本地构建模式',
23
+ requiredEnvId: false
24
+ }
25
+ }
26
+
27
+ @InjectParams()
28
+ async execute(@CmdContext() ctx, @ArgsOptions() options) {
29
+ await watchApp({
30
+ watchPort: 8288,
31
+ wxDevtoolPath: options?.wxDevtoolPath,
32
+ })
33
+ }
34
+ }
@@ -0,0 +1,52 @@
1
+ import _ from 'lodash'
2
+ import { Command, ICommand } from '../common'
3
+ import { watchApp } from '@cloudbase/lowcode-cli'
4
+ import { InjectParams, Log, Logger, CmdContext, ArgsOptions } from '../../decorators'
5
+
6
+ @ICommand()
7
+ export class LowCodeWatch extends Command {
8
+ get options() {
9
+ return {
10
+ cmd: 'lowcode',
11
+ childCmd: 'watch',
12
+ options: [
13
+ {
14
+ flags: '--verbose',
15
+ desc: '是否打印详细日志'
16
+ },
17
+ {
18
+ flags: '--wx-devtool-path <wxDevtoolPath>',
19
+ desc: '微信开发者工具的安装路径'
20
+ }
21
+ ],
22
+ desc: '开启云开发低码的本地构建模式',
23
+ requiredEnvId: false
24
+ }
25
+ }
26
+
27
+ @InjectParams()
28
+ async execute(@CmdContext() ctx, @ArgsOptions() options) {
29
+ await watchApp({
30
+ watchPort: 8288,
31
+ wxDevtoolPath: options?.wxDevtoolPath
32
+ })
33
+ }
34
+ }
35
+
36
+ @ICommand()
37
+ export class DanielWatch extends Command {
38
+ get options() {
39
+ return {
40
+ cmd: 'lowcode',
41
+ childCmd: 'watch-ws',
42
+ options: [],
43
+ desc: '开启云开发低码的本地开发模式',
44
+ requiredEnvId: false
45
+ }
46
+ }
47
+
48
+ @InjectParams()
49
+ async execute(@CmdContext() ctx, @ArgsOptions() options) {
50
+ console.log('>>> 启动啦')
51
+ }
52
+ }
@@ -0,0 +1,13 @@
1
+ import 'reflect-metadata'
2
+ import { registerCommands } from './commands/common'
3
+ import './commands'
4
+
5
+ export { smartDeploy } from './commands'
6
+
7
+ registerCommands()
8
+
9
+ // HACK: 部分依赖使用了 globalThis,会在 Node12 以下的版本报错
10
+ if (typeof globalThis === undefined) {
11
+ // eslint-disable-next-line no-undef
12
+ ;(globalThis as any) = global
13
+ }
@@ -0,0 +1,15 @@
1
+ import 'reflect-metadata'
2
+ import { registerCommands } from './commands/common'
3
+ import './commands'
4
+
5
+ export { smartDeploy } from './commands'
6
+
7
+ registerCommands()
8
+
9
+ // HACK: 部分依赖使用了 globalThis,会在 Node12 以下的版本报错
10
+ if (typeof globalThis === undefined) {
11
+ // eslint-disable-next-line no-undef
12
+ ;(globalThis as any) = global
13
+ }
14
+
15
+ console.log("daniel tcb")
@@ -0,0 +1,13 @@
1
+ import 'reflect-metadata'
2
+ import { registerCommands } from './commands/common'
3
+ import './commands'
4
+
5
+ export { smartDeploy } from './commands'
6
+
7
+ registerCommands()
8
+
9
+ // HACK: 部分依赖使用了 globalThis,会在 Node12 以下的版本报错
10
+ if (typeof globalThis === undefined) {
11
+ // eslint-disable-next-line no-undef
12
+ ;(globalThis as any) = global
13
+ }
@@ -4,6 +4,16 @@
4
4
  // 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
5
5
  "version": "0.2.0",
6
6
  "configurations": [
7
+ {
8
+ "name": "Launch Program",
9
+ "program": "${workspaceFolder}/bin/tcb.js",
10
+ "request": "launch",
11
+ "skipFiles": [
12
+ "<node_internals>/**"
13
+ ],
14
+ "args": ["lowcode", "watch"],
15
+ "type": "node"
16
+ },
7
17
  {
8
18
  "type": "node",
9
19
  "request": "launch",
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  Object.defineProperty(exports, "__esModule", { value: true });
24
- exports.LowCodeWatch = void 0;
24
+ exports.DanielWatch = exports.LowCodeWatch = void 0;
25
25
  const common_1 = require("../common");
26
26
  const lowcode_cli_1 = require("@cloudbase/lowcode-cli");
27
27
  const decorators_1 = require("../../decorators");
@@ -48,7 +48,7 @@ let LowCodeWatch = class LowCodeWatch extends common_1.Command {
48
48
  return __awaiter(this, void 0, void 0, function* () {
49
49
  yield (0, lowcode_cli_1.watchApp)({
50
50
  watchPort: 8288,
51
- wxDevtoolPath: options === null || options === void 0 ? void 0 : options.wxDevtoolPath,
51
+ wxDevtoolPath: options === null || options === void 0 ? void 0 : options.wxDevtoolPath
52
52
  });
53
53
  });
54
54
  }
@@ -65,3 +65,31 @@ LowCodeWatch = __decorate([
65
65
  (0, common_1.ICommand)()
66
66
  ], LowCodeWatch);
67
67
  exports.LowCodeWatch = LowCodeWatch;
68
+ let DanielWatch = class DanielWatch extends common_1.Command {
69
+ get options() {
70
+ return {
71
+ cmd: 'lowcode',
72
+ childCmd: 'watch-ws',
73
+ options: [],
74
+ desc: '开启云开发低码的本地开发模式',
75
+ requiredEnvId: false
76
+ };
77
+ }
78
+ execute(ctx, options) {
79
+ return __awaiter(this, void 0, void 0, function* () {
80
+ console.log('>>> 启动啦');
81
+ });
82
+ }
83
+ };
84
+ __decorate([
85
+ (0, decorators_1.InjectParams)(),
86
+ __param(0, (0, decorators_1.CmdContext)()),
87
+ __param(1, (0, decorators_1.ArgsOptions)()),
88
+ __metadata("design:type", Function),
89
+ __metadata("design:paramtypes", [Object, Object]),
90
+ __metadata("design:returntype", Promise)
91
+ ], DanielWatch.prototype, "execute", null);
92
+ DanielWatch = __decorate([
93
+ (0, common_1.ICommand)()
94
+ ], DanielWatch);
95
+ exports.DanielWatch = DanielWatch;
@@ -97,6 +97,10 @@ let CreateServiceTcbr = class CreateServiceTcbr extends common_1.Command {
97
97
  flags: '--dockerfile <dockerfile>',
98
98
  desc: 'Dockerfile文件名,默认为 Dockerfile'
99
99
  },
100
+ {
101
+ flags: '--custom_image <custom_image>',
102
+ desc: 'TCR 仓库镜像 URL'
103
+ },
100
104
  {
101
105
  flags: '--image <image>',
102
106
  desc: '镜像标签或ID'
@@ -96,6 +96,10 @@ let DeployServiceTcbr = class DeployServiceTcbr extends common_1.Command {
96
96
  flags: '--dockerfile <dockerfile>',
97
97
  desc: 'Dockerfile文件名,默认为 Dockerfile'
98
98
  },
99
+ {
100
+ flags: '--custom_image <custom_image>',
101
+ desc: 'TCR 仓库镜像 URL'
102
+ },
99
103
  {
100
104
  flags: '--library_image <library_image>',
101
105
  desc: '线上镜像仓库的 tag,仅在服务已存在时可用'
@@ -92,6 +92,10 @@ let UpdateServiceTcbr = class UpdateServiceTcbr extends common_1.Command {
92
92
  flags: '--dockerfile <dockerfile>',
93
93
  desc: 'Dockerfile文件名,默认为 Dockerfile'
94
94
  },
95
+ {
96
+ flags: '--custom_image <custom_image>',
97
+ desc: 'TCR 仓库镜像 URL'
98
+ },
95
99
  {
96
100
  flags: '--library_image <library_image>',
97
101
  desc: '线上镜像仓库的 tag'