mrs-toolbox-cli 0.0.136 → 0.0.137
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/clikt-clikt-mordant.js +17 -17
- package/clikt-clikt.js +1257 -1257
- package/colormath-root-colormath.js +430 -430
- package/kotlin-kotlin-stdlib.js +14 -14
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js +1 -1
- package/mordant-mordant.js +561 -561
- package/mrs-toolbox-cli.d.ts +26 -0
- package/mrs-toolbox-cli.js +176 -176
- package/package.json +1 -1
- package/toolbox.js +1566 -1223
- package/toolbox.js.map +1 -1
package/clikt-clikt-mordant.js
CHANGED
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
// Inline function 'kotlin.contracts.contract' call
|
|
53
53
|
// Inline function 'com.github.ajalt.clikt.core.<get-terminal>.<anonymous>' call
|
|
54
54
|
// Inline function 'kotlin.collections.set' call
|
|
55
|
-
var this_1 = last(selfAndAncestors(_this__u8e3s4)).
|
|
55
|
+
var this_1 = last(selfAndAncestors(_this__u8e3s4)).x6t_1;
|
|
56
56
|
var key_0 = 'mordant_terminal';
|
|
57
57
|
this_1.o2(key_0, this_0);
|
|
58
58
|
tmp_0 = this_0;
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
}
|
|
64
64
|
function _get_terminal_$lambda_5keric($key) {
|
|
65
65
|
return function (it) {
|
|
66
|
-
var tmp = it.
|
|
66
|
+
var tmp = it.x6t_1.l2($key);
|
|
67
67
|
return tmp instanceof Terminal ? tmp : null;
|
|
68
68
|
};
|
|
69
69
|
}
|
|
@@ -117,28 +117,28 @@
|
|
|
117
117
|
return tmp;
|
|
118
118
|
}
|
|
119
119
|
function prompt$1$builder$1$1($it, $this_transformAll, $default, $showDefault, $hideInput, $promptSuffix, $this_prompt) {
|
|
120
|
-
this.
|
|
121
|
-
this.
|
|
120
|
+
this.k7m_1 = $this_transformAll;
|
|
121
|
+
this.l7m_1 = $this_prompt;
|
|
122
122
|
Prompt.call(this, $it, get_terminal_0($this_transformAll), $default, $showDefault, VOID, $hideInput, VOID, $promptSuffix);
|
|
123
123
|
}
|
|
124
|
-
protoOf(prompt$1$builder$1$1).
|
|
125
|
-
var ctx = new OptionCallTransformContext('', this.
|
|
124
|
+
protoOf(prompt$1$builder$1$1).m7j = function (input) {
|
|
125
|
+
var ctx = new OptionCallTransformContext('', this.k7m_1, this.k7m_1.t6u_1);
|
|
126
126
|
try {
|
|
127
|
-
var v = this.
|
|
128
|
-
var tmp = this.
|
|
127
|
+
var v = this.l7m_1.t74()(ctx, listOf(this.l7m_1.r73()(ctx, input)));
|
|
128
|
+
var tmp = this.k7m_1.s6u_1;
|
|
129
129
|
var tmp4_safe_receiver = isInterface(tmp, OptionWithValues) ? tmp : null;
|
|
130
|
-
var validator = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.
|
|
130
|
+
var validator = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.f75();
|
|
131
131
|
if (validator == null)
|
|
132
132
|
null;
|
|
133
133
|
else
|
|
134
|
-
validator(this.
|
|
134
|
+
validator(this.k7m_1, v);
|
|
135
135
|
return new Valid(v);
|
|
136
136
|
} catch ($p) {
|
|
137
137
|
if ($p instanceof UsageError) {
|
|
138
138
|
var e = $p;
|
|
139
139
|
var tmp0_elvis_lhs = e.r9();
|
|
140
|
-
e.
|
|
141
|
-
return new Invalid(e.
|
|
140
|
+
e.c6x(tmp0_elvis_lhs == null ? this.k7m_1.t6u_1 : tmp0_elvis_lhs);
|
|
141
|
+
return new Invalid(e.b6x(this.k7m_1.t6u_1.v6t_1, Plain_instance));
|
|
142
142
|
} else {
|
|
143
143
|
throw $p;
|
|
144
144
|
}
|
|
@@ -157,7 +157,7 @@
|
|
|
157
157
|
var tmp$ret$0;
|
|
158
158
|
$l$block_0: {
|
|
159
159
|
// Inline function 'kotlin.collections.maxByOrNull' call
|
|
160
|
-
var iterator = $this$transformAll.
|
|
160
|
+
var iterator = $this$transformAll.g6t().k();
|
|
161
161
|
if (!iterator.l()) {
|
|
162
162
|
tmp$ret$0 = null;
|
|
163
163
|
break $l$block_0;
|
|
@@ -212,15 +212,15 @@
|
|
|
212
212
|
return provided;
|
|
213
213
|
}
|
|
214
214
|
var tmp_3;
|
|
215
|
-
if ($this$transformAll.
|
|
215
|
+
if ($this$transformAll.t6u_1.b6u_1) {
|
|
216
216
|
throw new Abort();
|
|
217
217
|
}
|
|
218
218
|
var builder = prompt$lambda$lambda($this$transformAll, $default, $showDefault, $hideInput, $promptSuffix, $this_prompt);
|
|
219
219
|
var tmp_4;
|
|
220
220
|
if ($requireConfirmation) {
|
|
221
|
-
tmp_4 = Companion_instance.
|
|
221
|
+
tmp_4 = Companion_instance.z7j(promptText, $confirmationPrompt, $confirmationMismatchMessage, builder).t7j();
|
|
222
222
|
} else {
|
|
223
|
-
tmp_4 = builder(promptText).
|
|
223
|
+
tmp_4 = builder(promptText).t7j();
|
|
224
224
|
}
|
|
225
225
|
var result = tmp_4;
|
|
226
226
|
var tmp_5;
|
|
@@ -233,7 +233,7 @@
|
|
|
233
233
|
};
|
|
234
234
|
}
|
|
235
235
|
function get_terminal_0(_this__u8e3s4) {
|
|
236
|
-
return get_terminal(_this__u8e3s4.
|
|
236
|
+
return get_terminal(_this__u8e3s4.t6u_1);
|
|
237
237
|
}
|
|
238
238
|
//region block: exports
|
|
239
239
|
_.$_$ = _.$_$ || {};
|