@cyklang/cli 0.14.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/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.14.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.11.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/test/t31.xml CHANGED
@@ -35,4 +35,35 @@
35
35
  <print>"moneyformat(123456.789) : " + moneyformat(123456.789)</print>
36
36
  <print>"moneyformat(123456.789, 'USD') : " + moneyformat(123456.789, 'USD')</print>
37
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
+
38
69
  </module>