@cyklang/cli 0.1.2 → 0.2.0
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/build/AssetCommand.d.ts +4 -0
- package/build/AssetCommand.js +293 -0
- package/build/Cmd.d.ts +2 -1
- package/build/Cmd.js +3 -3
- package/build/DBClient.d.ts +1 -0
- package/build/DBClient.js +51 -17
- package/build/ModuleCommand.js +6 -6
- package/build/TableCommand.js +235 -45
- package/build/index.js +3 -0
- package/package.json +5 -2
- package/pgdata/entry.csv +22 -0
- package/pgdata/setting.csv +4 -0
- package/src/AssetCommand.ts +307 -0
- package/src/Cmd.ts +4 -3
- package/src/DBClient.ts +70 -31
- package/src/ModuleCommand.ts +7 -5
- package/src/TableCommand.ts +269 -56
- package/src/index.ts +3 -0
- package/test/cyklang.xsd +439 -0
- package/test/t0.output +4 -0
- package/test/t0.xml +26 -0
- package/test/t01.output +32 -0
- package/test/t01.xml +185 -0
- package/test/t02.output +10 -0
- package/test/t02.xml +88 -0
- package/test/t03.output +9 -0
- package/test/t03.xml +74 -0
- package/test/t04.output +29 -0
- package/test/t04.xml +116 -0
- package/test/t05.output +18 -0
- package/test/t05.xml +41 -0
- package/test/t06.output +4 -0
- package/test/t06.xml +16 -0
- package/test/t07.output +5 -0
- package/test/t07.xml +82 -0
- package/test/t08.output +8 -0
- package/test/t08.xml +57 -0
- package/test/t09.output +10 -0
- package/test/t09.xml +29 -0
- package/test/t10.xml +125 -0
- package/test/t11.output +3 -0
- package/test/t11.xml +25 -0
- package/test/t12.output +7 -0
- package/test/t12.xml +42 -0
- package/test/t13.xml +23 -0
- package/test/t14.output +50 -0
- package/test/t14.xml +82 -0
- package/test/t14.xsd +102 -0
- package/test/t15.xml +47 -0
- package/test/t16.output +49 -0
- package/test/t16.xml +86 -0
- package/test/t17.output +5 -0
- package/test/t17.xml +21 -0
- package/test/t18.output +22 -0
- package/test/t18.xml +59 -0
- package/test/t19.xml +234 -0
- package/test/t20.xml +15 -0
- package/test/t21.output +21 -0
- package/test/t21.xml +71 -0
- package/test/t22.xml +23 -0
- package/test/t23.xml +44 -0
- package/test/t24.xml +10 -0
- package/test/test.json +113 -0
package/test/t23.xml
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
<?xml-model href="cyklang.xsd" ?>
|
|
2
|
+
<module dbname="t23">
|
|
3
|
+
<function name="call_get_tables">
|
|
4
|
+
<block>
|
|
5
|
+
<object name="settings"/>
|
|
6
|
+
<db.call module="t22" method="get_tables" returns="settings"/>
|
|
7
|
+
|
|
8
|
+
<!-- <db.execute module="t22" method="get_tables" returns="settings">
|
|
9
|
+
</db.execute> -->
|
|
10
|
+
<print>"Client side : " + string(settings)</print>
|
|
11
|
+
</block>
|
|
12
|
+
</function>
|
|
13
|
+
|
|
14
|
+
<call function="call_get_tables"/>
|
|
15
|
+
|
|
16
|
+
<print>now()</print>
|
|
17
|
+
|
|
18
|
+
<function name="wait">
|
|
19
|
+
<number name="duration">1000</number>
|
|
20
|
+
<string name="message"/>
|
|
21
|
+
<block>
|
|
22
|
+
<sleep>duration</sleep>
|
|
23
|
+
<print>now() + ' ' + message</print>
|
|
24
|
+
</block>
|
|
25
|
+
</function>
|
|
26
|
+
|
|
27
|
+
<parallel>
|
|
28
|
+
<call function="wait">
|
|
29
|
+
<number name="duration">3000</number>
|
|
30
|
+
<string name="message">"First (3 sec)"</string>
|
|
31
|
+
</call>
|
|
32
|
+
<call function="wait">
|
|
33
|
+
<number name="duration">2000</number>
|
|
34
|
+
<string name="message">"Second (2 sec)"</string>
|
|
35
|
+
</call>
|
|
36
|
+
<call function="wait">
|
|
37
|
+
<number name="duration">1000</number>
|
|
38
|
+
<string name="message">"Third (1 sec)"</string>
|
|
39
|
+
</call>
|
|
40
|
+
</parallel>
|
|
41
|
+
|
|
42
|
+
<print>now() + " AFTER parallel "</print>
|
|
43
|
+
|
|
44
|
+
</module>
|
package/test/t24.xml
ADDED
package/test/test.json
ADDED
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
{
|
|
2
|
+
"dataType": {
|
|
3
|
+
"name": "form",
|
|
4
|
+
"structure": {
|
|
5
|
+
"directory": { "dataTypes": {}, "instructionTypes": {} },
|
|
6
|
+
"trueData": { "type": { "name": "boolean" }, "value": true },
|
|
7
|
+
"falseData": { "type": { "name": "boolean" }, "value": false },
|
|
8
|
+
"functionDataType": { "name": "function" },
|
|
9
|
+
"methodDataType": { "name": "method" }
|
|
10
|
+
},
|
|
11
|
+
"methods": {},
|
|
12
|
+
"members": { "array": [] },
|
|
13
|
+
"baseType": {
|
|
14
|
+
"name": "grid",
|
|
15
|
+
"structure": {
|
|
16
|
+
"directory": { "dataTypes": {}, "instructionTypes": {} },
|
|
17
|
+
"trueData": { "type": { "name": "boolean" }, "value": true },
|
|
18
|
+
"falseData": { "type": { "name": "boolean" }, "value": false },
|
|
19
|
+
"functionDataType": { "name": "function" },
|
|
20
|
+
"methodDataType": { "name": "method" }
|
|
21
|
+
},
|
|
22
|
+
"methods": {},
|
|
23
|
+
"members": { "array": [] },
|
|
24
|
+
"baseType": {
|
|
25
|
+
"name": "component",
|
|
26
|
+
"structure": {
|
|
27
|
+
"directory": { "dataTypes": {}, "instructionTypes": {} },
|
|
28
|
+
"trueData": { "type": { "name": "boolean" }, "value": true },
|
|
29
|
+
"falseData": { "type": { "name": "boolean" }, "value": false },
|
|
30
|
+
"functionDataType": { "name": "function" },
|
|
31
|
+
"methodDataType": { "name": "method" }
|
|
32
|
+
},
|
|
33
|
+
"methods": {},
|
|
34
|
+
"members": { "array": [] }
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"data": {
|
|
39
|
+
"type": {
|
|
40
|
+
"name": "form",
|
|
41
|
+
"structure": {
|
|
42
|
+
"directory": { "dataTypes": {}, "instructionTypes": {} },
|
|
43
|
+
"trueData": { "type": { "name": "boolean" }, "value": true },
|
|
44
|
+
"falseData": { "type": { "name": "boolean" }, "value": false },
|
|
45
|
+
"functionDataType": { "name": "function" },
|
|
46
|
+
"methodDataType": { "name": "method" }
|
|
47
|
+
},
|
|
48
|
+
"methods": {},
|
|
49
|
+
"members": { "array": [] },
|
|
50
|
+
"baseType": {
|
|
51
|
+
"name": "grid",
|
|
52
|
+
"structure": {
|
|
53
|
+
"directory": { "dataTypes": {}, "instructionTypes": {} },
|
|
54
|
+
"trueData": { "type": { "name": "boolean" }, "value": true },
|
|
55
|
+
"falseData": { "type": { "name": "boolean" }, "value": false },
|
|
56
|
+
"functionDataType": { "name": "function" },
|
|
57
|
+
"methodDataType": { "name": "method" }
|
|
58
|
+
},
|
|
59
|
+
"methods": {},
|
|
60
|
+
"members": { "array": [] },
|
|
61
|
+
"baseType": {
|
|
62
|
+
"name": "component",
|
|
63
|
+
"structure": {
|
|
64
|
+
"directory": { "dataTypes": {}, "instructionTypes": {} },
|
|
65
|
+
"trueData": { "type": { "name": "boolean" }, "value": true },
|
|
66
|
+
"falseData": { "type": { "name": "boolean" }, "value": false },
|
|
67
|
+
"functionDataType": { "name": "function" },
|
|
68
|
+
"methodDataType": { "name": "method" }
|
|
69
|
+
},
|
|
70
|
+
"methods": {},
|
|
71
|
+
"members": { "array": [] }
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
"objectDataType": {
|
|
76
|
+
"name": "form",
|
|
77
|
+
"structure": {
|
|
78
|
+
"directory": { "dataTypes": {}, "instructionTypes": {} },
|
|
79
|
+
"trueData": { "type": { "name": "boolean" }, "value": true },
|
|
80
|
+
"falseData": { "type": { "name": "boolean" }, "value": false },
|
|
81
|
+
"functionDataType": { "name": "function" },
|
|
82
|
+
"methodDataType": { "name": "method" }
|
|
83
|
+
},
|
|
84
|
+
"methods": {},
|
|
85
|
+
"members": { "array": [] },
|
|
86
|
+
"baseType": {
|
|
87
|
+
"name": "grid",
|
|
88
|
+
"structure": {
|
|
89
|
+
"directory": { "dataTypes": {}, "instructionTypes": {} },
|
|
90
|
+
"trueData": { "type": { "name": "boolean" }, "value": true },
|
|
91
|
+
"falseData": { "type": { "name": "boolean" }, "value": false },
|
|
92
|
+
"functionDataType": { "name": "function" },
|
|
93
|
+
"methodDataType": { "name": "method" }
|
|
94
|
+
},
|
|
95
|
+
"methods": {},
|
|
96
|
+
"members": { "array": [] },
|
|
97
|
+
"baseType": {
|
|
98
|
+
"name": "component",
|
|
99
|
+
"structure": {
|
|
100
|
+
"directory": { "dataTypes": {}, "instructionTypes": {} },
|
|
101
|
+
"trueData": { "type": { "name": "boolean" }, "value": true },
|
|
102
|
+
"falseData": { "type": { "name": "boolean" }, "value": false },
|
|
103
|
+
"functionDataType": { "name": "function" },
|
|
104
|
+
"methodDataType": { "name": "method" }
|
|
105
|
+
},
|
|
106
|
+
"methods": {},
|
|
107
|
+
"members": { "array": [] }
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
"variables": { "list": [] }
|
|
112
|
+
}
|
|
113
|
+
}
|