mrs-toolbox-cli 0.0.120 → 0.0.129
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/88b0986a7186d029-atomicfu-js-ir.js +32 -33
- package/88b0986a7186d029-atomicfu-js-ir.js.map +1 -1
- package/Kotlin-DateTime-library-kotlinx-datetime.js +2 -626
- package/Kotlin-DateTime-library-kotlinx-datetime.js.map +1 -1
- package/clikt-clikt.js +2063 -2080
- package/clikt-clikt.js.map +1 -1
- package/colormath-root-colormath.js +563 -455
- package/colormath-root-colormath.js.map +1 -1
- package/com.mrs.platform.configuration.dto.js +8385 -8656
- package/com.mrs.platform.configuration.dto.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +9747 -9277
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin-logging-js-ir.js +62 -62
- package/kotlin-logging-js-ir.js.map +1 -1
- package/kotlin-node.js +12 -2
- package/kotlin-node.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core.js +2509 -2492
- package/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.js +2346 -2157
- package/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -1
- package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js +3151 -2091
- package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js.map +1 -1
- package/ktor-ktor-client-content-negotiation.js +261 -260
- package/ktor-ktor-client-content-negotiation.js.map +1 -1
- package/ktor-ktor-client-core.js +2777 -2786
- package/ktor-ktor-client-core.js.map +1 -1
- package/ktor-ktor-events.js +17 -18
- package/ktor-ktor-events.js.map +1 -1
- package/ktor-ktor-http.js +921 -923
- package/ktor-ktor-http.js.map +1 -1
- package/ktor-ktor-io.js +1738 -1760
- package/ktor-ktor-io.js.map +1 -1
- package/ktor-ktor-serialization-kotlinx-json.js +9 -9
- package/ktor-ktor-serialization-kotlinx.js +303 -305
- package/ktor-ktor-serialization-kotlinx.js.map +1 -1
- package/ktor-ktor-serialization.js +135 -134
- package/ktor-ktor-serialization.js.map +1 -1
- package/ktor-ktor-utils.js +641 -637
- package/ktor-ktor-utils.js.map +1 -1
- package/ktor-ktor-websockets.js +73 -73
- package/ktor-ktor-websockets.js.map +1 -1
- package/markdown.js +2346 -2358
- package/markdown.js.map +1 -1
- package/mordant-mordant.js +2536 -2631
- package/mordant-mordant.js.map +1 -1
- package/mrs-toolbox-cli.d.ts +261 -657
- package/mrs-toolbox-cli.js +125 -209
- package/mrs-toolbox-cli.js.map +1 -1
- package/package.json +2 -2
- package/static/demo.test.ts.txt +1 -1
- package/static/mrscconfig.json +0 -1
- package/toolbox.js +11625 -8894
- package/toolbox.js.map +1 -1
package/mrs-toolbox-cli.js
CHANGED
|
@@ -3,42 +3,50 @@
|
|
|
3
3
|
'use strict';
|
|
4
4
|
//region block: imports
|
|
5
5
|
var CliktCommand = kotlin_clikt_clikt.$_$.a;
|
|
6
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
7
|
-
var
|
|
8
|
-
var setMetadataFor = kotlin_kotlin.$_$.fc;
|
|
9
|
-
var VOID = kotlin_kotlin.$_$.g;
|
|
10
|
-
var charSequenceLength = kotlin_kotlin.$_$.ua;
|
|
11
|
-
var Unit_instance = kotlin_kotlin.$_$.g5;
|
|
12
|
-
var option = kotlin_clikt_clikt.$_$.g;
|
|
13
|
-
var prompt = kotlin_clikt_clikt.$_$.h;
|
|
6
|
+
var protoOf = kotlin_kotlin.$_$.kc;
|
|
7
|
+
var initMetadataForClass = kotlin_kotlin.$_$.jb;
|
|
14
8
|
var argument = kotlin_clikt_clikt.$_$.c;
|
|
15
|
-
var optional = kotlin_clikt_clikt.$_$.d;
|
|
16
|
-
var FileManager_instance = kotlin_com_mrs_platform_toolbox_library.$_$.b;
|
|
17
|
-
var default_0 = kotlin_clikt_clikt.$_$.e;
|
|
18
9
|
var CommandExecutor_getInstance = kotlin_com_mrs_platform_toolbox_library.$_$.a;
|
|
19
|
-
var
|
|
20
|
-
var
|
|
21
|
-
var
|
|
22
|
-
var
|
|
23
|
-
var
|
|
24
|
-
var
|
|
25
|
-
var
|
|
10
|
+
var charSequenceLength = kotlin_kotlin.$_$.xa;
|
|
11
|
+
var Unit_instance = kotlin_kotlin.$_$.i5;
|
|
12
|
+
var option = kotlin_clikt_clikt.$_$.e;
|
|
13
|
+
var prompt = kotlin_clikt_clikt.$_$.f;
|
|
14
|
+
var VOID = kotlin_kotlin.$_$.g;
|
|
15
|
+
var optional = kotlin_clikt_clikt.$_$.d;
|
|
16
|
+
var println = kotlin_kotlin.$_$.ma;
|
|
17
|
+
var KProperty1 = kotlin_kotlin.$_$.id;
|
|
18
|
+
var getPropertyCallableRef = kotlin_kotlin.$_$.gb;
|
|
19
|
+
var THROW_CCE = kotlin_kotlin.$_$.tg;
|
|
20
|
+
var isArray = kotlin_kotlin.$_$.qb;
|
|
21
|
+
var split = kotlin_kotlin.$_$.bf;
|
|
26
22
|
var subcommands = kotlin_clikt_clikt.$_$.b;
|
|
27
23
|
//endregion
|
|
28
24
|
//region block: pre-declaration
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
25
|
+
initMetadataForClass(Mrsc, 'Mrsc', Mrsc, CliktCommand);
|
|
26
|
+
initMetadataForClass(WorkingDir, 'WorkingDir', WorkingDir, CliktCommand);
|
|
27
|
+
initMetadataForClass(Auth, 'Auth', Auth, CliktCommand);
|
|
28
|
+
initMetadataForClass(Test, 'Test', Test, CliktCommand);
|
|
29
|
+
initMetadataForClass(Prepare, 'Prepare', Prepare, CliktCommand);
|
|
30
|
+
initMetadataForClass(Export, 'Export', Export, CliktCommand);
|
|
31
|
+
initMetadataForClass(Upload, 'Upload', Upload, CliktCommand);
|
|
32
|
+
initMetadataForClass(Version, 'Version', Version, CliktCommand);
|
|
33
|
+
initMetadataForClass(PullDictionaries, 'PullDictionaries', PullDictionaries, CliktCommand);
|
|
34
|
+
initMetadataForClass(Migrator, 'Migrator', Migrator, CliktCommand);
|
|
37
35
|
//endregion
|
|
38
36
|
function Mrsc() {
|
|
39
37
|
CliktCommand.call(this, 'Mrs platform toolbox cli app');
|
|
40
38
|
}
|
|
41
|
-
protoOf(Mrsc).
|
|
39
|
+
protoOf(Mrsc).cs = function () {
|
|
40
|
+
};
|
|
41
|
+
function WorkingDir() {
|
|
42
|
+
CliktCommand.call(this, 'Set working directory');
|
|
43
|
+
this.g87_1 = argument(this).a82(this, workingDir$factory());
|
|
44
|
+
}
|
|
45
|
+
protoOf(WorkingDir).h87 = function () {
|
|
46
|
+
return this.g87_1.u82(this, workingDir$factory_0());
|
|
47
|
+
};
|
|
48
|
+
protoOf(WorkingDir).cs = function () {
|
|
49
|
+
CommandExecutor_getInstance().u54_1 = this.h87();
|
|
42
50
|
};
|
|
43
51
|
function Auth$email$delegate$lambda($this$copy, it) {
|
|
44
52
|
if (!(it == null)) {
|
|
@@ -48,7 +56,7 @@
|
|
|
48
56
|
if (!(charSequenceLength(it) > 0)) {
|
|
49
57
|
// Inline function 'Auth.email$delegate.<anonymous>.<anonymous>' call
|
|
50
58
|
var tmp$ret$1 = "Email can't be empty!";
|
|
51
|
-
$this$copy.
|
|
59
|
+
$this$copy.d82(tmp$ret$1);
|
|
52
60
|
}
|
|
53
61
|
}
|
|
54
62
|
return Unit_instance;
|
|
@@ -61,7 +69,7 @@
|
|
|
61
69
|
if (!(charSequenceLength(it) > 0)) {
|
|
62
70
|
// Inline function 'Auth.password$delegate.<anonymous>.<anonymous>' call
|
|
63
71
|
var tmp$ret$1 = "Password can't be empty!";
|
|
64
|
-
$this$copy.
|
|
72
|
+
$this$copy.d82(tmp$ret$1);
|
|
65
73
|
}
|
|
66
74
|
}
|
|
67
75
|
return Unit_instance;
|
|
@@ -71,291 +79,195 @@
|
|
|
71
79
|
var tmp = this;
|
|
72
80
|
// Inline function 'com.github.ajalt.clikt.parameters.options.validate' call
|
|
73
81
|
var this_0 = prompt(option(this, ['-e', '--email'], 'Email for log in'));
|
|
74
|
-
var tmp_0 = this_0.
|
|
75
|
-
var tmp_1 = this_0.
|
|
76
|
-
var tmp_2 = this_0.
|
|
77
|
-
tmp.
|
|
82
|
+
var tmp_0 = this_0.v81();
|
|
83
|
+
var tmp_1 = this_0.x82();
|
|
84
|
+
var tmp_2 = this_0.w81();
|
|
85
|
+
tmp.z87_1 = this_0.y82(tmp_0, tmp_1, tmp_2, Auth$email$delegate$lambda).e83(this, email$factory());
|
|
78
86
|
var tmp_3 = this;
|
|
79
87
|
// Inline function 'com.github.ajalt.clikt.parameters.options.validate' call
|
|
80
88
|
var this_1 = prompt(option(this, ['-p', '--password'], 'Password for log in'));
|
|
81
|
-
var tmp_4 = this_1.
|
|
82
|
-
var tmp_5 = this_1.
|
|
83
|
-
var tmp_6 = this_1.
|
|
84
|
-
tmp_3.
|
|
85
|
-
this.
|
|
86
|
-
this.
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
return this.m7s_1.a7o(this, email$factory_0());
|
|
89
|
+
var tmp_4 = this_1.v81();
|
|
90
|
+
var tmp_5 = this_1.x82();
|
|
91
|
+
var tmp_6 = this_1.w81();
|
|
92
|
+
tmp_3.a88_1 = this_1.y82(tmp_4, tmp_5, tmp_6, Auth$password$delegate$lambda).e83(this, password$factory());
|
|
93
|
+
this.b88_1 = optional(argument(this, VOID, 'Url to strapi server')).a82(this, url$factory());
|
|
94
|
+
this.c88_1 = option(this, ['-c', '--config'], 'Config file name').e83(this, config$factory());
|
|
95
|
+
}
|
|
96
|
+
protoOf(Auth).d88 = function () {
|
|
97
|
+
return this.z87_1.u82(this, email$factory_0());
|
|
91
98
|
};
|
|
92
|
-
protoOf(Auth).
|
|
93
|
-
return this.
|
|
99
|
+
protoOf(Auth).y26 = function () {
|
|
100
|
+
return this.a88_1.u82(this, password$factory_0());
|
|
94
101
|
};
|
|
95
|
-
protoOf(Auth).
|
|
96
|
-
return this.
|
|
102
|
+
protoOf(Auth).f3n = function () {
|
|
103
|
+
return this.b88_1.u82(this, url$factory_0());
|
|
97
104
|
};
|
|
98
|
-
protoOf(Auth).
|
|
99
|
-
return this.
|
|
105
|
+
protoOf(Auth).c42 = function () {
|
|
106
|
+
return this.c88_1.u82(this, config$factory_0());
|
|
100
107
|
};
|
|
101
|
-
protoOf(Auth).
|
|
102
|
-
|
|
103
|
-
};
|
|
104
|
-
protoOf(Auth).kr = function () {
|
|
105
|
-
CommandExecutor_getInstance().auth(this.r7s(), this.l21(), this.e3i(), this.o61(), this.h3y());
|
|
108
|
+
protoOf(Auth).cs = function () {
|
|
109
|
+
CommandExecutor_getInstance().o57(this.d88(), this.y26(), this.f3n(), this.c42());
|
|
106
110
|
};
|
|
107
111
|
function Test() {
|
|
108
112
|
CliktCommand.call(this, 'Test hooks');
|
|
109
|
-
this.
|
|
110
|
-
this.k7t_1 = default_0(option(this, [], 'Current working directory', VOID, true), FileManager_instance.c60()).k7o(this, cwd$factory_1());
|
|
113
|
+
this.v88_1 = option(this, ['-c', '--config'], 'Config file name').e83(this, config$factory_1());
|
|
111
114
|
}
|
|
112
|
-
protoOf(Test).
|
|
113
|
-
return this.
|
|
114
|
-
};
|
|
115
|
-
protoOf(Test).o61 = function () {
|
|
116
|
-
return this.k7t_1.a7o(this, cwd$factory_2());
|
|
115
|
+
protoOf(Test).c42 = function () {
|
|
116
|
+
return this.v88_1.u82(this, config$factory_2());
|
|
117
117
|
};
|
|
118
|
-
protoOf(Test).
|
|
119
|
-
CommandExecutor_getInstance().
|
|
118
|
+
protoOf(Test).cs = function () {
|
|
119
|
+
CommandExecutor_getInstance().p57(this.c42());
|
|
120
120
|
};
|
|
121
121
|
function Prepare() {
|
|
122
122
|
CliktCommand.call(this, 'Prepare workspace');
|
|
123
|
-
this.
|
|
124
|
-
this.d7u_1 = default_0(option(this, [], 'Current working directory', VOID, true), FileManager_instance.c60()).k7o(this, cwd$factory_3());
|
|
123
|
+
this.n89_1 = option(this, ['-c', '--config'], 'Config file name').e83(this, config$factory_3());
|
|
125
124
|
}
|
|
126
|
-
protoOf(Prepare).
|
|
127
|
-
return this.
|
|
128
|
-
};
|
|
129
|
-
protoOf(Prepare).o61 = function () {
|
|
130
|
-
return this.d7u_1.a7o(this, cwd$factory_4());
|
|
125
|
+
protoOf(Prepare).c42 = function () {
|
|
126
|
+
return this.n89_1.u82(this, config$factory_4());
|
|
131
127
|
};
|
|
132
|
-
protoOf(Prepare).
|
|
133
|
-
CommandExecutor_getInstance().
|
|
128
|
+
protoOf(Prepare).cs = function () {
|
|
129
|
+
CommandExecutor_getInstance().q57(this.c42());
|
|
134
130
|
};
|
|
135
131
|
function Export() {
|
|
136
132
|
CliktCommand.call(this, 'Create export config for s3');
|
|
137
|
-
this.
|
|
138
|
-
this.w7u_1 = default_0(option(this, [], 'Current working directory', VOID, true), FileManager_instance.c60()).k7o(this, cwd$factory_5());
|
|
139
|
-
this.x7u_1 = flag(option(this, ['--autoUpdate'], 'Autoupdate config in s3 storage', VOID, true), [], false).k7o(this, autoUpdate$factory());
|
|
140
|
-
this.y7u_1 = option(this, ['-v', '--version'], 'Version for build').k7o(this, version$factory());
|
|
133
|
+
this.f8a_1 = option(this, ['-c', '--config'], 'Config file name').e83(this, config$factory_5());
|
|
141
134
|
}
|
|
142
|
-
protoOf(Export).
|
|
143
|
-
return this.
|
|
144
|
-
};
|
|
145
|
-
protoOf(Export).o61 = function () {
|
|
146
|
-
return this.w7u_1.a7o(this, cwd$factory_6());
|
|
147
|
-
};
|
|
148
|
-
protoOf(Export).m3g = function () {
|
|
149
|
-
return this.x7u_1.a7o(this, autoUpdate$factory_0());
|
|
150
|
-
};
|
|
151
|
-
protoOf(Export).r3k = function () {
|
|
152
|
-
return this.y7u_1.a7o(this, version$factory_0());
|
|
135
|
+
protoOf(Export).c42 = function () {
|
|
136
|
+
return this.f8a_1.u82(this, config$factory_6());
|
|
153
137
|
};
|
|
154
|
-
protoOf(Export).
|
|
155
|
-
CommandExecutor_getInstance().
|
|
138
|
+
protoOf(Export).cs = function () {
|
|
139
|
+
CommandExecutor_getInstance().v57(this.c42());
|
|
156
140
|
};
|
|
157
141
|
function Upload() {
|
|
158
142
|
CliktCommand.call(this, 'Upload exportConfig to s3');
|
|
159
|
-
this.
|
|
160
|
-
this.r7v_1 = default_0(option(this, [], 'Current working directory', VOID, true), FileManager_instance.c60()).k7o(this, cwd$factory_7());
|
|
143
|
+
this.x8a_1 = option(this, ['-c', '--config'], 'Config file name').e83(this, config$factory_7());
|
|
161
144
|
}
|
|
162
|
-
protoOf(Upload).
|
|
163
|
-
return this.
|
|
145
|
+
protoOf(Upload).c42 = function () {
|
|
146
|
+
return this.x8a_1.u82(this, config$factory_8());
|
|
164
147
|
};
|
|
165
|
-
protoOf(Upload).
|
|
166
|
-
|
|
167
|
-
};
|
|
168
|
-
protoOf(Upload).kr = function () {
|
|
169
|
-
CommandExecutor_getInstance().upload(this.o61(), this.h3y());
|
|
148
|
+
protoOf(Upload).cs = function () {
|
|
149
|
+
CommandExecutor_getInstance().t57(this.c42());
|
|
170
150
|
};
|
|
171
151
|
function Version() {
|
|
172
152
|
CliktCommand.call(this, 'Get toolbox version');
|
|
173
153
|
}
|
|
174
|
-
protoOf(Version).
|
|
154
|
+
protoOf(Version).cs = function () {
|
|
175
155
|
return println('Version is 0.0.1');
|
|
176
156
|
};
|
|
177
157
|
function PullDictionaries() {
|
|
178
158
|
CliktCommand.call(this, 'Pull dictionaries from Directus');
|
|
179
|
-
this.
|
|
180
|
-
this.b7x_1 = default_0(option(this, [], 'Current working directory', VOID, true), FileManager_instance.c60()).k7o(this, cwd$factory_9());
|
|
159
|
+
this.g8c_1 = option(this, ['-c', '--config'], 'Config file name').e83(this, config$factory_9());
|
|
181
160
|
}
|
|
182
|
-
protoOf(PullDictionaries).
|
|
183
|
-
return this.
|
|
161
|
+
protoOf(PullDictionaries).c42 = function () {
|
|
162
|
+
return this.g8c_1.u82(this, config$factory_10());
|
|
184
163
|
};
|
|
185
|
-
protoOf(PullDictionaries).
|
|
186
|
-
|
|
164
|
+
protoOf(PullDictionaries).cs = function () {
|
|
165
|
+
CommandExecutor_getInstance().u57(this.c42());
|
|
187
166
|
};
|
|
188
|
-
|
|
189
|
-
|
|
167
|
+
function Migrator() {
|
|
168
|
+
CliktCommand.call(this, 'Migrate');
|
|
169
|
+
}
|
|
170
|
+
protoOf(Migrator).cs = function () {
|
|
171
|
+
CommandExecutor_getInstance().y57();
|
|
190
172
|
};
|
|
173
|
+
function workingDir$factory() {
|
|
174
|
+
return getPropertyCallableRef('workingDir', 1, KProperty1, function (receiver) {
|
|
175
|
+
return receiver.h87();
|
|
176
|
+
}, null);
|
|
177
|
+
}
|
|
178
|
+
function workingDir$factory_0() {
|
|
179
|
+
return getPropertyCallableRef('workingDir', 1, KProperty1, function (receiver) {
|
|
180
|
+
return receiver.h87();
|
|
181
|
+
}, null);
|
|
182
|
+
}
|
|
191
183
|
function email$factory() {
|
|
192
184
|
return getPropertyCallableRef('email', 1, KProperty1, function (receiver) {
|
|
193
|
-
return receiver.
|
|
185
|
+
return receiver.d88();
|
|
194
186
|
}, null);
|
|
195
187
|
}
|
|
196
188
|
function password$factory() {
|
|
197
189
|
return getPropertyCallableRef('password', 1, KProperty1, function (receiver) {
|
|
198
|
-
return receiver.
|
|
190
|
+
return receiver.y26();
|
|
199
191
|
}, null);
|
|
200
192
|
}
|
|
201
193
|
function url$factory() {
|
|
202
194
|
return getPropertyCallableRef('url', 1, KProperty1, function (receiver) {
|
|
203
|
-
return receiver.
|
|
195
|
+
return receiver.f3n();
|
|
204
196
|
}, null);
|
|
205
197
|
}
|
|
206
198
|
function config$factory() {
|
|
207
199
|
return getPropertyCallableRef('config', 1, KProperty1, function (receiver) {
|
|
208
|
-
return receiver.
|
|
209
|
-
}, null);
|
|
210
|
-
}
|
|
211
|
-
function cwd$factory() {
|
|
212
|
-
return getPropertyCallableRef('cwd', 1, KProperty1, function (receiver) {
|
|
213
|
-
return receiver.o61();
|
|
200
|
+
return receiver.c42();
|
|
214
201
|
}, null);
|
|
215
202
|
}
|
|
216
203
|
function email$factory_0() {
|
|
217
204
|
return getPropertyCallableRef('email', 1, KProperty1, function (receiver) {
|
|
218
|
-
return receiver.
|
|
205
|
+
return receiver.d88();
|
|
219
206
|
}, null);
|
|
220
207
|
}
|
|
221
208
|
function password$factory_0() {
|
|
222
209
|
return getPropertyCallableRef('password', 1, KProperty1, function (receiver) {
|
|
223
|
-
return receiver.
|
|
210
|
+
return receiver.y26();
|
|
224
211
|
}, null);
|
|
225
212
|
}
|
|
226
213
|
function url$factory_0() {
|
|
227
214
|
return getPropertyCallableRef('url', 1, KProperty1, function (receiver) {
|
|
228
|
-
return receiver.
|
|
215
|
+
return receiver.f3n();
|
|
229
216
|
}, null);
|
|
230
217
|
}
|
|
231
218
|
function config$factory_0() {
|
|
232
219
|
return getPropertyCallableRef('config', 1, KProperty1, function (receiver) {
|
|
233
|
-
return receiver.
|
|
234
|
-
}, null);
|
|
235
|
-
}
|
|
236
|
-
function cwd$factory_0() {
|
|
237
|
-
return getPropertyCallableRef('cwd', 1, KProperty1, function (receiver) {
|
|
238
|
-
return receiver.o61();
|
|
220
|
+
return receiver.c42();
|
|
239
221
|
}, null);
|
|
240
222
|
}
|
|
241
223
|
function config$factory_1() {
|
|
242
224
|
return getPropertyCallableRef('config', 1, KProperty1, function (receiver) {
|
|
243
|
-
return receiver.
|
|
244
|
-
}, null);
|
|
245
|
-
}
|
|
246
|
-
function cwd$factory_1() {
|
|
247
|
-
return getPropertyCallableRef('cwd', 1, KProperty1, function (receiver) {
|
|
248
|
-
return receiver.o61();
|
|
225
|
+
return receiver.c42();
|
|
249
226
|
}, null);
|
|
250
227
|
}
|
|
251
228
|
function config$factory_2() {
|
|
252
229
|
return getPropertyCallableRef('config', 1, KProperty1, function (receiver) {
|
|
253
|
-
return receiver.
|
|
254
|
-
}, null);
|
|
255
|
-
}
|
|
256
|
-
function cwd$factory_2() {
|
|
257
|
-
return getPropertyCallableRef('cwd', 1, KProperty1, function (receiver) {
|
|
258
|
-
return receiver.o61();
|
|
230
|
+
return receiver.c42();
|
|
259
231
|
}, null);
|
|
260
232
|
}
|
|
261
233
|
function config$factory_3() {
|
|
262
234
|
return getPropertyCallableRef('config', 1, KProperty1, function (receiver) {
|
|
263
|
-
return receiver.
|
|
264
|
-
}, null);
|
|
265
|
-
}
|
|
266
|
-
function cwd$factory_3() {
|
|
267
|
-
return getPropertyCallableRef('cwd', 1, KProperty1, function (receiver) {
|
|
268
|
-
return receiver.o61();
|
|
235
|
+
return receiver.c42();
|
|
269
236
|
}, null);
|
|
270
237
|
}
|
|
271
238
|
function config$factory_4() {
|
|
272
239
|
return getPropertyCallableRef('config', 1, KProperty1, function (receiver) {
|
|
273
|
-
return receiver.
|
|
274
|
-
}, null);
|
|
275
|
-
}
|
|
276
|
-
function cwd$factory_4() {
|
|
277
|
-
return getPropertyCallableRef('cwd', 1, KProperty1, function (receiver) {
|
|
278
|
-
return receiver.o61();
|
|
240
|
+
return receiver.c42();
|
|
279
241
|
}, null);
|
|
280
242
|
}
|
|
281
243
|
function config$factory_5() {
|
|
282
244
|
return getPropertyCallableRef('config', 1, KProperty1, function (receiver) {
|
|
283
|
-
return receiver.
|
|
284
|
-
}, null);
|
|
285
|
-
}
|
|
286
|
-
function cwd$factory_5() {
|
|
287
|
-
return getPropertyCallableRef('cwd', 1, KProperty1, function (receiver) {
|
|
288
|
-
return receiver.o61();
|
|
289
|
-
}, null);
|
|
290
|
-
}
|
|
291
|
-
function autoUpdate$factory() {
|
|
292
|
-
return getPropertyCallableRef('autoUpdate', 1, KProperty1, function (receiver) {
|
|
293
|
-
return receiver.m3g();
|
|
294
|
-
}, null);
|
|
295
|
-
}
|
|
296
|
-
function version$factory() {
|
|
297
|
-
return getPropertyCallableRef('version', 1, KProperty1, function (receiver) {
|
|
298
|
-
return receiver.r3k();
|
|
245
|
+
return receiver.c42();
|
|
299
246
|
}, null);
|
|
300
247
|
}
|
|
301
248
|
function config$factory_6() {
|
|
302
249
|
return getPropertyCallableRef('config', 1, KProperty1, function (receiver) {
|
|
303
|
-
return receiver.
|
|
304
|
-
}, null);
|
|
305
|
-
}
|
|
306
|
-
function cwd$factory_6() {
|
|
307
|
-
return getPropertyCallableRef('cwd', 1, KProperty1, function (receiver) {
|
|
308
|
-
return receiver.o61();
|
|
309
|
-
}, null);
|
|
310
|
-
}
|
|
311
|
-
function autoUpdate$factory_0() {
|
|
312
|
-
return getPropertyCallableRef('autoUpdate', 1, KProperty1, function (receiver) {
|
|
313
|
-
return receiver.m3g();
|
|
314
|
-
}, null);
|
|
315
|
-
}
|
|
316
|
-
function version$factory_0() {
|
|
317
|
-
return getPropertyCallableRef('version', 1, KProperty1, function (receiver) {
|
|
318
|
-
return receiver.r3k();
|
|
250
|
+
return receiver.c42();
|
|
319
251
|
}, null);
|
|
320
252
|
}
|
|
321
253
|
function config$factory_7() {
|
|
322
254
|
return getPropertyCallableRef('config', 1, KProperty1, function (receiver) {
|
|
323
|
-
return receiver.
|
|
324
|
-
}, null);
|
|
325
|
-
}
|
|
326
|
-
function cwd$factory_7() {
|
|
327
|
-
return getPropertyCallableRef('cwd', 1, KProperty1, function (receiver) {
|
|
328
|
-
return receiver.o61();
|
|
255
|
+
return receiver.c42();
|
|
329
256
|
}, null);
|
|
330
257
|
}
|
|
331
258
|
function config$factory_8() {
|
|
332
259
|
return getPropertyCallableRef('config', 1, KProperty1, function (receiver) {
|
|
333
|
-
return receiver.
|
|
334
|
-
}, null);
|
|
335
|
-
}
|
|
336
|
-
function cwd$factory_8() {
|
|
337
|
-
return getPropertyCallableRef('cwd', 1, KProperty1, function (receiver) {
|
|
338
|
-
return receiver.o61();
|
|
260
|
+
return receiver.c42();
|
|
339
261
|
}, null);
|
|
340
262
|
}
|
|
341
263
|
function config$factory_9() {
|
|
342
264
|
return getPropertyCallableRef('config', 1, KProperty1, function (receiver) {
|
|
343
|
-
return receiver.
|
|
344
|
-
}, null);
|
|
345
|
-
}
|
|
346
|
-
function cwd$factory_9() {
|
|
347
|
-
return getPropertyCallableRef('cwd', 1, KProperty1, function (receiver) {
|
|
348
|
-
return receiver.o61();
|
|
265
|
+
return receiver.c42();
|
|
349
266
|
}, null);
|
|
350
267
|
}
|
|
351
268
|
function config$factory_10() {
|
|
352
269
|
return getPropertyCallableRef('config', 1, KProperty1, function (receiver) {
|
|
353
|
-
return receiver.
|
|
354
|
-
}, null);
|
|
355
|
-
}
|
|
356
|
-
function cwd$factory_10() {
|
|
357
|
-
return getPropertyCallableRef('cwd', 1, KProperty1, function (receiver) {
|
|
358
|
-
return receiver.o61();
|
|
270
|
+
return receiver.c42();
|
|
359
271
|
}, null);
|
|
360
272
|
}
|
|
361
273
|
function main(args) {
|
|
@@ -363,26 +275,30 @@
|
|
|
363
275
|
var argv = (!(tmp == null) ? isArray(tmp) : false) ? tmp : THROW_CCE();
|
|
364
276
|
println(split(argv[0], [' ']));
|
|
365
277
|
try {
|
|
366
|
-
subcommands(new Mrsc(), [new Auth(), new Test(), new Prepare(), new Export(), new Upload(), new Version(), new PullDictionaries()]).
|
|
278
|
+
subcommands(new Mrsc(), [new WorkingDir(), new Auth(), new Test(), new Prepare(), new Export(), new Upload(), new Version(), new PullDictionaries(), new Migrator()]).g7u(split(argv[0], [' ']));
|
|
367
279
|
} catch ($p) {
|
|
368
280
|
if ($p instanceof Error) {
|
|
369
281
|
var e = $p;
|
|
370
|
-
var tmp_0 = subcommands(new Mrsc(), [new Auth(), new Test(), new Prepare(), new Export(), new Upload(), new Version(), new PullDictionaries()]);
|
|
282
|
+
var tmp_0 = subcommands(new Mrsc(), [new WorkingDir(), new Auth(), new Test(), new Prepare(), new Export(), new Upload(), new Version(), new PullDictionaries(), new Migrator()]);
|
|
371
283
|
// Inline function 'kotlin.arrayOf' call
|
|
372
284
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
373
285
|
// Inline function 'kotlin.js.asDynamic' call
|
|
374
286
|
var tmp$ret$2 = ['--help'];
|
|
375
|
-
tmp_0.
|
|
287
|
+
tmp_0.h7u(tmp$ret$2);
|
|
376
288
|
} else {
|
|
377
289
|
throw $p;
|
|
378
290
|
}
|
|
379
291
|
}
|
|
380
292
|
}
|
|
293
|
+
function mainWrapper() {
|
|
294
|
+
main([]);
|
|
295
|
+
}
|
|
381
296
|
//region block: exports
|
|
297
|
+
kotlin_kotlin.$jsExportAll$(_);
|
|
382
298
|
kotlin_com_mrs_platform_configuration_dto_dto.$jsExportAll$(_);
|
|
383
299
|
kotlin_com_mrs_platform_toolbox_library.$jsExportAll$(_);
|
|
384
300
|
//endregion
|
|
385
|
-
|
|
301
|
+
mainWrapper();
|
|
386
302
|
return _;
|
|
387
303
|
}(module.exports, require('./clikt-clikt.js'), require('./kotlin-kotlin-stdlib.js'), require('./toolbox.js'), require('./com.mrs.platform.configuration.dto.js')));
|
|
388
304
|
|
package/mrs-toolbox-cli.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../cli/src/commonMain/kotlin/mrsc.kt","../../../../../../../../../Users/runner/work/clikt/clikt/clikt/src/commonMain/kotlin/com/github/ajalt/clikt/parameters/options/OptionWithValues.kt","../../../../../cli/build/compileSync/js/main/productionLibrary/kotlin/src/kotlin/text/Strings.kt","../../../../../../../../../Users/runner/work/clikt/clikt/clikt/src/commonMain/kotlin/com/github/ajalt/clikt/parameters/options/Validate.kt","../../../../../cli/src/jsMain/kotlin/mrsc.kt","../../../../../cli/build/compileSync/js/main/productionLibrary/kotlin/js
|
|
1
|
+
{"version":3,"sources":["../../../../../cli/src/commonMain/kotlin/mrsc.kt","../../../../../../../../../Users/runner/work/clikt/clikt/clikt/src/commonMain/kotlin/com/github/ajalt/clikt/parameters/options/OptionWithValues.kt","../../../../../cli/build/compileSync/js/main/productionLibrary/kotlin/src/kotlin/text/Strings.kt","../../../../../../../../../Users/runner/work/clikt/clikt/clikt/src/commonMain/kotlin/com/github/ajalt/clikt/parameters/options/Validate.kt","../../../../../cli/src/jsMain/kotlin/mrsc.kt","../../../../../cli/build/compileSync/js/main/productionLibrary/kotlin/js/builtins/Library.kt"],"sourcesContent":[null,null,null,null,null,null],"names":["<init>","run","<get-workingDir>","Auth$email$delegate$lambda","$this$copy","it","Auth$password$delegate$lambda","<get-email>","<get-password>","<get-url>","<get-config>","workingDir$factory","get","receiver","email$factory","password$factory","url$factory","config$factory","main","args","argv","e"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eAKAA,CAAAA,EAAA;A,IAAY,wBAAoB,8BAApB,C;EAAZ,C;8BACIC,CAAAA,EAAmB;A,EAAC,C;qBAGRD,CAAAA,EAAA;A,IAAI,wBAAoB,uBAApB,C;IACE,2D;EADN,C;qCACME,CAAAA,EAAA;A,IAAA,mD;EAAS,C;oCAE3BD,CAAAA,EAAmB;A,IACC,sCAAM,U;EAC1B,C;qCAgBgCE,CAAAC,U,EAAAC,EAAAF,EAAA;A,IAAE,IAAI,QAAM,IAAN,CAAJ,C;;;;MCwB9B,IAAI,EC0P2C,mBFlRS,EEkRT,IAAS,CD1PpD,CAAJ,C,CAAY;A;wBDlCR,uB;QAU0C,UCwBlC,KAAK,SAAL,C;MAAkB,C;;IDxB8B,oB;EAAA,C;wCAAhCG,CAAAF,U,EAAAC,EAAAC,EAAA;A,IAAE,IAAI,QAAM,IAAN,CAAJ,C;;;;MCwB9B,IAAI,EC0P2C,mBFlRS,EEkRT,IAAS,CD1PpD,CAAJ,C,CAAY;A;wBD7BR,0B;QAK0C,UCwBlC,KAAK,SAAL,C;MAAkB,C;;IDxB8B,oB;EAAA,C;eAbpEN,CAAAA,EAAA;A,IAAY,wBAAoB,gBAApB,C;cACK,I;;iBGNoE,OAAnD,aAAO,OAAM,SAAN,CAAP,EAA+B,kBAA/B,CAAmD,C;gBAYrE,Y;gBAAgB,Y;gBAAe,Y;IHN9B,YGMN,gCAAkD,0BAAlD,CHNM,2B;gBAKG,I;;iBGFR,OAH0C,aAAO,O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T,C;+BAAuB;A,YAAdC,M;oBACE,YAAP,UAAO,EAAY,mBAAc,UAAd,EAAsB,UAAtB,EAA8B,aAA9B,EAAyC,YAAzC,EAAmD,YAAnD,EAA6D,aAA7D,EAAwE,sBAAxE,EAA4F,cAA5F,CAAZ,C;;;;wBCQ4D,U;QDP9D,UAAK,SAAL,C;MACT,C;;;;EACJ,C;;;;;;;;;;;;"}
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mrs-toolbox-cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.129",
|
|
4
4
|
"main": "mrs-toolbox-cli.js",
|
|
5
5
|
"types": "mrs-toolbox-cli.d.ts",
|
|
6
6
|
"devDependencies": {
|
|
7
|
-
"typescript": "5.
|
|
7
|
+
"typescript": "5.4.3",
|
|
8
8
|
"source-map-support": "0.5.21"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
package/static/demo.test.ts.txt
CHANGED
|
@@ -10,7 +10,7 @@ import { demoHook } from './hook'; //path to your hook.ts file (e.g. src/strapi-
|
|
|
10
10
|
|
|
11
11
|
before() { //parsing input and output object from files
|
|
12
12
|
this.SUT = JSON.parse(fs.readFileSync("./demo/in.json", "utf8"));
|
|
13
|
-
this.expected = JSON.parse(fs.readFileSync("./demo
|
|
13
|
+
this.expected = JSON.parse(fs.readFileSync("./demo/.out.json", "utf8"));
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
@test 'updatable field should change'() { //test case
|