cloudcc-cli 1.6.5 → 1.6.6
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 +8 -0
- package/bin/cc.js +15 -15
- package/core/core/CCObject.java +48 -0
- package/core/core/CCService.java +806 -0
- package/core/core/CCTrigger.java +23 -0
- package/core/core/CCTriggerHandler.java +15 -0
- package/core/core/DevLogger.java +39 -0
- package/core/core/OperatationEnum.java +5 -0
- package/core/core/PeakInterf.java +6 -0
- package/core/core/PeakSvc.java +8 -0
- package/core/core/ServiceResult.java +35 -0
- package/core/core/TriggerInvoker.java +83 -0
- package/core/core/TriggerMethod.java +9 -0
- package/core/core/TriggerTimeEnum.java +5 -0
- package/core/core/UserInfo.java +45 -0
- package/core.zip +0 -0
- package/package.json +1 -1
- package/src/classes/create.js +5 -8
- package/src/classes/publish.js +8 -12
- package/src/config/get.js +1 -3
- package/src/config/use.js +1 -3
- package/src/object/get.js +4 -6
- package/src/plugin/create.js +10 -20
- package/src/plugin/create1.js +8 -16
- package/src/plugin/publish.js +44 -77
- package/src/plugin/publish1.js +42 -72
- package/src/project/create.js +12 -14
- package/src/project/create1.js +15 -17
- package/src/recordType/get.js +3 -6
- package/src/script/create.js +3 -6
- package/src/script/publish.js +10 -17
- package/src/timer/create.js +3 -6
- package/src/timer/publish.js +8 -12
- package/src/token/get.js +1 -3
- package/src/triggers/create.js +8 -16
- package/src/triggers/index.js +1 -1
- package/src/triggers/publish.js +10 -13
- package/template/index.js +10 -10
- package/template/indexvue +3 -3
- package/tool/branch/index.js +25 -0
- package/tool/checkLange/checkLang.js +68 -0
- package/tool/checkLange/clearLang.js +85 -0
- package/tool/checkLange/result.txt +0 -0
- package/utils/checkVersion.js +19 -30
- package/utils/http.js +5 -5
- package/utils/utils.js +19 -21
package/README.md
CHANGED
package/bin/cc.js
CHANGED
|
@@ -2,49 +2,49 @@
|
|
|
2
2
|
const chalk = require("chalk")
|
|
3
3
|
|
|
4
4
|
let argvs = process.argv.splice(2);
|
|
5
|
-
|
|
5
|
+
|
|
6
6
|
let action = argvs[0]
|
|
7
7
|
if (!action) {
|
|
8
8
|
console.log()
|
|
9
|
-
console.log(chalk.yellow("
|
|
9
|
+
console.log(chalk.yellow("Please see the help documentation"));
|
|
10
10
|
console.log()
|
|
11
11
|
return;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
|
|
15
15
|
let type = argvs[1]
|
|
16
16
|
if (!type) {
|
|
17
17
|
console.log()
|
|
18
|
-
console.log(chalk.yellow("
|
|
18
|
+
console.log(chalk.yellow("Please see the help documentation"));
|
|
19
19
|
console.log()
|
|
20
20
|
return;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
const cc = {}
|
|
24
|
-
|
|
24
|
+
|
|
25
25
|
cc.project = require("../src/project/index")
|
|
26
|
-
|
|
26
|
+
|
|
27
27
|
cc.plugin = require("../src/plugin/index")
|
|
28
|
-
|
|
28
|
+
|
|
29
29
|
cc.classes = require("../src/classes/index")
|
|
30
|
-
|
|
30
|
+
|
|
31
31
|
cc.timer = require("../src/timer/index")
|
|
32
|
-
|
|
32
|
+
|
|
33
33
|
cc.triggers = require("../src/triggers/index")
|
|
34
|
-
|
|
34
|
+
|
|
35
35
|
cc.script = require("../src/script/index")
|
|
36
|
-
|
|
36
|
+
|
|
37
37
|
cc.token = require("../src/token/index")
|
|
38
|
-
|
|
38
|
+
|
|
39
39
|
cc.object = require("../src/object/index")
|
|
40
|
-
|
|
40
|
+
|
|
41
41
|
cc.recordType = require("../src/recordType/index")
|
|
42
|
-
|
|
42
|
+
|
|
43
43
|
cc.config = require("../src/config/index")
|
|
44
44
|
try {
|
|
45
45
|
cc[argvs[1]](argvs[0], argvs);
|
|
46
46
|
} catch (e) {
|
|
47
47
|
console.log()
|
|
48
|
-
console.log(chalk.yellow("
|
|
48
|
+
console.log(chalk.yellow("Please see the help documentation"), e);
|
|
49
49
|
console.log()
|
|
50
50
|
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
package com.cloudcc.core;
|
|
2
|
+
|
|
3
|
+
import java.util.HashMap;
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @author T.han
|
|
7
|
+
* @date 2023/8/17 16:18
|
|
8
|
+
* @project CloudccNewPro
|
|
9
|
+
* @Description //TODO
|
|
10
|
+
*/
|
|
11
|
+
public class CCObject extends HashMap<String,Object> {
|
|
12
|
+
public static final String OBJECT_API = "CCObjectAPI";
|
|
13
|
+
public static final String IS_SHARED = "isShared";
|
|
14
|
+
|
|
15
|
+
public CCObject() {
|
|
16
|
+
/* compiled code */
|
|
17
|
+
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
public CCObject(String ccobj) {
|
|
21
|
+
/* compiled code */
|
|
22
|
+
put("CCObjectAPI", ccobj);
|
|
23
|
+
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
public CCObject(String ccobj, String isShared) {
|
|
27
|
+
/* compiled code */
|
|
28
|
+
put("CCObjectAPI", ccobj);
|
|
29
|
+
put("isShared", "isShared");
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
public void putSumValue(String sumValueKey, String value) {
|
|
33
|
+
/* compiled code */
|
|
34
|
+
put("sum" + sumValueKey, value);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
public Object getSumValue(String sumValueKey) {
|
|
38
|
+
/* compiled code */
|
|
39
|
+
return get("sum" + sumValueKey);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
public String getObjectApiName() {
|
|
43
|
+
/* compiled code */
|
|
44
|
+
return (String)get("CCObjectAPI");
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
}
|