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
package/package.json
CHANGED
package/src/timer/create.js
CHANGED
|
@@ -11,11 +11,16 @@ async function create(name) {
|
|
|
11
11
|
try {
|
|
12
12
|
fs.mkdirSync(timerPath, { recursive: true })
|
|
13
13
|
|
|
14
|
-
const javaTmp =
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
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)
|
package/src/triggers/create.js
CHANGED
|
@@ -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 =
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
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
|