@cyklang/cli 0.14.17 → 0.14.19
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/t34.output +10 -0
- package/test/t34.xml +21 -1
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.14.
|
|
185
|
+
.version('0.14.19');
|
|
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.14.
|
|
3
|
+
"version": "0.14.19",
|
|
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.19.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.14.
|
|
179
|
+
.version('0.14.19')
|
|
180
180
|
program.addCommand(new StartCommand('start'))
|
|
181
181
|
program.addCommand(new StopCommand('stop'))
|
|
182
182
|
program.addCommand(new InstallCommand('install'))
|
package/test/t34.output
CHANGED
|
@@ -14,3 +14,13 @@ dialog=<boolean name="__dirty__">false</boolean>
|
|
|
14
14
|
dialog.grid.f1() = 50
|
|
15
15
|
dialog.grid.boole = false
|
|
16
16
|
dialog2.__dirty__ = false
|
|
17
|
+
result_matchre_1 = <string literal="">riode : 01/01/2023 - 31/12/2023"</string>
|
|
18
|
+
<string literal="">01/01/2023</string>
|
|
19
|
+
<string literal="">31/12/2023</string>
|
|
20
|
+
text2 [ toto ] does not match /riode : (.*) - (.*)"/
|
|
21
|
+
split of text3 : <string literal="">" 02/01/2023"</string>
|
|
22
|
+
<string literal="">" 02/01/2023"</string>
|
|
23
|
+
<string literal="">"CARTE 30/12/22 APPLE.COM/BILL CB*1998"</string>
|
|
24
|
+
<string literal="">-00000000016,99</string>
|
|
25
|
+
<string literal="">"EUR "</string>
|
|
26
|
+
date_1: " 02/01/2023", date_2: " 02/01/2023"
|
package/test/t34.xml
CHANGED
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
<call object="buffer" method="push">
|
|
38
38
|
<string><![CDATA[ "Contenu du Journal" ]]></string>
|
|
39
39
|
</call>
|
|
40
|
-
|
|
40
|
+
|
|
41
41
|
<!-- <call object="this" method="foreach">
|
|
42
42
|
<function>
|
|
43
43
|
<object name="journal"/>
|
|
@@ -106,5 +106,25 @@
|
|
|
106
106
|
<object name="dialog2" type="TDialog"></object>
|
|
107
107
|
<print>"dialog2.__dirty__ = " + dialog2.__dirty__</print>
|
|
108
108
|
|
|
109
|
+
<string name="text1" literal="">"*** PÈriode : 01/01/2023 - 31/12/2023"</string>
|
|
110
|
+
<string name="text2" literal="">toto</string>
|
|
111
|
+
<string name="regexp_1" literal="">riode : (.*) - (.*)"</string>
|
|
112
|
+
<object name="result_matchre_1">matchre(text1, regexp_1)</object>
|
|
113
|
+
<print>"result_matchre_1 = " + string(result_matchre_1)</print>
|
|
114
|
+
|
|
115
|
+
<object name="result_matchre_2">matchre(text2, regexp_1)</object>
|
|
116
|
+
<if>
|
|
117
|
+
<condition>result_matchre_2</condition>
|
|
118
|
+
<then>
|
|
119
|
+
<print>"result_matchre_2 = " + string(result_matchre_2)</print>
|
|
120
|
+
</then>
|
|
121
|
+
<else>
|
|
122
|
+
<print>format("text2 [ {0} ] does not match /{1}/", text2, regexp_1)</print>
|
|
123
|
+
</else>
|
|
124
|
+
</if>
|
|
109
125
|
|
|
126
|
+
<string name="text3" literal="">" 02/01/2023" " 02/01/2023" "CARTE 30/12/22 APPLE.COM/BILL CB*1998" -00000000016,99 "EUR "</string>
|
|
127
|
+
<object name="result_split">split(text3, "\t")</object>
|
|
128
|
+
<print>"split of text3 : " + string(result_split)</print>
|
|
129
|
+
<print>format("date_1: {0}, date_2: {1}", result_split.at(0), result_split.at(1))</print>
|
|
110
130
|
</module>
|