cloudcc-cli 2.1.6 → 2.1.8

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
@@ -1,3 +1,18 @@
1
+ # ReleaseV2.1.8
2
+ #### Release Date: 2025-7-30
3
+ #### Release Scope: Full
4
+ #### Release Content
5
+ * Optimization
6
+ * pull timer/classes/triggers use name。
7
+
8
+ # ReleaseV2.1.7
9
+ #### Release Date: 2025-7-18
10
+ #### Release Scope: Full
11
+ #### Release Content
12
+ * Optimization
13
+ * timer pull change name。
14
+ * classes pull change name。
15
+
1
16
  # ReleaseV2.1.6
2
17
  #### Release Date: 2025-7-18
3
18
  #### Release Scope: Full
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cloudcc-cli",
3
- "version": "2.1.6",
3
+ "version": "2.1.8",
4
4
  "description": "cloudcc-cli",
5
5
  "keywords": [
6
6
  "cloudcc",
@@ -14,8 +14,8 @@ async function pullList(id, url) {
14
14
  try {
15
15
  const data = res.data;
16
16
  const trigger = data.trigger;
17
- const className = trigger.apiname;
18
- const folderPath = path.join(url, `classes/${className}`);
17
+ const className = trigger.name;
18
+ const folderPath = path.join(url, `classes/${trigger.name}`);
19
19
  // 3. Check and create folder
20
20
  if (!fs.existsSync(folderPath)) {
21
21
  fs.mkdirSync(folderPath, { recursive: true });
@@ -26,7 +26,7 @@ async function pullList(id, url) {
26
26
  fs.writeFileSync(javaFile, javaContent, "utf8");
27
27
  // 5. Create config.json
28
28
  const configJson = {
29
- name: className,
29
+ name: trigger.name,
30
30
  version: "2",
31
31
  id: trigger.id || id
32
32
  };
@@ -15,11 +15,8 @@ async function pullList(arg1, arg2) {
15
15
  const trigger = res.data.trigger;
16
16
  if (!trigger) throw new Error('No trigger detail found');
17
17
  // 判断trigger.name是否全为英文
18
- let timerName = trigger.apiname;
19
- if (/^[A-Za-z0-9_]+$/.test(trigger.name)) {
20
- timerName = trigger.name;
21
- }
22
- const folderPath = path.join(arg2, `schedule/${timerName}`);
18
+ let timerName = trigger.name;
19
+ const folderPath = path.join(arg2, `schedule/${trigger.name}`);
23
20
  if (!fs.existsSync(folderPath)) {
24
21
  fs.mkdirSync(folderPath, { recursive: true });
25
22
  }
@@ -15,7 +15,7 @@ async function pullList(args) {
15
15
  const data = res.data;
16
16
  const targetObj = data.targetObj;
17
17
  const trigger = data.trigger;
18
- const triggerName = trigger.apiname;
18
+ const triggerName = trigger.name;
19
19
  const folderPath = path.join(args[3], `triggers/${targetObj.schemetableName.toLowerCase()}/${trigger.name}`);
20
20
  if (!fs.existsSync(folderPath)) {
21
21
  fs.mkdirSync(folderPath, { recursive: true });
@@ -1,22 +0,0 @@
1
- package classes.TestClass1;
2
-
3
- import com.cloudcc.core.*;
4
- // @SOURCE_CONTENT_START
5
- public class TestClass1{
6
- private UserInfo userInfo;
7
- private CCService cs;
8
-
9
- public TestClass1(UserInfo userInfo){
10
- this(userInfo,new CCService(userInfo));
11
- }
12
- public TestClass1(UserInfo userInfo,CCService cs){
13
- this.userInfo = userInfo;
14
- this.cs=cs;
15
- }
16
-
17
- public String getName(String str){
18
- str = "TestClass1";
19
- return str;
20
- }
21
- }
22
- // @SOURCE_CONTENT_END
@@ -1 +0,0 @@
1
- {"name":"TestClass1","version":"2","description":"Test class 1 for batch publishing"}
@@ -1,22 +0,0 @@
1
- package classes.TestClass2;
2
-
3
- import com.cloudcc.core.*;
4
- // @SOURCE_CONTENT_START
5
- public class TestClass2{
6
- private UserInfo userInfo;
7
- private CCService cs;
8
-
9
- public TestClass2(UserInfo userInfo){
10
- this(userInfo,new CCService(userInfo));
11
- }
12
- public TestClass2(UserInfo userInfo,CCService cs){
13
- this.userInfo = userInfo;
14
- this.cs=cs;
15
- }
16
-
17
- public String getName(String str){
18
- str = "TestClass2";
19
- return str;
20
- }
21
- }
22
- // @SOURCE_CONTENT_END
@@ -1 +0,0 @@
1
- {"name":"TestClass2","version":"2","description":"Test class 2 for batch publishing"}