@cyklang/cli 0.13.0 → 0.14.1

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.12.1');
185
+ .version('0.14.0');
186
186
  program.addCommand(new StartCommand('start'));
187
187
  program.addCommand(new StopCommand('stop'));
188
188
  program.addCommand(new InstallCommand_1.InstallCommand('install'));
package/clean_test.sh CHANGED
@@ -4,8 +4,11 @@ cyk table drop -y t_film_actor
4
4
  cyk table drop -y t_film
5
5
  cyk table drop -y t_actor
6
6
 
7
+ source ./.env
8
+ echo $PGHOST
9
+ echo $PGPORT
7
10
 
8
- psql -c "
11
+ psql -h $PGHOST -p $PGPORT -c "
9
12
  do \$\$
10
13
  declare next_id int;
11
14
  begin
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cyklang/cli",
3
- "version": "0.13.0",
3
+ "version": "0.14.1",
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.10.0",
22
+ "@cyklang/core": "^0.11.1",
23
23
  "commander": "^9.4.0",
24
24
  "dotenv": "^16.0.1",
25
25
  "form-data": "^4.0.0",
package/run_test.sh CHANGED
@@ -6,7 +6,10 @@ cyk module upload test/db/t20.xml
6
6
  cyk module upload test/db/t22.xml
7
7
 
8
8
  cyk test test/db/dbinit.xml
9
- psql -f test/db/t_load_cache.sql
9
+
10
+ source ./.env
11
+
12
+ psql -h $PGHOST -p $PGPORT -f test/db/t_load_cache.sql
10
13
 
11
14
  cyk test test/db/t*.xml
12
15
 
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.12.1')
179
+ .version('0.14.0')
180
180
  program.addCommand(new StartCommand('start'))
181
181
  program.addCommand(new StopCommand('stop'))
182
182
  program.addCommand(new InstallCommand('install'))
package/test/t31.xml CHANGED
@@ -31,4 +31,39 @@
31
31
  <print>"dtbirth: " + dateformat(dtbirth, "DD/MM/YYYY HH:mm")</print>
32
32
  <print>"dtbirth: " + dateformat(dtbirth, "MMMM YYYY", "fr")</print>
33
33
 
34
+ <print>"numberformat(123456.789) : " + numberformat(123456.789)</print>
35
+ <print>"moneyformat(123456.789) : " + moneyformat(123456.789)</print>
36
+ <print>"moneyformat(123456.789, 'USD') : " + moneyformat(123456.789, 'USD')</print>
37
+
38
+ <object name="v">
39
+ <number name="_010_">1000</number>
40
+ </object>
41
+
42
+ <call object="v" method="pushnamevariable">
43
+ <string name="name">"_AA_"</string>
44
+ <number name="variable">2000</number>
45
+ </call>
46
+ <call object="v" method="pushnamevariable">
47
+ <string name="name">"_AB_"</string>
48
+ <number name="variable">500</number>
49
+ </call>
50
+ <call object="v" method="pushnamevariable">
51
+ <string name="name">"_AC_"</string>
52
+ <number name="variable">100</number>
53
+ </call>
54
+ <call object="v" method="pushnamevariable">
55
+ <string name="name">"_AD_"</string>
56
+ <number name="variable" reactive="">v._AA_ - v._AB_ - v._AC_</number>
57
+ </call>
58
+
59
+ <print>"v._010_ = " + v._010_</print>
60
+ <print>"v._AA_ = " + v._AA_</print>
61
+ <print>"v._AB_ = " + v._AB_</print>
62
+ <print>"v._AC_ = " + v._AC_</print>
63
+ <print>"v._AD_ = " + v._AD_</print>
64
+ <set name="v._AC_">200</set>
65
+ <print>"v._AC_ = " + v._AC_</print>
66
+ <sleep>1</sleep>
67
+ <print>"v._AD_ = " + v._AD_</print>
68
+
34
69
  </module>