@cyklang/cli 0.18.10 → 0.18.11
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/index.js +1 -1
- package/package.json +2 -2
- package/src/index.ts +1 -1
- package/test/t46.output +10 -0
- package/test/t46.xml +44 -0
package/build/index.js
CHANGED
|
@@ -182,7 +182,7 @@ class StopCommand extends commander_1.Command {
|
|
|
182
182
|
*/
|
|
183
183
|
const program = new commander_1.Command();
|
|
184
184
|
program.name('cyk').description('cyklang CLI')
|
|
185
|
-
.version('0.18.
|
|
185
|
+
.version('0.18.11');
|
|
186
186
|
program.addCommand(new StartCommand('start'));
|
|
187
187
|
program.addCommand(new StopCommand('stop'));
|
|
188
188
|
program.addCommand(new InstallCommand_1.InstallCommand('install'));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cyklang/cli",
|
|
3
|
-
"version": "0.18.
|
|
3
|
+
"version": "0.18.11",
|
|
4
4
|
"description": "cyklang CLI",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"author": "",
|
|
20
20
|
"license": "ISC",
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@cyklang/core": "^0.
|
|
22
|
+
"@cyklang/core": "^0.58.0",
|
|
23
23
|
"commander": "^9.4.0",
|
|
24
24
|
"dotenv": "^16.0.1",
|
|
25
25
|
"form-data": "^4.0.0",
|
package/src/index.ts
CHANGED
|
@@ -176,7 +176,7 @@ class StopCommand extends Command {
|
|
|
176
176
|
*/
|
|
177
177
|
const program = new Command()
|
|
178
178
|
program.name('cyk').description('cyklang CLI')
|
|
179
|
-
.version('0.18.
|
|
179
|
+
.version('0.18.11')
|
|
180
180
|
program.addCommand(new StartCommand('start'))
|
|
181
181
|
program.addCommand(new StopCommand('stop'))
|
|
182
182
|
program.addCommand(new InstallCommand('install'))
|
package/test/t46.output
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
list1 = <string name="a" literal="">Alain</string>
|
|
2
|
+
<string name="b" literal="">Bernard</string>
|
|
3
|
+
list2 = <object>
|
|
4
|
+
<number name="id">1</number>
|
|
5
|
+
<string name="nom" literal="">Premier</string>
|
|
6
|
+
</object>
|
|
7
|
+
<object>
|
|
8
|
+
<number name="id">2</number>
|
|
9
|
+
<string name="nom" literal="">Second</string>
|
|
10
|
+
</object>
|
package/test/t46.xml
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
<?xml-model href="https://www.cyklang.net/schema/cyklang.xsd" ?>
|
|
2
|
+
<module>
|
|
3
|
+
<object name="list1">
|
|
4
|
+
<string name="b">"Bernard"</string>
|
|
5
|
+
<string name="a">"Alain"</string>
|
|
6
|
+
</object>
|
|
7
|
+
<call object="list1" method="sort"></call>
|
|
8
|
+
<print>format("list1 = {0}",list1)</print>
|
|
9
|
+
|
|
10
|
+
<object name="list2">
|
|
11
|
+
<object>
|
|
12
|
+
<number name="id">2</number>
|
|
13
|
+
<string name="nom">"Second"</string>
|
|
14
|
+
</object>
|
|
15
|
+
<object>
|
|
16
|
+
<number name="id">1</number>
|
|
17
|
+
<string name="nom">"Premier"</string>
|
|
18
|
+
</object>
|
|
19
|
+
</object>
|
|
20
|
+
|
|
21
|
+
<call object="list2" method="sort">
|
|
22
|
+
<function returns="result: number">
|
|
23
|
+
<object name="row1"/>
|
|
24
|
+
<object name="row2"/>
|
|
25
|
+
<block>
|
|
26
|
+
<if>
|
|
27
|
+
<condition><![CDATA[ row1.id < row2.id ]]></condition>
|
|
28
|
+
<then>
|
|
29
|
+
<set name="result">-1</set>
|
|
30
|
+
</then>
|
|
31
|
+
<condition>row1.id == row2.id</condition>
|
|
32
|
+
<then>
|
|
33
|
+
<set name="result">0</set>
|
|
34
|
+
</then>
|
|
35
|
+
<else>
|
|
36
|
+
<set name="result">1</set>
|
|
37
|
+
</else>
|
|
38
|
+
</if>
|
|
39
|
+
</block>
|
|
40
|
+
</function>
|
|
41
|
+
</call>
|
|
42
|
+
|
|
43
|
+
<print>format("list2 = {0}",list2)</print>
|
|
44
|
+
</module>
|