@cyklang/cli 0.18.5 → 0.18.7

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 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.4');
185
+ .version('0.18.7');
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.5",
3
+ "version": "0.18.7",
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.52.0",
22
+ "@cyklang/core": "^0.54.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.5')
179
+ .version('0.18.7')
180
180
  program.addCommand(new StartCommand('start'))
181
181
  program.addCommand(new StopCommand('stop'))
182
182
  program.addCommand(new InstallCommand('install'))
package/test/t39.output CHANGED
@@ -9,3 +9,5 @@ name = 7, variable = 1
9
9
  name = 8, variable = 1
10
10
  name = 9, variable = 1
11
11
  name = 10, variable = 1
12
+ error caught : *** File: test/t39.xml, Line: 48, Col: 40:
13
+ Limte de 10 atteinte
package/test/t39.xml CHANGED
@@ -34,22 +34,28 @@
34
34
 
35
35
  </if>
36
36
 
37
- <call object="item_codes" method="foreach">
38
- <function>
39
- <number name="variable"/>
40
- <string name="name"/>
41
- <block>
42
- <print>format("name = {0}, variable = {1}",name,variable)</print>
43
- <if>
44
- <condition>name == "10"</condition>
45
- <then>
46
- <throw>format("Limte de 10 atteinte")</throw>
47
- </then>
48
- </if>
49
- </block>
50
- </function>
51
- </call>
52
-
53
- <print>format("Ne doit pas s'afficher")</print>
37
+ <try>
38
+ <block>
39
+ <call object="item_codes" method="foreach">
40
+ <function>
41
+ <number name="variable"/>
42
+ <string name="name"/>
43
+ <block>
44
+ <print>format("name = {0}, variable = {1}",name,variable)</print>
45
+ <if>
46
+ <condition>name == "10"</condition>
47
+ <then>
48
+ <throw>format("Limte de 10 atteinte")</throw>
49
+ </then>
50
+ </if>
51
+ </block>
52
+ </function>
53
+ </call>
54
+ <print>format("Ne doit pas s'afficher")</print>
55
+ </block>
56
+ <catch name="error">
57
+ <print>format("error caught : {0}",error)</print>
58
+ </catch>
59
+ </try>
54
60
 
55
61
  </module>
package/test/t44.output CHANGED
@@ -7,3 +7,27 @@ fournitures d entretien et petits equipements
7
7
  <string literal="">entretien</string>
8
8
  <string literal="">petits</string>
9
9
  <string literal="">equipements</string>
10
+ min(1,2,3) = 1
11
+ max(1,2,3) = 3
12
+ min('c','b','a') = a
13
+ max('c','b','a') = c
14
+ min(date(now()),'2023-01-01','2045-01-01') = 2023-01-01
15
+ max(date(now()),'2023-01-01','2045-01-01') = 2045-01-01
16
+ AVANT le tri : <object name="pierre">
17
+ <string name="prénom" literal="">pierre</string>
18
+ </object>
19
+ <object name="paul">
20
+ <string name="prénom" literal="">paul</string>
21
+ </object>
22
+ <object name="jacques">
23
+ <string name="jacques" literal="">jacques</string>
24
+ </object>
25
+ APRES le tri : <object name="jacques">
26
+ <string name="jacques" literal="">jacques</string>
27
+ </object>
28
+ <object name="paul">
29
+ <string name="prénom" literal="">paul</string>
30
+ </object>
31
+ <object name="pierre">
32
+ <string name="prénom" literal="">pierre</string>
33
+ </object>
package/test/t44.xml CHANGED
@@ -15,4 +15,32 @@
15
15
  </block>
16
16
  </function>
17
17
  </call>
18
+
19
+ <print>format("min(1,2,3) = {0}",min(1,2,3))</print>
20
+ <print>format("max(1,2,3) = {0}",max(1,2,3))</print>
21
+
22
+ <print>format("min('c','b','a') = {0}"min('c','b','a'))</print>
23
+ <print>format("max('c','b','a') = {0}"max('c','b','a'))</print>
24
+
25
+ <print>format("min(date(now()),'2023-01-01','2045-01-01') = {0}", min(date(now()),'2023-01-01','2045-01-01'))</print>
26
+ <print>format("max(date(now()),'2023-01-01','2045-01-01') = {0}", max(date(now()),'2023-01-01','2045-01-01'))</print>
27
+
28
+ <object name="list">
29
+ <object name="pierre">
30
+ <string name="prénom">"pierre"</string>
31
+ </object>
32
+ <object name="paul">
33
+ <string name="prénom">"paul"</string>
34
+ </object>
35
+ <object name="jacques">
36
+ <string name="jacques">"jacques"</string>
37
+ </object>
38
+ </object>
39
+
40
+ <print>format("AVANT le tri : {0}", list)</print>
41
+
42
+ <call object="list" method="sort"></call>
43
+
44
+ <print>format("APRES le tri : {0}", list)</print>
45
+
18
46
  </module>