mrs-toolbox-cli 0.0.80 → 0.0.82
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 +2 -2
- package/88b0986a7186d029-atomicfu-js-ir.js.hash +1 -1
- package/clikt-clikt-js-ir.js +1005 -1005
- package/clikt-clikt-js-ir.js.hash +1 -1
- package/com.mrs.platform.configuration.dto.js +2861 -2335
- package/com.mrs.platform.configuration.dto.js.hash +1 -1
- package/com.mrs.platform.configuration.dto.js.map +1 -1
- package/com.mrs.platform.configuration.dto.js.map.hash +1 -1
- package/kotlin-kotlin-stdlib-js-ir.js +86 -68
- package/kotlin-kotlin-stdlib-js-ir.js.hash +1 -1
- package/kotlin-kotlin-stdlib-js-ir.js.map +1 -1
- package/kotlin-kotlin-stdlib-js-ir.js.map.hash +1 -1
- package/kotlin-logging-js-ir.js +45 -45
- package/kotlin-logging-js-ir.js.hash +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core-js-ir.js +27 -27
- package/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.hash +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json-js-ir.js +27 -27
- package/kotlinx-serialization-kotlinx-serialization-json-js-ir.js.hash +1 -1
- package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js +18 -18
- package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js.hash +1 -1
- package/ktor-ktor-client-content-negotiation.js +5 -5
- package/ktor-ktor-client-content-negotiation.js.hash +1 -1
- package/ktor-ktor-client-core.js +17 -17
- package/ktor-ktor-client-core.js.hash +1 -1
- package/ktor-ktor-events.js +3 -3
- package/ktor-ktor-events.js.hash +1 -1
- package/ktor-ktor-http.js +16 -16
- package/ktor-ktor-http.js.hash +1 -1
- package/ktor-ktor-io.js +7 -7
- package/ktor-ktor-io.js.hash +1 -1
- package/ktor-ktor-serialization-kotlinx-json.js +1 -1
- package/ktor-ktor-serialization-kotlinx-json.js.hash +1 -1
- package/ktor-ktor-serialization-kotlinx.js +2 -2
- package/ktor-ktor-serialization-kotlinx.js.hash +1 -1
- package/ktor-ktor-serialization.js +4 -4
- package/ktor-ktor-serialization.js.hash +1 -1
- package/ktor-ktor-utils.js +11 -11
- package/ktor-ktor-utils.js.hash +1 -1
- package/ktor-ktor-websockets.js +4 -4
- package/ktor-ktor-websockets.js.hash +1 -1
- package/mrs-toolbox-cli.d.ts +98 -32
- package/mrs-toolbox-cli.d.ts.hash +1 -1
- package/mrs-toolbox-cli.js +70 -70
- package/mrs-toolbox-cli.js.hash +1 -1
- package/package.json +1 -1
- package/toolbox.js +3515 -3064
- package/toolbox.js.hash +1 -1
- package/toolbox.js.map +1 -1
- package/toolbox.js.map.hash +1 -1
package/mrs-toolbox-cli.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
var CliktCommand = kotlin_com_github_ajalt_clikt_clikt.$_$.a;
|
|
6
6
|
var protoOf = kotlin_kotlin.$_$.wa;
|
|
7
7
|
var classMeta = kotlin_kotlin.$_$.q9;
|
|
8
|
-
var VOID = kotlin_kotlin.$_$.
|
|
8
|
+
var VOID = kotlin_kotlin.$_$.xf;
|
|
9
9
|
var setMetadataFor = kotlin_kotlin.$_$.xa;
|
|
10
10
|
var charSequenceLength = kotlin_kotlin.$_$.o9;
|
|
11
11
|
var Unit_getInstance = kotlin_kotlin.$_$.w4;
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
var println = kotlin_kotlin.$_$.g9;
|
|
22
22
|
var KProperty1 = kotlin_kotlin.$_$.nb;
|
|
23
23
|
var getPropertyCallableRef = kotlin_kotlin.$_$.w9;
|
|
24
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
24
|
+
var THROW_CCE = kotlin_kotlin.$_$.te;
|
|
25
25
|
var isArray = kotlin_kotlin.$_$.aa;
|
|
26
26
|
var split = kotlin_kotlin.$_$.cd;
|
|
27
27
|
var subcommands = kotlin_com_github_ajalt_clikt_clikt.$_$.b;
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
var tmp$ret$1;
|
|
52
52
|
// Inline function 'Auth.email$delegate.<anonymous>.<anonymous>' call
|
|
53
53
|
tmp$ret$1 = "Email can't be empty!";
|
|
54
|
-
$this$validate.
|
|
54
|
+
$this$validate.n57(tmp$ret$1);
|
|
55
55
|
}
|
|
56
56
|
return Unit_getInstance();
|
|
57
57
|
}
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
var tmp$ret$1;
|
|
66
66
|
// Inline function 'Auth.password$delegate.<anonymous>.<anonymous>' call
|
|
67
67
|
tmp$ret$1 = "Password can't be empty!";
|
|
68
|
-
$this$validate.
|
|
68
|
+
$this$validate.n57(tmp$ret$1);
|
|
69
69
|
}
|
|
70
70
|
return Unit_getInstance();
|
|
71
71
|
}
|
|
@@ -73,95 +73,95 @@
|
|
|
73
73
|
CliktCommand.call(this, 'Auth to strapi');
|
|
74
74
|
var tmp = this;
|
|
75
75
|
var tmp_0 = prompt(option(this, ['-e', '--email'], 'Email for log in'));
|
|
76
|
-
tmp.
|
|
76
|
+
tmp.m68_1 = validate(tmp_0, Auth$email$delegate$lambda).k56(this, email$factory());
|
|
77
77
|
var tmp_1 = this;
|
|
78
78
|
var tmp_2 = prompt(option(this, ['-p', '--password'], 'Password for log in'));
|
|
79
|
-
tmp_1.
|
|
80
|
-
this.
|
|
81
|
-
this.
|
|
82
|
-
this.
|
|
79
|
+
tmp_1.n68_1 = validate(tmp_2, Auth$password$delegate$lambda).k56(this, password$factory());
|
|
80
|
+
this.o68_1 = optional(argument(this, VOID, 'Url to strapi server')).a55(this, url$factory());
|
|
81
|
+
this.p68_1 = option(this, ['-c', '--config'], 'Config file name').k56(this, config$factory());
|
|
82
|
+
this.q68_1 = default_0(option(this, [], 'Current working directory', VOID, true), FileManager_getInstance().j64()).k56(this, cwd$factory());
|
|
83
83
|
}
|
|
84
|
-
protoOf(Auth).
|
|
85
|
-
return this.
|
|
84
|
+
protoOf(Auth).r68 = function () {
|
|
85
|
+
return this.m68_1.z54(this, email$factory_0());
|
|
86
86
|
};
|
|
87
87
|
protoOf(Auth).o20 = function () {
|
|
88
|
-
return this.
|
|
88
|
+
return this.n68_1.z54(this, password$factory_0());
|
|
89
89
|
};
|
|
90
90
|
protoOf(Auth).w29 = function () {
|
|
91
|
-
return this.
|
|
91
|
+
return this.o68_1.z54(this, url$factory_0());
|
|
92
92
|
};
|
|
93
93
|
protoOf(Auth).x27 = function () {
|
|
94
|
-
return this.
|
|
94
|
+
return this.p68_1.z54(this, config$factory_0());
|
|
95
95
|
};
|
|
96
|
-
protoOf(Auth).
|
|
97
|
-
return this.
|
|
96
|
+
protoOf(Auth).c65 = function () {
|
|
97
|
+
return this.q68_1.z54(this, cwd$factory_0());
|
|
98
98
|
};
|
|
99
99
|
protoOf(Auth).wq = function () {
|
|
100
|
-
CommandExecutor_getInstance().auth(this.
|
|
100
|
+
CommandExecutor_getInstance().auth(this.r68(), this.o20(), this.w29(), this.c65(), this.x27());
|
|
101
101
|
};
|
|
102
102
|
function Test() {
|
|
103
103
|
CliktCommand.call(this, 'Test hooks');
|
|
104
|
-
this.
|
|
105
|
-
this.
|
|
104
|
+
this.j69_1 = option(this, ['-c', '--config'], 'Config file name').k56(this, config$factory_1());
|
|
105
|
+
this.k69_1 = default_0(option(this, [], 'Current working directory', VOID, true), FileManager_getInstance().j64()).k56(this, cwd$factory_1());
|
|
106
106
|
}
|
|
107
107
|
protoOf(Test).x27 = function () {
|
|
108
|
-
return this.
|
|
108
|
+
return this.j69_1.z54(this, config$factory_2());
|
|
109
109
|
};
|
|
110
|
-
protoOf(Test).
|
|
111
|
-
return this.
|
|
110
|
+
protoOf(Test).c65 = function () {
|
|
111
|
+
return this.k69_1.z54(this, cwd$factory_2());
|
|
112
112
|
};
|
|
113
113
|
protoOf(Test).wq = function () {
|
|
114
|
-
CommandExecutor_getInstance().test(this.
|
|
114
|
+
CommandExecutor_getInstance().test(this.c65(), this.x27());
|
|
115
115
|
};
|
|
116
116
|
function Prepare() {
|
|
117
117
|
CliktCommand.call(this, 'Prepare workspace');
|
|
118
|
-
this.
|
|
119
|
-
this.
|
|
118
|
+
this.c6a_1 = option(this, ['-c', '--config'], 'Config file name').k56(this, config$factory_3());
|
|
119
|
+
this.d6a_1 = default_0(option(this, [], 'Current working directory', VOID, true), FileManager_getInstance().j64()).k56(this, cwd$factory_3());
|
|
120
120
|
}
|
|
121
121
|
protoOf(Prepare).x27 = function () {
|
|
122
|
-
return this.
|
|
122
|
+
return this.c6a_1.z54(this, config$factory_4());
|
|
123
123
|
};
|
|
124
|
-
protoOf(Prepare).
|
|
125
|
-
return this.
|
|
124
|
+
protoOf(Prepare).c65 = function () {
|
|
125
|
+
return this.d6a_1.z54(this, cwd$factory_4());
|
|
126
126
|
};
|
|
127
127
|
protoOf(Prepare).wq = function () {
|
|
128
|
-
CommandExecutor_getInstance().prepare(this.
|
|
128
|
+
CommandExecutor_getInstance().prepare(this.c65(), this.x27());
|
|
129
129
|
};
|
|
130
130
|
function Export() {
|
|
131
131
|
CliktCommand.call(this, 'Create export config for s3');
|
|
132
|
-
this.
|
|
133
|
-
this.
|
|
134
|
-
this.
|
|
135
|
-
this.
|
|
132
|
+
this.v6a_1 = option(this, ['-c', '--config'], 'Config file name').k56(this, config$factory_5());
|
|
133
|
+
this.w6a_1 = default_0(option(this, [], 'Current working directory', VOID, true), FileManager_getInstance().j64()).k56(this, cwd$factory_5());
|
|
134
|
+
this.x6a_1 = flag(option(this, ['--autoUpdate'], 'Autoupdate config in s3 storage', VOID, true), [], false).k56(this, autoUpdate$factory());
|
|
135
|
+
this.y6a_1 = option(this, ['-v', '--version'], 'Version for build').k56(this, version$factory());
|
|
136
136
|
}
|
|
137
137
|
protoOf(Export).x27 = function () {
|
|
138
|
-
return this.
|
|
138
|
+
return this.v6a_1.z54(this, config$factory_6());
|
|
139
139
|
};
|
|
140
|
-
protoOf(Export).
|
|
141
|
-
return this.
|
|
140
|
+
protoOf(Export).c65 = function () {
|
|
141
|
+
return this.w6a_1.z54(this, cwd$factory_6());
|
|
142
142
|
};
|
|
143
|
-
protoOf(Export).
|
|
144
|
-
return this.
|
|
143
|
+
protoOf(Export).r4h = function () {
|
|
144
|
+
return this.x6a_1.z54(this, autoUpdate$factory_0());
|
|
145
145
|
};
|
|
146
146
|
protoOf(Export).d2b = function () {
|
|
147
|
-
return this.
|
|
147
|
+
return this.y6a_1.z54(this, version$factory_0());
|
|
148
148
|
};
|
|
149
149
|
protoOf(Export).wq = function () {
|
|
150
|
-
CommandExecutor_getInstance().export(this.
|
|
150
|
+
CommandExecutor_getInstance().export(this.r4h(), this.c65(), this.x27(), this.d2b());
|
|
151
151
|
};
|
|
152
152
|
function Upload() {
|
|
153
153
|
CliktCommand.call(this, 'Upload exportConfig to s3');
|
|
154
|
-
this.
|
|
155
|
-
this.
|
|
154
|
+
this.q6b_1 = option(this, ['-c', '--config'], 'Config file name').k56(this, config$factory_7());
|
|
155
|
+
this.r6b_1 = default_0(option(this, [], 'Current working directory', VOID, true), FileManager_getInstance().j64()).k56(this, cwd$factory_7());
|
|
156
156
|
}
|
|
157
157
|
protoOf(Upload).x27 = function () {
|
|
158
|
-
return this.
|
|
158
|
+
return this.q6b_1.z54(this, config$factory_8());
|
|
159
159
|
};
|
|
160
|
-
protoOf(Upload).
|
|
161
|
-
return this.
|
|
160
|
+
protoOf(Upload).c65 = function () {
|
|
161
|
+
return this.r6b_1.z54(this, cwd$factory_8());
|
|
162
162
|
};
|
|
163
163
|
protoOf(Upload).wq = function () {
|
|
164
|
-
CommandExecutor_getInstance().upload(this.
|
|
164
|
+
CommandExecutor_getInstance().upload(this.c65(), this.x27());
|
|
165
165
|
};
|
|
166
166
|
function Version() {
|
|
167
167
|
CliktCommand.call(this, 'Get toolbox version');
|
|
@@ -171,21 +171,21 @@
|
|
|
171
171
|
};
|
|
172
172
|
function PullReferences() {
|
|
173
173
|
CliktCommand.call(this, 'Pull references from Directus');
|
|
174
|
-
this.
|
|
175
|
-
this.
|
|
174
|
+
this.a6d_1 = option(this, ['-c', '--config'], 'Config file name').k56(this, config$factory_9());
|
|
175
|
+
this.b6d_1 = default_0(option(this, [], 'Current working directory', VOID, true), FileManager_getInstance().j64()).k56(this, cwd$factory_9());
|
|
176
176
|
}
|
|
177
177
|
protoOf(PullReferences).x27 = function () {
|
|
178
|
-
return this.
|
|
178
|
+
return this.a6d_1.z54(this, config$factory_10());
|
|
179
179
|
};
|
|
180
|
-
protoOf(PullReferences).
|
|
181
|
-
return this.
|
|
180
|
+
protoOf(PullReferences).c65 = function () {
|
|
181
|
+
return this.b6d_1.z54(this, cwd$factory_10());
|
|
182
182
|
};
|
|
183
183
|
protoOf(PullReferences).wq = function () {
|
|
184
|
-
CommandExecutor_getInstance().pullReferences(this.
|
|
184
|
+
CommandExecutor_getInstance().pullReferences(this.c65(), this.x27());
|
|
185
185
|
};
|
|
186
186
|
function email$factory() {
|
|
187
187
|
return getPropertyCallableRef('email', 1, KProperty1, function (receiver) {
|
|
188
|
-
return receiver.
|
|
188
|
+
return receiver.r68();
|
|
189
189
|
}, null);
|
|
190
190
|
}
|
|
191
191
|
function password$factory() {
|
|
@@ -205,12 +205,12 @@
|
|
|
205
205
|
}
|
|
206
206
|
function cwd$factory() {
|
|
207
207
|
return getPropertyCallableRef('cwd', 1, KProperty1, function (receiver) {
|
|
208
|
-
return receiver.
|
|
208
|
+
return receiver.c65();
|
|
209
209
|
}, null);
|
|
210
210
|
}
|
|
211
211
|
function email$factory_0() {
|
|
212
212
|
return getPropertyCallableRef('email', 1, KProperty1, function (receiver) {
|
|
213
|
-
return receiver.
|
|
213
|
+
return receiver.r68();
|
|
214
214
|
}, null);
|
|
215
215
|
}
|
|
216
216
|
function password$factory_0() {
|
|
@@ -230,7 +230,7 @@
|
|
|
230
230
|
}
|
|
231
231
|
function cwd$factory_0() {
|
|
232
232
|
return getPropertyCallableRef('cwd', 1, KProperty1, function (receiver) {
|
|
233
|
-
return receiver.
|
|
233
|
+
return receiver.c65();
|
|
234
234
|
}, null);
|
|
235
235
|
}
|
|
236
236
|
function config$factory_1() {
|
|
@@ -240,7 +240,7 @@
|
|
|
240
240
|
}
|
|
241
241
|
function cwd$factory_1() {
|
|
242
242
|
return getPropertyCallableRef('cwd', 1, KProperty1, function (receiver) {
|
|
243
|
-
return receiver.
|
|
243
|
+
return receiver.c65();
|
|
244
244
|
}, null);
|
|
245
245
|
}
|
|
246
246
|
function config$factory_2() {
|
|
@@ -250,7 +250,7 @@
|
|
|
250
250
|
}
|
|
251
251
|
function cwd$factory_2() {
|
|
252
252
|
return getPropertyCallableRef('cwd', 1, KProperty1, function (receiver) {
|
|
253
|
-
return receiver.
|
|
253
|
+
return receiver.c65();
|
|
254
254
|
}, null);
|
|
255
255
|
}
|
|
256
256
|
function config$factory_3() {
|
|
@@ -260,7 +260,7 @@
|
|
|
260
260
|
}
|
|
261
261
|
function cwd$factory_3() {
|
|
262
262
|
return getPropertyCallableRef('cwd', 1, KProperty1, function (receiver) {
|
|
263
|
-
return receiver.
|
|
263
|
+
return receiver.c65();
|
|
264
264
|
}, null);
|
|
265
265
|
}
|
|
266
266
|
function config$factory_4() {
|
|
@@ -270,7 +270,7 @@
|
|
|
270
270
|
}
|
|
271
271
|
function cwd$factory_4() {
|
|
272
272
|
return getPropertyCallableRef('cwd', 1, KProperty1, function (receiver) {
|
|
273
|
-
return receiver.
|
|
273
|
+
return receiver.c65();
|
|
274
274
|
}, null);
|
|
275
275
|
}
|
|
276
276
|
function config$factory_5() {
|
|
@@ -280,12 +280,12 @@
|
|
|
280
280
|
}
|
|
281
281
|
function cwd$factory_5() {
|
|
282
282
|
return getPropertyCallableRef('cwd', 1, KProperty1, function (receiver) {
|
|
283
|
-
return receiver.
|
|
283
|
+
return receiver.c65();
|
|
284
284
|
}, null);
|
|
285
285
|
}
|
|
286
286
|
function autoUpdate$factory() {
|
|
287
287
|
return getPropertyCallableRef('autoUpdate', 1, KProperty1, function (receiver) {
|
|
288
|
-
return receiver.
|
|
288
|
+
return receiver.r4h();
|
|
289
289
|
}, null);
|
|
290
290
|
}
|
|
291
291
|
function version$factory() {
|
|
@@ -300,12 +300,12 @@
|
|
|
300
300
|
}
|
|
301
301
|
function cwd$factory_6() {
|
|
302
302
|
return getPropertyCallableRef('cwd', 1, KProperty1, function (receiver) {
|
|
303
|
-
return receiver.
|
|
303
|
+
return receiver.c65();
|
|
304
304
|
}, null);
|
|
305
305
|
}
|
|
306
306
|
function autoUpdate$factory_0() {
|
|
307
307
|
return getPropertyCallableRef('autoUpdate', 1, KProperty1, function (receiver) {
|
|
308
|
-
return receiver.
|
|
308
|
+
return receiver.r4h();
|
|
309
309
|
}, null);
|
|
310
310
|
}
|
|
311
311
|
function version$factory_0() {
|
|
@@ -320,7 +320,7 @@
|
|
|
320
320
|
}
|
|
321
321
|
function cwd$factory_7() {
|
|
322
322
|
return getPropertyCallableRef('cwd', 1, KProperty1, function (receiver) {
|
|
323
|
-
return receiver.
|
|
323
|
+
return receiver.c65();
|
|
324
324
|
}, null);
|
|
325
325
|
}
|
|
326
326
|
function config$factory_8() {
|
|
@@ -330,7 +330,7 @@
|
|
|
330
330
|
}
|
|
331
331
|
function cwd$factory_8() {
|
|
332
332
|
return getPropertyCallableRef('cwd', 1, KProperty1, function (receiver) {
|
|
333
|
-
return receiver.
|
|
333
|
+
return receiver.c65();
|
|
334
334
|
}, null);
|
|
335
335
|
}
|
|
336
336
|
function config$factory_9() {
|
|
@@ -340,7 +340,7 @@
|
|
|
340
340
|
}
|
|
341
341
|
function cwd$factory_9() {
|
|
342
342
|
return getPropertyCallableRef('cwd', 1, KProperty1, function (receiver) {
|
|
343
|
-
return receiver.
|
|
343
|
+
return receiver.c65();
|
|
344
344
|
}, null);
|
|
345
345
|
}
|
|
346
346
|
function config$factory_10() {
|
|
@@ -350,7 +350,7 @@
|
|
|
350
350
|
}
|
|
351
351
|
function cwd$factory_10() {
|
|
352
352
|
return getPropertyCallableRef('cwd', 1, KProperty1, function (receiver) {
|
|
353
|
-
return receiver.
|
|
353
|
+
return receiver.c65();
|
|
354
354
|
}, null);
|
|
355
355
|
}
|
|
356
356
|
function main(args) {
|
|
@@ -358,7 +358,7 @@
|
|
|
358
358
|
var argv = (!(tmp == null) ? isArray(tmp) : false) ? tmp : THROW_CCE();
|
|
359
359
|
println(split(argv[0], [' ']));
|
|
360
360
|
try {
|
|
361
|
-
subcommands(new Mrsc(), [new Auth(), new Test(), new Prepare(), new Export(), new Upload(), new Version(), new PullReferences()]).
|
|
361
|
+
subcommands(new Mrsc(), [new Auth(), new Test(), new Prepare(), new Export(), new Upload(), new Version(), new PullReferences()]).p4x(split(argv[0], [' ']));
|
|
362
362
|
} catch ($p) {
|
|
363
363
|
if ($p instanceof Error) {
|
|
364
364
|
var e = $p;
|
|
@@ -372,7 +372,7 @@
|
|
|
372
372
|
tmp$ret$0 = ['--help'];
|
|
373
373
|
tmp$ret$1 = tmp$ret$0;
|
|
374
374
|
tmp$ret$2 = tmp$ret$1;
|
|
375
|
-
tmp_0.
|
|
375
|
+
tmp_0.f4y(tmp$ret$2);
|
|
376
376
|
} else {
|
|
377
377
|
throw $p;
|
|
378
378
|
}
|
package/mrs-toolbox-cli.js.hash
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
9450a48c02d715330b9f412141fa58c7
|