cloudcc-cli 1.9.8 → 1.9.9

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,10 @@
1
+ # ReleaseV1.9.9
2
+ #### Release Date: 2025-3-12
3
+ #### Release Scope: Full
4
+ #### Release Content
5
+ * Optimization
6
+ * update template code.
7
+
1
8
  # ReleaseV1.9.8
2
9
  #### Release Date: 2025-3-12
3
10
  #### Release Scope: Full
@@ -0,0 +1,5 @@
1
+ package com.cloudcc.core;
2
+
3
+ public class CCSchedule {
4
+
5
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cloudcc-cli",
3
- "version": "1.9.8",
3
+ "version": "1.9.9",
4
4
  "description": "cloudcc-cli",
5
5
  "keywords": [
6
6
  "cloudcc",
@@ -11,11 +11,16 @@ async function create(name) {
11
11
  try {
12
12
  fs.mkdirSync(timerPath, { recursive: true })
13
13
 
14
- const javaTmp = `public class ${name} extends CCSchedule {
15
- public void demo(){
16
- // @SOURCE_CONTENT_START
17
- System.out.print("hello World");
18
- // @SOURCE_CONTENT_END
14
+ const javaTmp =
15
+ `package schedule.${name};
16
+
17
+ import com.cloudcc.core.*;
18
+
19
+ public class ${name} extends CCSchedule {
20
+ public ${name}() {
21
+ // @SOURCE_CONTENT_START
22
+ System.out.print("hello World");
23
+ // @SOURCE_CONTENT_END
19
24
  }
20
25
  }`
21
26
  fs.writeFileSync(path.join(timerPath, name + ".java"), javaTmp)
@@ -16,11 +16,16 @@ async function create(argvs) {
16
16
  fs.mkdirSync(objectFolderPath, { recursive: true });
17
17
  fs.mkdirSync(triggersPath, { recursive: true });
18
18
 
19
- const javaTmp = `public class ${body.name} extends CCTrigger {
20
- public void ${body.name}(){
21
- // @SOURCE_CONTENT_START
22
- System.out.print("hello World");
23
- // @SOURCE_CONTENT_END
19
+ const javaTmp =
20
+ `package triggers.${body.schemetableName.toLowerCase()}.${body.name};
21
+
22
+ import com.cloudcc.core.*;
23
+
24
+ public class ${body.name} extends CCTrigger {
25
+ public ${body.name}() {
26
+ // @SOURCE_CONTENT_START
27
+ System.out.print("hello World");
28
+ // @SOURCE_CONTENT_END
24
29
  }
25
30
  }`
26
31
 
Binary file