@continuous-excellence/coupling-cli 1.1.421 → 1.1.423
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/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/ConfigCommand.mjs +310 -0
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/ConfigCommand.mjs.map +1 -0
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/ConfigFileSource.mjs +27 -13
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/ConfigFileSource.mjs.map +1 -1
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/CouplingCliConfig.mjs +20 -17
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/CouplingCliConfig.mjs.map +1 -1
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/Login.mjs +9 -9
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/Main.mjs +2 -1
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/Main.mjs.map +1 -1
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/WithSdk.mjs +5 -5
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/party/BatchContribution.mjs +27 -27
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/party/Contribution.mjs +17 -17
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/party/CurrentPairs.mjs +13 -13
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/party/Party.mjs +11 -11
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/party/PartyDetails.mjs +13 -13
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/party/PartyList.mjs +7 -7
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/party/SaveContribution.mjs +42 -42
- package/kotlin/Coupling-libraries-json/com/zegreatrob/coupling/json/CouplingJsonFormat.mjs +35 -0
- package/kotlin/Coupling-libraries-json/com/zegreatrob/coupling/json/CouplingJsonFormat.mjs.map +1 -0
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/KtorSdk.mjs +2 -2
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/command/CoreSuspendingCliktCommand.mjs +4 -4
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/command/CoreSuspendingCliktCommand.mjs.map +1 -1
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/core/BaseCliktCommand.mjs +4 -4
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/core/BaseCliktCommand.mjs.map +1 -1
- package/kotlin/kotlin-kotlin-stdlib/kotlin/collections/AbstractMutableCollectionJs.mjs +1 -1
- package/kotlin/kotlin-kotlin-stdlib/kotlin/collections/Collections.mjs +2 -2
- package/kotlin/kotlin-kotlin-stdlib/kotlin/collections/HashMapEntry.mjs +2 -2
- package/kotlin/kotlin-kotlin-stdlib/kotlin/text/stringJs.mjs +6 -6
- package/kotlin/kotlin-kotlin-stdlib/kotlin/text/stringJs.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,310 @@
|
|
|
1
|
+
import { KProperty1ca4yb4wlo496 as KProperty1 } from '../../../../../kotlin-kotlin-stdlib/kotlin/reflect/KPropertyJs.mjs';
|
|
2
|
+
import { getPropertyCallableRef3hckxc0xueiaj as getPropertyCallableRef } from '../../../../../kotlin-kotlin-stdlib/kotlin/js/reflectRuntime.mjs';
|
|
3
|
+
import {
|
|
4
|
+
equals2au1ep9vhcato as equals,
|
|
5
|
+
hashCodeq5arwsb9dgti as hashCode,
|
|
6
|
+
} from '../../../../../kotlin-kotlin-stdlib/kotlin/js/coreRuntime.mjs';
|
|
7
|
+
import { FunctionAdapter3lcrrz3moet5b as FunctionAdapter } from '../../../../../kotlin-kotlin-stdlib/kotlin/js/FunctionAdapter.mjs';
|
|
8
|
+
import { isInterface3d6p8outrmvmk as isInterface } from '../../../../../kotlin-kotlin-stdlib/kotlin/js/typeCheckUtils.mjs';
|
|
9
|
+
import { ReadOnlyPropertyhimsujm8ri3k as ReadOnlyProperty } from '../../../../../kotlin-kotlin-stdlib/kotlin/properties/Interfaces.mjs';
|
|
10
|
+
import { initMetadataForClassbxx6q50dy2s7 as initMetadataForClass } from '../../../../../kotlin-kotlin-stdlib/kotlin/js/metadataUtils.mjs';
|
|
11
|
+
import { VOID3gxj6tk5isa35 as VOID } from '../../../../../kotlin-kotlin-stdlib/kotlin/js/void.mjs';
|
|
12
|
+
import { CouplingCliConfig1kcnrf90sg45f as CouplingCliConfig } from './CouplingCliConfig.mjs';
|
|
13
|
+
import { selfAndAncestors2dend8wm8aud9 as selfAndAncestors } from '../../../../../clikt-clikt/com/github/ajalt/clikt/core/Context.mjs';
|
|
14
|
+
import {
|
|
15
|
+
mapNotNull3b8ce5hky4k2l as mapNotNull,
|
|
16
|
+
firstOrNull175qkyx53x0vd as firstOrNull,
|
|
17
|
+
} from '../../../../../kotlin-kotlin-stdlib/kotlin/sequences/_Sequences.mjs';
|
|
18
|
+
import { Unit_instance28fytmsmm6r23 as Unit_instance } from '../../../../../kotlin-kotlin-stdlib/kotlin/Unit.mjs';
|
|
19
|
+
import { ConfigFileSource2vjics4mpjcwc as ConfigFileSource } from './ConfigFileSource.mjs';
|
|
20
|
+
import { PartyId3nezlril92b5k as PartyId } from '../../../../../Coupling-libraries-model/com/zegreatrob/coupling/model/party/PartyId.mjs';
|
|
21
|
+
import { Exceptiondt2hlxn7j7vw as Exception } from '../../../../../kotlin-kotlin-stdlib/kotlin/exceptions.mjs';
|
|
22
|
+
import { charSequenceLength3278n89t01tmv as charSequenceLength } from '../../../../../kotlin-kotlin-stdlib/kotlin/js/charSequenceJs.mjs';
|
|
23
|
+
import { longestName21jl89hygruqd as longestName } from '../../../../../clikt-clikt/com/github/ajalt/clikt/parameters/options/Option.mjs';
|
|
24
|
+
import { UsageError4b09h3iyb4d3 as UsageError } from '../../../../../clikt-clikt/com/github/ajalt/clikt/core/exceptions.mjs';
|
|
25
|
+
import { SuspendingCliktCommand1zyftwh5k9ke9 as SuspendingCliktCommand } from '../../../../../clikt-clikt-mordant/com/github/ajalt/clikt/command/SuspendingCliktCommand.mjs';
|
|
26
|
+
import { context2q25b9moksyfl as context } from '../../../../../clikt-clikt/com/github/ajalt/clikt/core/BaseCliktCommand.mjs';
|
|
27
|
+
import {
|
|
28
|
+
option2wnxma00ykjjp as option,
|
|
29
|
+
defaultEachProcessor22rw2lzzkc34j as defaultEachProcessor,
|
|
30
|
+
defaultAllProcessor364p7fwn7tr2z as defaultAllProcessor,
|
|
31
|
+
defaultValidator1sj61jsw6ozwy as defaultValidator,
|
|
32
|
+
} from '../../../../../clikt-clikt/com/github/ajalt/clikt/parameters/options/OptionWithValues.mjs';
|
|
33
|
+
import {
|
|
34
|
+
plus17rl43at52ays as plus,
|
|
35
|
+
arrayOf1akklvh2at202 as arrayOf,
|
|
36
|
+
} from '../../../../../kotlin-kotlin-stdlib/kotlin/Library.mjs';
|
|
37
|
+
import { Default_getInstancejkv49nkel8hp as Default_getInstance } from '../../../../../kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/Json.mjs';
|
|
38
|
+
import { getKClass3t8tygqu4lcxf as getKClass } from '../../../../../kotlin-kotlin-stdlib/kotlin/reflect/js/internal/reflection.mjs';
|
|
39
|
+
import { createKType31ecntyyaay3k as createKType } from '../../../../../kotlin-kotlin-stdlib/kotlin/reflect/js/internal/KTypeHelpers.mjs';
|
|
40
|
+
import { serializer1i4e9ym37oxmo as serializer } from '../../../../../kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/Serializers.mjs';
|
|
41
|
+
import { THROW_CCE2g6jy02ryeudk as THROW_CCE } from '../../../../../kotlin-kotlin-stdlib/kotlin/hacks.mjs';
|
|
42
|
+
import { KSerializerzf77vz1967fq as KSerializer } from '../../../../../kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/KSerializer.mjs';
|
|
43
|
+
import { writeDataToFilepwg97q1c4uym as writeDataToFile } from './Main.js.mjs';
|
|
44
|
+
//region block: imports
|
|
45
|
+
//endregion
|
|
46
|
+
//region block: pre-declaration
|
|
47
|
+
//endregion
|
|
48
|
+
function _get_partyId__g79dgw($this) {
|
|
49
|
+
var tmp = KProperty1();
|
|
50
|
+
return $this.x6u_1.fp($this, getPropertyCallableRef('partyId', 1, tmp, ConfigCommand$_get_partyId_$ref_ivxfj0_0(), null));
|
|
51
|
+
}
|
|
52
|
+
var sam$kotlin_properties_ReadOnlyProperty$0Class;
|
|
53
|
+
function sam$kotlin_properties_ReadOnlyProperty$0() {
|
|
54
|
+
if (sam$kotlin_properties_ReadOnlyProperty$0Class === VOID) {
|
|
55
|
+
class $ {
|
|
56
|
+
constructor(function_0) {
|
|
57
|
+
this.z6u_1 = function_0;
|
|
58
|
+
}
|
|
59
|
+
fp(thisRef, property) {
|
|
60
|
+
return this.z6u_1(thisRef, property);
|
|
61
|
+
}
|
|
62
|
+
h5() {
|
|
63
|
+
return this.z6u_1;
|
|
64
|
+
}
|
|
65
|
+
equals(other) {
|
|
66
|
+
var tmp;
|
|
67
|
+
if (!(other == null) ? isInterface(other, ReadOnlyProperty()) : false) {
|
|
68
|
+
var tmp_0;
|
|
69
|
+
if (!(other == null) ? isInterface(other, FunctionAdapter()) : false) {
|
|
70
|
+
tmp_0 = equals(this.h5(), other.h5());
|
|
71
|
+
} else {
|
|
72
|
+
tmp_0 = false;
|
|
73
|
+
}
|
|
74
|
+
tmp = tmp_0;
|
|
75
|
+
} else {
|
|
76
|
+
tmp = false;
|
|
77
|
+
}
|
|
78
|
+
return tmp;
|
|
79
|
+
}
|
|
80
|
+
hashCode() {
|
|
81
|
+
return hashCode(this.h5());
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
initMetadataForClass($, 'sam$kotlin_properties_ReadOnlyProperty$0', VOID, VOID, [ReadOnlyProperty(), FunctionAdapter()]);
|
|
85
|
+
sam$kotlin_properties_ReadOnlyProperty$0Class = $;
|
|
86
|
+
}
|
|
87
|
+
return sam$kotlin_properties_ReadOnlyProperty$0Class;
|
|
88
|
+
}
|
|
89
|
+
var sam$kotlin_properties_ReadOnlyProperty$0Class_0;
|
|
90
|
+
function sam$kotlin_properties_ReadOnlyProperty$0_0() {
|
|
91
|
+
if (sam$kotlin_properties_ReadOnlyProperty$0Class_0 === VOID) {
|
|
92
|
+
class $ {
|
|
93
|
+
constructor(function_0) {
|
|
94
|
+
this.a6v_1 = function_0;
|
|
95
|
+
}
|
|
96
|
+
fp(thisRef, property) {
|
|
97
|
+
return this.a6v_1(thisRef, property);
|
|
98
|
+
}
|
|
99
|
+
h5() {
|
|
100
|
+
return this.a6v_1;
|
|
101
|
+
}
|
|
102
|
+
equals(other) {
|
|
103
|
+
var tmp;
|
|
104
|
+
if (!(other == null) ? isInterface(other, ReadOnlyProperty()) : false) {
|
|
105
|
+
var tmp_0;
|
|
106
|
+
if (!(other == null) ? isInterface(other, FunctionAdapter()) : false) {
|
|
107
|
+
tmp_0 = equals(this.h5(), other.h5());
|
|
108
|
+
} else {
|
|
109
|
+
tmp_0 = false;
|
|
110
|
+
}
|
|
111
|
+
tmp = tmp_0;
|
|
112
|
+
} else {
|
|
113
|
+
tmp = false;
|
|
114
|
+
}
|
|
115
|
+
return tmp;
|
|
116
|
+
}
|
|
117
|
+
hashCode() {
|
|
118
|
+
return hashCode(this.h5());
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
initMetadataForClass($, 'sam$kotlin_properties_ReadOnlyProperty$0', VOID, VOID, [ReadOnlyProperty(), FunctionAdapter()]);
|
|
122
|
+
sam$kotlin_properties_ReadOnlyProperty$0Class_0 = $;
|
|
123
|
+
}
|
|
124
|
+
return sam$kotlin_properties_ReadOnlyProperty$0Class_0;
|
|
125
|
+
}
|
|
126
|
+
function ConfigCommand$lambda$lambda$lambda($key) {
|
|
127
|
+
return (it) => {
|
|
128
|
+
var tmp = it.r5p_1.o4($key);
|
|
129
|
+
return tmp instanceof CouplingCliConfig() ? tmp : null;
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
function ConfigCommand$lambda$lambda($key, $config) {
|
|
133
|
+
return (thisRef, _unused_var__etf5q3) => {
|
|
134
|
+
var tmp0 = thisRef.p5o();
|
|
135
|
+
// Inline function 'com.github.ajalt.clikt.core.Context.findOrSetObject' call
|
|
136
|
+
var key = $key;
|
|
137
|
+
// Inline function 'com.github.ajalt.clikt.core.Context.findObject' call
|
|
138
|
+
var tmp = selfAndAncestors(tmp0);
|
|
139
|
+
var tmp0_elvis_lhs = firstOrNull(mapNotNull(tmp, ConfigCommand$lambda$lambda$lambda(key)));
|
|
140
|
+
var tmp_0;
|
|
141
|
+
if (tmp0_elvis_lhs == null) {
|
|
142
|
+
// Inline function 'kotlin.also' call
|
|
143
|
+
var this_0 = $config;
|
|
144
|
+
// Inline function 'kotlin.collections.set' call
|
|
145
|
+
tmp0.r5p_1.v4(key, this_0);
|
|
146
|
+
tmp_0 = this_0;
|
|
147
|
+
} else {
|
|
148
|
+
tmp_0 = tmp0_elvis_lhs;
|
|
149
|
+
}
|
|
150
|
+
return tmp_0;
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
function ConfigCommand$lambda(this$0) {
|
|
154
|
+
return ($this$context) => {
|
|
155
|
+
var configFileSource = new (ConfigFileSource())($this$context.i5s_1);
|
|
156
|
+
var config = configFileSource.c6v_1;
|
|
157
|
+
var tmp;
|
|
158
|
+
if (!(config == null)) {
|
|
159
|
+
// Inline function 'com.github.ajalt.clikt.core.findOrSetObject' call
|
|
160
|
+
var tmp_0 = ConfigCommand$lambda$lambda('config', config);
|
|
161
|
+
new (sam$kotlin_properties_ReadOnlyProperty$0())(tmp_0);
|
|
162
|
+
$this$context.f5s_1 = configFileSource;
|
|
163
|
+
tmp = Unit_instance;
|
|
164
|
+
}
|
|
165
|
+
return Unit_instance;
|
|
166
|
+
};
|
|
167
|
+
}
|
|
168
|
+
function ConfigCommand$partyId$delegate$lambda(_this__u8e3s4) {
|
|
169
|
+
return _this__u8e3s4.p5p_1.t62();
|
|
170
|
+
}
|
|
171
|
+
function ConfigCommand$partyId$delegate$lambda_0($this) {
|
|
172
|
+
return (_this__u8e3s4, it) => {
|
|
173
|
+
var tmp;
|
|
174
|
+
try {
|
|
175
|
+
var it_0 = $this.n63()(_this__u8e3s4, it);
|
|
176
|
+
tmp = PartyId(it_0);
|
|
177
|
+
} catch ($p) {
|
|
178
|
+
var tmp_0;
|
|
179
|
+
if ($p instanceof UsageError()) {
|
|
180
|
+
var err = $p;
|
|
181
|
+
var tmp_1 = err;
|
|
182
|
+
var tmp0_elvis_lhs = err.z5s_1;
|
|
183
|
+
var tmp_2;
|
|
184
|
+
if (tmp0_elvis_lhs == null) {
|
|
185
|
+
// Inline function 'kotlin.takeUnless' call
|
|
186
|
+
var this_0 = _this__u8e3s4.s63_1;
|
|
187
|
+
var tmp_3;
|
|
188
|
+
// Inline function 'kotlin.text.isEmpty' call
|
|
189
|
+
if (!(charSequenceLength(this_0) === 0)) {
|
|
190
|
+
tmp_3 = this_0;
|
|
191
|
+
} else {
|
|
192
|
+
tmp_3 = null;
|
|
193
|
+
}
|
|
194
|
+
tmp_2 = tmp_3;
|
|
195
|
+
} else {
|
|
196
|
+
tmp_2 = tmp0_elvis_lhs;
|
|
197
|
+
}
|
|
198
|
+
var tmp1_elvis_lhs = tmp_2;
|
|
199
|
+
tmp_1.z5s_1 = tmp1_elvis_lhs == null ? longestName(_this__u8e3s4.t63_1) : tmp1_elvis_lhs;
|
|
200
|
+
throw err;
|
|
201
|
+
} else {
|
|
202
|
+
if ($p instanceof Exception()) {
|
|
203
|
+
var err_0 = $p;
|
|
204
|
+
var tmp2_elvis_lhs = err_0.message;
|
|
205
|
+
_this__u8e3s4.v63(tmp2_elvis_lhs == null ? '' : tmp2_elvis_lhs);
|
|
206
|
+
} else {
|
|
207
|
+
throw $p;
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
tmp = tmp_0;
|
|
211
|
+
}
|
|
212
|
+
return tmp;
|
|
213
|
+
};
|
|
214
|
+
}
|
|
215
|
+
function ConfigCommand$_get_partyId_$ref_ivxfj0() {
|
|
216
|
+
return (p0) => _get_partyId__g79dgw(p0);
|
|
217
|
+
}
|
|
218
|
+
function ConfigCommand$_get_partyId_$ref_ivxfj0_0() {
|
|
219
|
+
return (p0) => _get_partyId__g79dgw(p0);
|
|
220
|
+
}
|
|
221
|
+
function ConfigCommand$config$delegate$lambda$lambda($key) {
|
|
222
|
+
return (it) => {
|
|
223
|
+
var tmp = it.r5p_1.o4($key);
|
|
224
|
+
return tmp instanceof CouplingCliConfig() ? tmp : null;
|
|
225
|
+
};
|
|
226
|
+
}
|
|
227
|
+
function ConfigCommand$config$delegate$lambda($key) {
|
|
228
|
+
return (thisRef, _unused_var__etf5q3) => {
|
|
229
|
+
var tmp0 = thisRef.p5o();
|
|
230
|
+
// Inline function 'com.github.ajalt.clikt.core.Context.findOrSetObject' call
|
|
231
|
+
var key = $key;
|
|
232
|
+
// Inline function 'com.github.ajalt.clikt.core.Context.findObject' call
|
|
233
|
+
var tmp = selfAndAncestors(tmp0);
|
|
234
|
+
var tmp0_elvis_lhs = firstOrNull(mapNotNull(tmp, ConfigCommand$config$delegate$lambda$lambda(key)));
|
|
235
|
+
var tmp_0;
|
|
236
|
+
if (tmp0_elvis_lhs == null) {
|
|
237
|
+
// Inline function 'kotlin.also' call
|
|
238
|
+
var this_0 = new (CouplingCliConfig())();
|
|
239
|
+
// Inline function 'kotlin.collections.set' call
|
|
240
|
+
tmp0.r5p_1.v4(key, this_0);
|
|
241
|
+
tmp_0 = this_0;
|
|
242
|
+
} else {
|
|
243
|
+
tmp_0 = tmp0_elvis_lhs;
|
|
244
|
+
}
|
|
245
|
+
return tmp_0;
|
|
246
|
+
};
|
|
247
|
+
}
|
|
248
|
+
function ConfigCommand$_get_config_$ref_4k8h59() {
|
|
249
|
+
return (p0) => p0.v3c();
|
|
250
|
+
}
|
|
251
|
+
var ConfigCommandClass;
|
|
252
|
+
function ConfigCommand() {
|
|
253
|
+
if (ConfigCommandClass === VOID) {
|
|
254
|
+
class $ extends SuspendingCliktCommand() {
|
|
255
|
+
constructor() {
|
|
256
|
+
super('config');
|
|
257
|
+
context(this, ConfigCommand$lambda(this));
|
|
258
|
+
var tmp = this;
|
|
259
|
+
// Inline function 'com.github.ajalt.clikt.parameters.options.convert' call
|
|
260
|
+
var this_0 = option(this, []);
|
|
261
|
+
var metavar = ConfigCommand$partyId$delegate$lambda;
|
|
262
|
+
var valueTransform = ConfigCommand$partyId$delegate$lambda_0(this_0);
|
|
263
|
+
var tmp_0 = defaultEachProcessor();
|
|
264
|
+
var tmp_1 = defaultAllProcessor();
|
|
265
|
+
var tmp_2 = defaultValidator();
|
|
266
|
+
var tmp0_elvis_lhs = this_0.f64();
|
|
267
|
+
var tmp_3 = tmp0_elvis_lhs == null ? metavar : tmp0_elvis_lhs;
|
|
268
|
+
var tmp1_elvis_lhs = this_0.e64();
|
|
269
|
+
var tmp_4 = this_0.q63(valueTransform, tmp_0, tmp_1, tmp_2, VOID, tmp_3, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp1_elvis_lhs == null ? null : tmp1_elvis_lhs);
|
|
270
|
+
var tmp_5 = KProperty1();
|
|
271
|
+
tmp.x6u_1 = tmp_4.x63(this, getPropertyCallableRef('partyId', 1, tmp_5, ConfigCommand$_get_partyId_$ref_ivxfj0(), null));
|
|
272
|
+
var tmp_6 = this;
|
|
273
|
+
// Inline function 'com.github.ajalt.clikt.core.findOrSetObject' call
|
|
274
|
+
var tmp_7 = ConfigCommand$config$delegate$lambda('config');
|
|
275
|
+
tmp_6.y6u_1 = new (sam$kotlin_properties_ReadOnlyProperty$0_0())(tmp_7);
|
|
276
|
+
}
|
|
277
|
+
v3c() {
|
|
278
|
+
var tmp = KProperty1();
|
|
279
|
+
return this.y6u_1.fp(this, getPropertyCallableRef('config', 1, tmp, ConfigCommand$_get_config_$ref_4k8h59(), null));
|
|
280
|
+
}
|
|
281
|
+
k5e($completion) {
|
|
282
|
+
var configFilePath = plus(this.p5o().q5p_1('PWD'), '/.coupling');
|
|
283
|
+
// Inline function 'kotlin.let' call
|
|
284
|
+
var it = this.v3c().f6v(_get_partyId__g79dgw(this));
|
|
285
|
+
// Inline function 'kotlinx.serialization.json.Json.encodeToString' call
|
|
286
|
+
var this_0 = Default_getInstance();
|
|
287
|
+
// Inline function 'kotlinx.serialization.serializer' call
|
|
288
|
+
var this_1 = this_0.b21();
|
|
289
|
+
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
290
|
+
var this_2 = serializer(this_1, createKType(getKClass(CouplingCliConfig()), arrayOf([]), false));
|
|
291
|
+
var tmp$ret$1 = isInterface(this_2, KSerializer()) ? this_2 : THROW_CCE();
|
|
292
|
+
// Inline function 'kotlin.let' call
|
|
293
|
+
var it_0 = this_0.e1x(tmp$ret$1, it);
|
|
294
|
+
writeDataToFile(configFilePath, it_0);
|
|
295
|
+
this.a5p('Updated file: ' + configFilePath);
|
|
296
|
+
return Unit_instance;
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
initMetadataForClass($, 'ConfigCommand', ConfigCommand, VOID, VOID, [0]);
|
|
300
|
+
ConfigCommandClass = $;
|
|
301
|
+
}
|
|
302
|
+
return ConfigCommandClass;
|
|
303
|
+
}
|
|
304
|
+
//region block: exports
|
|
305
|
+
export {
|
|
306
|
+
ConfigCommand as ConfigCommand32320kdqfgpio,
|
|
307
|
+
};
|
|
308
|
+
//endregion
|
|
309
|
+
|
|
310
|
+
//# sourceMappingURL=ConfigCommand.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../cli/src/commonMain/kotlin/com/zegreatrob/coupling/cli/ConfigCommand.kt","../../../../../../../../../../Users/runner/work/clikt/clikt/clikt/src/commonMain/kotlin/com/github/ajalt/clikt/core/Context.kt","../../../../../cli/build/compileSync/js/main/productionExecutable/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/src/kotlin/collections/Maps.kt","../../../../../cli/build/compileSync/js/main/productionExecutable/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/src/kotlin/util/Standard.kt","../../../../../cli/build/compileSync/js/main/productionExecutable/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/src/kotlin/text/Strings.kt","../../../../../../../../../../Users/runner/work/clikt/clikt/clikt/src/commonMain/kotlin/com/github/ajalt/clikt/parameters/options/Convert.kt","../../../../../../../../../../mnt/agent/work/b2fef8360e1bcf3d/formats/json/commonMain/src/kotlinx/serialization/json/Json.kt","../../../../../../../../../../mnt/agent/work/b2fef8360e1bcf3d/core/commonMain/src/kotlinx/serialization/Serializers.kt","../../../../../../../../../../mnt/agent/work/b2fef8360e1bcf3d/core/commonMain/src/kotlinx/serialization/internal/Platform.common.kt"],"sourcesContent":[null,null,null,null,null,null,null,null,null],"ignoreList":[],"x_google_ignoreList":[],"names":["<get-partyId>","getValue","thisRef","property","equals","hashCode","ConfigCommand$lambda$lambda$lambda","ConfigCommand$lambda$lambda$lambda$lambda","ConfigCommand$lambda$lambda","$config","ConfigCommand$lambda","configFileSource","config","ConfigCommand$partyId$delegate$lambda","ConfigCommand$partyId$delegate$lambda$lambda","err","ConfigCommand$config$delegate$lambda$lambda","ConfigCommand$config$delegate$lambda$lambda$lambda","ConfigCommand$config$delegate$lambda","valueTransform","<get-config>","run","$completion","configFilePath"],"mappings":"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"}
|
|
@@ -27,6 +27,9 @@ import { KSerializerzf77vz1967fq as KSerializer } from '../../../../../kotlinx-s
|
|
|
27
27
|
import { isInterface3d6p8outrmvmk as isInterface } from '../../../../../kotlin-kotlin-stdlib/kotlin/js/typeCheckUtils.mjs';
|
|
28
28
|
import { last2n4gf5az1lkn4 as last } from '../../../../../kotlin-kotlin-stdlib/kotlin/text/_Strings.mjs';
|
|
29
29
|
import { toString3dhdjl9yf50de as toString } from '../../../../../kotlin-kotlin-stdlib/kotlin/Char.mjs';
|
|
30
|
+
import { get_couplingJsonFormat3asw3gmcm6mbj as get_couplingJsonFormat } from '../../../../../Coupling-libraries-json/com/zegreatrob/coupling/json/CouplingJsonFormat.mjs';
|
|
31
|
+
import { toString1pkumu07cwy4m as toString_0 } from '../../../../../kotlin-kotlin-stdlib/kotlin/js/coreRuntime.mjs';
|
|
32
|
+
import { println2shhhgwwt4c61 as println } from '../../../../../kotlin-kotlin-stdlib/kotlin/io/console.mjs';
|
|
30
33
|
import { initMetadataForClassbxx6q50dy2s7 as initMetadataForClass } from '../../../../../kotlin-kotlin-stdlib/kotlin/js/metadataUtils.mjs';
|
|
31
34
|
import { VOID3gxj6tk5isa35 as VOID } from '../../../../../kotlin-kotlin-stdlib/kotlin/js/void.mjs';
|
|
32
35
|
//region block: imports
|
|
@@ -81,8 +84,8 @@ function kebabToCamelCase($this, _this__u8e3s4) {
|
|
|
81
84
|
var transform = ConfigFileSource$kebabToCamelCase$lambda;
|
|
82
85
|
return pattern.ci(_this__u8e3s4, transform);
|
|
83
86
|
}
|
|
84
|
-
function
|
|
85
|
-
var pwd = $this.
|
|
87
|
+
function getConfigFromFile($this) {
|
|
88
|
+
var pwd = $this.b6v_1('PWD');
|
|
86
89
|
var tmp0_elvis_lhs = readFromFile('' + pwd + '/.coupling');
|
|
87
90
|
var tmp;
|
|
88
91
|
if (tmp0_elvis_lhs == null) {
|
|
@@ -98,15 +101,7 @@ function readConfigFileAsJsonElement($this) {
|
|
|
98
101
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
99
102
|
var this_2 = serializer(this_1, createKType(getKClass(CouplingCliConfig()), arrayOf([]), false));
|
|
100
103
|
var tmp$ret$1 = isInterface(this_2, KSerializer()) ? this_2 : THROW_CCE();
|
|
101
|
-
|
|
102
|
-
// Inline function 'kotlinx.serialization.json.encodeToJsonElement' call
|
|
103
|
-
var this_3 = Default_getInstance();
|
|
104
|
-
// Inline function 'kotlinx.serialization.serializer' call
|
|
105
|
-
var this_4 = this_3.b21();
|
|
106
|
-
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
107
|
-
var this_5 = serializer(this_4, createKType(getKClass(CouplingCliConfig()), arrayOf([]), false));
|
|
108
|
-
var tmp$ret$4 = isInterface(this_5, KSerializer()) ? this_5 : THROW_CCE();
|
|
109
|
-
return this_3.w3x(tmp$ret$4, config);
|
|
104
|
+
return this_0.f1x(tmp$ret$1, fileContents);
|
|
110
105
|
}
|
|
111
106
|
function ConfigFileSource$kebabToCamelCase$lambda(it) {
|
|
112
107
|
// Inline function 'kotlin.text.uppercase' call
|
|
@@ -120,10 +115,29 @@ function ConfigFileSource() {
|
|
|
120
115
|
if (ConfigFileSourceClass === VOID) {
|
|
121
116
|
class $ {
|
|
122
117
|
constructor(envvarReader) {
|
|
123
|
-
this.
|
|
118
|
+
this.b6v_1 = envvarReader;
|
|
119
|
+
this.c6v_1 = getConfigFromFile(this);
|
|
120
|
+
var tmp = this;
|
|
121
|
+
var tmp0_safe_receiver = this.c6v_1;
|
|
122
|
+
var tmp_0;
|
|
123
|
+
if (tmp0_safe_receiver == null) {
|
|
124
|
+
tmp_0 = null;
|
|
125
|
+
} else {
|
|
126
|
+
// Inline function 'com.zegreatrob.coupling.json.toJsonElement' call
|
|
127
|
+
// Inline function 'kotlinx.serialization.json.encodeToJsonElement' call
|
|
128
|
+
var this_0 = get_couplingJsonFormat();
|
|
129
|
+
// Inline function 'kotlinx.serialization.serializer' call
|
|
130
|
+
var this_1 = this_0.b21();
|
|
131
|
+
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
132
|
+
var this_2 = serializer(this_1, createKType(getKClass(CouplingCliConfig()), arrayOf([]), false));
|
|
133
|
+
var tmp$ret$1 = isInterface(this_2, KSerializer()) ? this_2 : THROW_CCE();
|
|
134
|
+
tmp_0 = this_0.w3x(tmp$ret$1, tmp0_safe_receiver);
|
|
135
|
+
}
|
|
136
|
+
tmp.d6v_1 = tmp_0;
|
|
124
137
|
}
|
|
125
138
|
z63(context, option) {
|
|
126
|
-
|
|
139
|
+
println('hi values option ' + toString_0(option));
|
|
140
|
+
var tmp0_elvis_lhs = this.d6v_1;
|
|
127
141
|
var tmp;
|
|
128
142
|
if (tmp0_elvis_lhs == null) {
|
|
129
143
|
return emptyList();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../cli/src/commonMain/kotlin/com/zegreatrob/coupling/cli/ConfigFileSource.kt","../../../../../cli/build/compileSync/js/main/productionExecutable/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/common/src/generated/_Collections.kt","../../../../../cli/build/compileSync/js/main/productionExecutable/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/src/kotlin/text/Strings.kt","../../../../../../../../../../mnt/agent/work/b2fef8360e1bcf3d/formats/json/commonMain/src/kotlinx/serialization/json/Json.kt","../../../../../../../../../../mnt/agent/work/b2fef8360e1bcf3d/core/commonMain/src/kotlinx/serialization/Serializers.kt","../../../../../../../../../../mnt/agent/work/b2fef8360e1bcf3d/core/commonMain/src/kotlinx/serialization/internal/Platform.common.kt","../../../../../cli/build/compileSync/js/main/productionExecutable/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/js/src/kotlin/text/charJs.kt"],"sourcesContent":[null,null,null,null,null,null,null],"ignoreList":[],"x_google_ignoreList":[],"names":["findInvocations","configAsElement","option","cursor","parts","part","item","<unused var>","<this>","kebabToCamelCase","pattern","
|
|
1
|
+
{"version":3,"sources":["../../../../../cli/src/commonMain/kotlin/com/zegreatrob/coupling/cli/ConfigFileSource.kt","../../../../../cli/build/compileSync/js/main/productionExecutable/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/common/src/generated/_Collections.kt","../../../../../cli/build/compileSync/js/main/productionExecutable/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/src/kotlin/text/Strings.kt","../../../../../../../../../../mnt/agent/work/b2fef8360e1bcf3d/formats/json/commonMain/src/kotlinx/serialization/json/Json.kt","../../../../../../../../../../mnt/agent/work/b2fef8360e1bcf3d/core/commonMain/src/kotlinx/serialization/Serializers.kt","../../../../../../../../../../mnt/agent/work/b2fef8360e1bcf3d/core/commonMain/src/kotlinx/serialization/internal/Platform.common.kt","../../../../../cli/build/compileSync/js/main/productionExecutable/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/js/src/kotlin/text/charJs.kt","../../../../../libraries/json/src/commonMain/kotlin/com/zegreatrob/coupling/json/CouplingJsonFormat.kt"],"sourcesContent":[null,null,null,null,null,null,null,null],"ignoreList":[],"x_google_ignoreList":[],"names":["findInvocations","configAsElement","option","cursor","parts","part","item","<unused var>","<this>","kebabToCamelCase","pattern","getConfigFromFile","pwd","fileContents","ConfigFileSource$kebabToCamelCase$lambda","envvarReader","getValues","context"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAuBYA,CAAA,K,EACJC,e,EACAC,MAFIF,EAGwB;A,MAC5BG,SAA2B,e;MAC3BC,UAAmB,MAAP,KAAO,EAAP,MAAO,C;MACN,gC;SAAA,sB,EAAO;A,QAAfC,OAAQ,sB;IACL,sC;MAAuB,OAAO,W;IAClC,SAAS,UAAO,IAAP,C;EACb,C;EACI,cAAU,IAAV,C;IAAgB,OAAO,W;EAE3B,IAAI;A,IACI,kC,CAAqB;A;mBACd,M;;wBC4gDN,eAAa,gCAAwB,EAAxB,CAAb,C;UA2EA,sBA3EN,MA2EM,K;aAAA,wB,EACT;A,YADCC,OAAQ,wB;YDtlDyD,YAA/B,uBAAS,kBCulDlB,IDvlDkB,CAAc,MAAvB,C;QCulDnC,WAAY,IAAI,SAAJ,C;MAAmB,C;MDxlDvB,OCylDL,W;IDtlDC,C;IACA,OAA8B,uBAAY,kBAAP,MAAO,CAAc,MAA1B,C;EAClC,C;kDAAsC;A,UAA7BC,wB;MACL,OAAO,W;IACX,C;;;;AACJ,C;cAEQH,CAAA,K,EAAII,aAAJJ,EAAmC;A,MAAA,wC;MAAA,iBAAgB,0CAAhB,kBAAgB,EAAM,KAAN,C;EACH,OADb,yBACpC,OAA8B,iBAAvB,KAAuB,EAAX,yBAAK,aAAL,CAAW,CAA9B,CADoC,iB;AACY,C;yBAE/CK,CAAA,K,EAAID,aAAJC,EAAsC;A;MAC1CC,qBAAc,QAAdA,C;;kBACwB,wC;EAAxB,OAAe,OEwuBb,IFxuBK,aEwuBL,EAAc,SAAd,C;AFvuBN,C;0BAEQC,CAAA,KAAAA,EAA4C;A,MAChDC,MAAU,YAAa,KAAb,C;MACS,mCAAe,GAAf,GAAkB,YAAlB,C;;EAAA,2B;IACZ,OAAO,I;;UADK,c;;MAAnBC,kB;;eAEO,qB;;eGkKU,Y;;eCxKd,mF;MAAP,YCwB4D,yD;ELlBxD,OGkKA,WAAmC,SAAnC,EHlKgD,YGkKhD,C;AHjKJ,C;iDAR4BC,CAAA,EAAAA,EAAA;A;eAAW,KAAT,EAAG,KAAM,C;;;EAAkB,OMyBT,gBAAqC,CAAd,WAAc,E;ANzB3B,C;;;;;kBAxCvCC,Y;QAAA,yB;QACN,oC;kBACmB,I;YAAR,+B;;QAAQ,+B;kBAAA,I;;;;uBOEO,wB;;uBJmTZ,Y;;uBC9QpB,mF;cAAP,YCwB4D,yD;kBFsPrD,WAAsC,SAAtC,EHrTiB,kBGqTjB,C;;QHrTyB,iB;;SAEvBC,CAAcC,O,EAAkBf,MAAhCc,EAA8E;A,QACnF,QAAS,mBAAT,cAA2B,MAA3B,E;YACsB,2B;;QAAA,2B;UACf,OAAO,W;;gBADQ,c;;YAAtBf,qB;QAEA,OAAO,sBAAgB,eAAhB,EAAiC,MAAjC,C;MACX,C;;;;;;;;;;;"}
|
|
@@ -46,21 +46,21 @@ function $serializer() {
|
|
|
46
46
|
$serializer_instance = this;
|
|
47
47
|
var tmp0_serialDesc = new (PluginGeneratedSerialDescriptor())('com.zegreatrob.coupling.cli.CouplingCliConfig', this, 1);
|
|
48
48
|
tmp0_serialDesc.d28('partyId', true);
|
|
49
|
-
this.
|
|
49
|
+
this.g6v_1 = tmp0_serialDesc;
|
|
50
50
|
}
|
|
51
|
-
|
|
52
|
-
var tmp0_desc = this.
|
|
51
|
+
h6v(encoder, value) {
|
|
52
|
+
var tmp0_desc = this.g6v_1;
|
|
53
53
|
var tmp1_output = encoder.m20(tmp0_desc);
|
|
54
|
-
if (tmp1_output.k22(tmp0_desc, 0) ? true : !(value.
|
|
55
|
-
tmp1_output.g22(tmp0_desc, 0, PartyIdSerializer_getInstance(), value.
|
|
54
|
+
if (tmp1_output.k22(tmp0_desc, 0) ? true : !(value.e6v_1 == null)) {
|
|
55
|
+
tmp1_output.g22(tmp0_desc, 0, PartyIdSerializer_getInstance(), value.e6v_1);
|
|
56
56
|
}
|
|
57
57
|
tmp1_output.n20(tmp0_desc);
|
|
58
58
|
}
|
|
59
59
|
l1w(encoder, value) {
|
|
60
|
-
return this.
|
|
60
|
+
return this.h6v(encoder, value instanceof CouplingCliConfig() ? value : THROW_CCE());
|
|
61
61
|
}
|
|
62
62
|
m1w(decoder) {
|
|
63
|
-
var tmp0_desc = this.
|
|
63
|
+
var tmp0_desc = this.g6v_1;
|
|
64
64
|
var tmp1_flag = true;
|
|
65
65
|
var tmp2_index = 0;
|
|
66
66
|
var tmp3_bitMask0 = 0;
|
|
@@ -85,10 +85,10 @@ function $serializer() {
|
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
87
|
tmp5_input.n20(tmp0_desc);
|
|
88
|
-
return CouplingCliConfig().
|
|
88
|
+
return CouplingCliConfig().i6v(tmp3_bitMask0, tmp4_local0, null);
|
|
89
89
|
}
|
|
90
90
|
k1w() {
|
|
91
|
-
return this.
|
|
91
|
+
return this.g6v_1;
|
|
92
92
|
}
|
|
93
93
|
s28() {
|
|
94
94
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -115,32 +115,35 @@ function CouplingCliConfig() {
|
|
|
115
115
|
class $ {
|
|
116
116
|
constructor(partyId) {
|
|
117
117
|
partyId = partyId === VOID ? null : partyId;
|
|
118
|
-
this.
|
|
118
|
+
this.e6v_1 = partyId;
|
|
119
|
+
}
|
|
120
|
+
f6v(partyId) {
|
|
121
|
+
return new (CouplingCliConfig())(partyId);
|
|
119
122
|
}
|
|
120
123
|
toString() {
|
|
121
|
-
return 'CouplingCliConfig(partyId=' + toString(this.
|
|
124
|
+
return 'CouplingCliConfig(partyId=' + toString(this.e6v_1) + ')';
|
|
122
125
|
}
|
|
123
126
|
hashCode() {
|
|
124
|
-
return this.
|
|
127
|
+
return this.e6v_1 == null ? 0 : this.e6v_1.hashCode();
|
|
125
128
|
}
|
|
126
129
|
equals(other) {
|
|
127
130
|
if (this === other)
|
|
128
131
|
return true;
|
|
129
132
|
if (!(other instanceof CouplingCliConfig()))
|
|
130
133
|
return false;
|
|
131
|
-
if (!equals(this.
|
|
134
|
+
if (!equals(this.e6v_1, other.e6v_1))
|
|
132
135
|
return false;
|
|
133
136
|
return true;
|
|
134
137
|
}
|
|
135
|
-
static
|
|
138
|
+
static i6v(seen0, partyId, serializationConstructorMarker) {
|
|
136
139
|
if (!(0 === (0 & seen0))) {
|
|
137
|
-
throwMissingFieldException(seen0, 0, $serializer_getInstance().
|
|
140
|
+
throwMissingFieldException(seen0, 0, $serializer_getInstance().g6v_1);
|
|
138
141
|
}
|
|
139
142
|
var $this = createThis(this);
|
|
140
143
|
if (0 === (seen0 & 1))
|
|
141
|
-
$this.
|
|
144
|
+
$this.e6v_1 = null;
|
|
142
145
|
else
|
|
143
|
-
$this.
|
|
146
|
+
$this.e6v_1 = partyId;
|
|
144
147
|
return $this;
|
|
145
148
|
}
|
|
146
149
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../cli/src/commonMain/kotlin/com/zegreatrob/coupling/cli/CouplingCliConfig.kt"],"sourcesContent":[null],"ignoreList":[],"x_google_ignoreList":[],"names":["serialize","encoder","value","deserialize","childSerializers","partyId"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAKA,mH;QAAA,oC;QAAA,4B;;SAAAA,CAAA,O,EAAA,KAAAA,EAAA;A,YAAA,sB;YAAA,oC;QAAA,4DAEkC,IAFlC,E;UAAA,2E;;QAAA,0B;MAGA,C;UACk/MC,O,EAAkBC,K;;;SAJpgNC,CAAA,OAAAA,EAAA;A,YAAA,sB;YAAA,gB;YAAA,c;YAAA,iB;YAAA,kB;YAAA,mC;QAAA,qB,CAAA;A,UAAA,wF;UAAA,iC;QAGA,C;iBAHA,S,EAAA;A,YAAA,sC;YAAA,mB;mBAAA,E;gBAAA,iB;;mBAAA,C;gBAAA,wF;gBAAA,iC;;;gBAAA,6C;;UAGA,C;QAHA,yB;QAAA,gE;MAGA,C;;;;SAHAC,CAAAA,EAAA;A;;;QAAA,sD;MAGA,C;;;;;;;;;;;;;;;;;;kBADIC,O;qCAA8B,I;QAA9B,oB;;
|
|
1
|
+
{"version":3,"sources":["../../../../../cli/src/commonMain/kotlin/com/zegreatrob/coupling/cli/CouplingCliConfig.kt"],"sourcesContent":[null],"ignoreList":[],"x_google_ignoreList":[],"names":["serialize","encoder","value","deserialize","childSerializers","partyId"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAKA,mH;QAAA,oC;QAAA,4B;;SAAAA,CAAA,O,EAAA,KAAAA,EAAA;A,YAAA,sB;YAAA,oC;QAAA,4DAEkC,IAFlC,E;UAAA,2E;;QAAA,0B;MAGA,C;UACk/MC,O,EAAkBC,K;;;SAJpgNC,CAAA,OAAAA,EAAA;A,YAAA,sB;YAAA,gB;YAAA,c;YAAA,iB;YAAA,kB;YAAA,mC;QAAA,qB,CAAA;A,UAAA,wF;UAAA,iC;QAGA,C;iBAHA,S,EAAA;A,YAAA,sC;YAAA,mB;mBAAA,E;gBAAA,iB;;mBAAA,C;gBAAA,wF;gBAAA,iC;;;gBAAA,6C;;UAGA,C;QAHA,yB;QAAA,gE;MAGA,C;;;;SAHAC,CAAAA,EAAA;A;;;QAAA,sD;MAGA,C;;;;;;;;;;;;;;;;;;kBADIC,O;qCAA8B,I;QAA9B,oB;;mBAPJ;A,QAAA,yC;MAAA,C;iBAAA;A,QAAA,gE;MAAA,C;iBAAA;A,QAAA,qD;MAAA,C;oBAAA;A,QAAA,mB;UAAA,W;QAAA,4C;UAAA,Y;QAAA,qC;UAAA,Y;QAAA,W;MAAA,C;;QAKA,yB;UAAA,qE;;;QAAA,sB;UAAA,cAEkC,I;;UAFlC,qB;;;;;;;;;;;;;;;;"}
|
|
@@ -42,13 +42,13 @@ import { launch1c91vkjzdi9sd as launch } from '../../../../../kotlinx-coroutines
|
|
|
42
42
|
//endregion
|
|
43
43
|
function *_generator_invoke__zhh2q8($this, $this$launch, $completion) {
|
|
44
44
|
var client = new (KtorAuth0Client())();
|
|
45
|
-
var tmp = client.n4f($this.
|
|
45
|
+
var tmp = client.n4f($this.j6v_1.f6u_1, $this.j6v_1.e6u_1, $completion);
|
|
46
46
|
if (tmp === get_COROUTINE_SUSPENDED())
|
|
47
47
|
tmp = yield tmp;
|
|
48
48
|
var result = tmp;
|
|
49
|
-
$this.
|
|
50
|
-
$this.
|
|
51
|
-
var tmp_0 = pollForSuccess($this.
|
|
49
|
+
$this.k6v_1.a5p('Your user code is: ' + result.h4f_1);
|
|
50
|
+
$this.k6v_1.a5p('Please follow link to authenticate: ' + result.g4f_1);
|
|
51
|
+
var tmp_0 = pollForSuccess($this.k6v_1, client, $this.j6v_1, result.i4f_1, result.j4f_1, $completion);
|
|
52
52
|
if (tmp_0 === get_COROUTINE_SUSPENDED())
|
|
53
53
|
tmp_0 = yield tmp_0;
|
|
54
54
|
var pollResult = tmp_0;
|
|
@@ -60,12 +60,12 @@ function *_generator_invoke__zhh2q8($this, $this$launch, $completion) {
|
|
|
60
60
|
put(builder, 'refreshToken', pollResult == null ? null : pollResult.s4f_1);
|
|
61
61
|
var tmp$ret$1 = builder.e3z();
|
|
62
62
|
writeDataToFile(tmp_1, tmp$ret$1.toString());
|
|
63
|
-
$this.
|
|
63
|
+
$this.k6v_1.a5p('Login complete!');
|
|
64
64
|
return Unit_instance;
|
|
65
65
|
}
|
|
66
66
|
function _get_env__e67txg($this) {
|
|
67
67
|
var tmp = KProperty1();
|
|
68
|
-
return $this.
|
|
68
|
+
return $this.a6w_1.fp($this, getPropertyCallableRef('env', 1, tmp, Login$_get_env_$ref_pawiqw_0(), null));
|
|
69
69
|
}
|
|
70
70
|
function *_generator_pollForSuccess__modt2p($this, _this__u8e3s4, environment, deviceCode, interval, $completion) {
|
|
71
71
|
var pollResult;
|
|
@@ -103,8 +103,8 @@ function Login$run$slambda() {
|
|
|
103
103
|
if (Login$run$slambdaClass === VOID) {
|
|
104
104
|
class $ {
|
|
105
105
|
constructor($environment, this$0) {
|
|
106
|
-
this.
|
|
107
|
-
this.
|
|
106
|
+
this.j6v_1 = $environment;
|
|
107
|
+
this.k6v_1 = this$0;
|
|
108
108
|
}
|
|
109
109
|
a1h($this$launch, $completion) {
|
|
110
110
|
return suspendOrReturn(/*#__NOINLINE__*/_generator_invoke__zhh2q8.bind(VOID, this, $this$launch), $completion);
|
|
@@ -133,7 +133,7 @@ function Login() {
|
|
|
133
133
|
var tmp = this;
|
|
134
134
|
var tmp_0 = default_0(option(this, []), 'production');
|
|
135
135
|
var tmp_1 = KProperty1();
|
|
136
|
-
tmp.
|
|
136
|
+
tmp.a6w_1 = tmp_0.x63(this, getPropertyCallableRef('env', 1, tmp_1, Login$_get_env_$ref_pawiqw(), null));
|
|
137
137
|
}
|
|
138
138
|
k5e($completion) {
|
|
139
139
|
var environment = Companion_getInstance_0().d6u_1.o4(_get_env__e67txg(this));
|
|
@@ -14,6 +14,7 @@ import { VOID3gxj6tk5isa35 as VOID } from '../../../../../kotlin-kotlin-stdlib/k
|
|
|
14
14
|
import { Welcome239n5uwhd0l1a as Welcome } from './Welcome.mjs';
|
|
15
15
|
import { Login123mdhjyjrbrm as Login } from './Login.mjs';
|
|
16
16
|
import { subcommands1t5srr48gscgb as subcommands } from '../../../../../clikt-clikt/com/github/ajalt/clikt/core/BaseCliktCommand.mjs';
|
|
17
|
+
import { ConfigCommand32320kdqfgpio as ConfigCommand } from './ConfigCommand.mjs';
|
|
17
18
|
import { party157pvraectlfk as party } from './party/Party.mjs';
|
|
18
19
|
import { Default_getInstancejkv49nkel8hp as Default_getInstance } from '../../../../../kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/Json.mjs';
|
|
19
20
|
import {
|
|
@@ -56,7 +57,7 @@ function main_0(args, $completion) {
|
|
|
56
57
|
function cli(cannon) {
|
|
57
58
|
cannon = cannon === VOID ? null : cannon;
|
|
58
59
|
_init_properties_Main_kt__xi25uv();
|
|
59
|
-
return subcommands(subcommands(new (Welcome())(), [new (Login())()]), [party(cannon)]);
|
|
60
|
+
return subcommands(subcommands(subcommands(new (Welcome())(), [new (Login())()]), [new (ConfigCommand())()]), [party(cannon)]);
|
|
60
61
|
}
|
|
61
62
|
function getAccessToken() {
|
|
62
63
|
_init_properties_Main_kt__xi25uv();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../cli/src/commonMain/kotlin/com/zegreatrob/coupling/cli/Main.kt"],"sourcesContent":[null],"ignoreList":[],"x_google_ignoreList":[],"names":["<get-cliScope>","<get-couplingHomeDirectory>","<get-configFilePath>","<generator-main>","args","$completion","main","cli","cannon","getAccessToken","<init properties Main.kt>"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../../../../cli/src/commonMain/kotlin/com/zegreatrob/coupling/cli/Main.kt"],"sourcesContent":[null],"ignoreList":[],"x_google_ignoreList":[],"names":["<get-cliScope>","<get-couplingHomeDirectory>","<get-configFilePath>","<generator-main>","args","$completion","main","cli","cannon","getAccessToken","<init properties Main.kt>"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAWAA,CAAAA,EAAA;A;EAAA,e;AAAW,C;;kCAkBXC,CAAAA,EAAA;A;EAAA,4B;AAAwB,C;;2BACxBC,CAAAA,EAAA;A;EAAA,qB;AAAiB,C;;iCAjBTC,CAASC,I,EAATC,WAAAF,EAA8B;A,MAE7B,WADL,KACK,EAAK,sBAAsB,IAAtB,CAAL,c;;;MACI,QAAT,cAAS,iB;;;EACb,oB;AAAA,C;eAJQG,CAASF,I,EAATC,WAAAC,E;;C;YAMRC,CAAQC,MAARD,EAAwE;A,6BAAjB,I;;EAGxB,OAA1B,YADA,YADA,+BAAY,iBAAZ,CACA,EAAY,yBAAZ,CACA,EAAY,OAAM,MAAN,EAAZ,C;AAAyB,C;uBAU9BE,CAAAA,EAAuB;A;MAAA,wBAAO,2BAAP,C;;EAAA,2B;eAChB,aAAa,oBAAb,C;;;aACM,+B;QACE,qBAAG,eAAH,EAAG,CAAH,IAAc,aAAd,C;QAA8B,2EAA9B,kBAA8B,C;UAAe,oCAA7C,kBAA6C,M;;UAHrC,c;;EAG8C,U;AAAD,C;;yCAnCpEC,CAAAA,E;;;;iCA6B+B,OAAO,MAAP,C,GAAe,Y;qBACvB,2B,GAAqB,c;;C;;;;;;;;"}
|
|
@@ -55,7 +55,7 @@ function audienceHost(_this__u8e3s4) {
|
|
|
55
55
|
return 'https://' + getHost(_this__u8e3s4.f6u_1);
|
|
56
56
|
}
|
|
57
57
|
function *_generator_invoke__zhh2q8($this, $this$async, $completion) {
|
|
58
|
-
var tmp = $this.
|
|
58
|
+
var tmp = $this.q6w_1($this.r6w_1, $completion);
|
|
59
59
|
if (tmp === get_COROUTINE_SUSPENDED())
|
|
60
60
|
tmp = yield tmp;
|
|
61
61
|
return Unit_instance;
|
|
@@ -65,8 +65,8 @@ function withSdk$slambda() {
|
|
|
65
65
|
if (withSdk$slambdaClass === VOID) {
|
|
66
66
|
class $ {
|
|
67
67
|
constructor($doWork, $it) {
|
|
68
|
-
this.
|
|
69
|
-
this.
|
|
68
|
+
this.q6w_1 = $doWork;
|
|
69
|
+
this.r6w_1 = $it;
|
|
70
70
|
}
|
|
71
71
|
a1h($this$async, $completion) {
|
|
72
72
|
return suspendOrReturn(/*#__NOINLINE__*/_generator_invoke__zhh2q8.bind(VOID, this, $this$async), $completion);
|
|
@@ -91,10 +91,10 @@ function actionCannon$slambda() {
|
|
|
91
91
|
if (actionCannon$slambdaClass === VOID) {
|
|
92
92
|
class $ {
|
|
93
93
|
constructor($accessToken) {
|
|
94
|
-
this.
|
|
94
|
+
this.s6w_1 = $accessToken;
|
|
95
95
|
}
|
|
96
96
|
fe($completion) {
|
|
97
|
-
return this.
|
|
97
|
+
return this.s6w_1;
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
initMetadataForLambda($, VOID, VOID, [0]);
|