git-semver-tagger 1.6.4 → 1.7.0
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/Kotlin-DateTime-library-kotlinx-datetime.js +2 -2
- package/kotlin/clikt-clikt-mordant.js +77 -77
- package/kotlin/clikt-clikt.js +1303 -1303
- package/kotlin/colormath-root-colormath.js +424 -424
- package/kotlin/command-line-tools-tagger-cli.js +160 -144
- package/kotlin/command-line-tools-tagger-cli.js.map +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +954 -954
- package/kotlin/mordant-mordant.js +1185 -1185
- package/kotlin/tools-tagger-core.js +178 -120
- package/kotlin/tools-tagger-core.js.map +1 -1
- package/package.json +1 -1
|
@@ -5,23 +5,26 @@
|
|
|
5
5
|
var protoOf = kotlin_kotlin.$_$.ba;
|
|
6
6
|
var initMetadataForObject = kotlin_kotlin.$_$.g9;
|
|
7
7
|
var CliktError = kotlin_clikt_clikt.$_$.a;
|
|
8
|
+
var VOID = kotlin_kotlin.$_$.f;
|
|
9
|
+
var Unit_instance = kotlin_kotlin.$_$.e4;
|
|
8
10
|
var RegexOption_IGNORE_CASE_getInstance = kotlin_kotlin.$_$.g;
|
|
9
11
|
var Regex_init_$Create$ = kotlin_kotlin.$_$.x;
|
|
10
12
|
var VersionRegex = kotlin_com_zegreatrob_tools_tagger_core.$_$.c;
|
|
11
|
-
var Unit_instance = kotlin_kotlin.$_$.e4;
|
|
12
13
|
var CliktCommand = kotlin_clikt_clikt_mordant.$_$.a;
|
|
13
14
|
var context = kotlin_clikt_clikt.$_$.e;
|
|
14
15
|
var argument = kotlin_clikt_clikt.$_$.j;
|
|
15
16
|
var optional = kotlin_clikt_clikt.$_$.k;
|
|
16
|
-
var VOID = kotlin_kotlin.$_$.f;
|
|
17
17
|
var option = kotlin_clikt_clikt.$_$.o;
|
|
18
18
|
var boolean = kotlin_clikt_clikt.$_$.q;
|
|
19
19
|
var default_0 = kotlin_clikt_clikt.$_$.l;
|
|
20
|
-
var Defaults_getInstance = kotlin_com_zegreatrob_tools_tagger_core.$_$.
|
|
21
|
-
var Companion_instance = kotlin_com_zegreatrob_tools_tagger_core.$_$.
|
|
20
|
+
var Defaults_getInstance = kotlin_com_zegreatrob_tools_tagger_core.$_$.j;
|
|
21
|
+
var Companion_instance = kotlin_com_zegreatrob_tools_tagger_core.$_$.i;
|
|
22
22
|
var GitAdapter = kotlin_com_zegreatrob_tools_git_adapter.$_$.a;
|
|
23
23
|
var TaggerCore = kotlin_com_zegreatrob_tools_tagger_core.$_$.b;
|
|
24
|
-
var calculateNextVersion = kotlin_com_zegreatrob_tools_tagger_core.$_$.
|
|
24
|
+
var calculateNextVersion = kotlin_com_zegreatrob_tools_tagger_core.$_$.f;
|
|
25
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.ze;
|
|
26
|
+
var Failure = kotlin_com_zegreatrob_tools_tagger_core.$_$.d;
|
|
27
|
+
var Success = kotlin_com_zegreatrob_tools_tagger_core.$_$.e;
|
|
25
28
|
var initMetadataForClass = kotlin_kotlin.$_$.b9;
|
|
26
29
|
var KProperty1 = kotlin_kotlin.$_$.wa;
|
|
27
30
|
var getPropertyCallableRef = kotlin_kotlin.$_$.y8;
|
|
@@ -52,10 +55,9 @@
|
|
|
52
55
|
var main = kotlin_clikt_clikt.$_$.f;
|
|
53
56
|
var subcommands = kotlin_clikt_clikt.$_$.h;
|
|
54
57
|
var required = kotlin_clikt_clikt.$_$.p;
|
|
55
|
-
var tag = kotlin_com_zegreatrob_tools_tagger_core.$_$.
|
|
56
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.ze;
|
|
58
|
+
var tag = kotlin_com_zegreatrob_tools_tagger_core.$_$.g;
|
|
57
59
|
var Error_0 = kotlin_com_zegreatrob_tools_tagger_core.$_$.a;
|
|
58
|
-
var Success_getInstance = kotlin_com_zegreatrob_tools_tagger_core.$_$.
|
|
60
|
+
var Success_getInstance = kotlin_com_zegreatrob_tools_tagger_core.$_$.h;
|
|
59
61
|
var equals = kotlin_kotlin.$_$.u8;
|
|
60
62
|
var PrintMessage = kotlin_clikt_clikt.$_$.d;
|
|
61
63
|
var setOf = kotlin_kotlin.$_$.f7;
|
|
@@ -85,17 +87,17 @@
|
|
|
85
87
|
initMetadataForClass(TaggerConfig, 'TaggerConfig', TaggerConfig, VOID, VOID, VOID, VOID, {0: $serializer_getInstance});
|
|
86
88
|
//endregion
|
|
87
89
|
function Versions() {
|
|
88
|
-
this.
|
|
90
|
+
this.h31_1 = '1.7.0';
|
|
89
91
|
}
|
|
90
92
|
var Versions_instance;
|
|
91
93
|
function Versions_getInstance() {
|
|
92
94
|
return Versions_instance;
|
|
93
95
|
}
|
|
94
96
|
function _get_gitRepoArgument__zxde8($this) {
|
|
95
|
-
return $this.
|
|
97
|
+
return $this.x31_1.r22($this, gitRepoArgument$factory_0());
|
|
96
98
|
}
|
|
97
99
|
function _get_gitRepoOption__rk7ta0($this) {
|
|
98
|
-
return $this.
|
|
100
|
+
return $this.y31_1.r22($this, gitRepoOption$factory_0());
|
|
99
101
|
}
|
|
100
102
|
function _get_workingDirectory__eyfbj($this) {
|
|
101
103
|
var tmp0_elvis_lhs = _get_gitRepoArgument__zxde8($this);
|
|
@@ -109,25 +111,32 @@
|
|
|
109
111
|
return tmp;
|
|
110
112
|
}
|
|
111
113
|
function _get_implicitPatch__bjk4pa($this) {
|
|
112
|
-
return $this.
|
|
114
|
+
return $this.z31_1.r22($this, implicitPatch$factory_0());
|
|
113
115
|
}
|
|
114
116
|
function _get_releaseBranch__pqrgbs($this) {
|
|
115
|
-
return $this.
|
|
117
|
+
return $this.a32_1.r22($this, releaseBranch$factory_0());
|
|
116
118
|
}
|
|
117
119
|
function _get_majorRegex__5j6ypp($this) {
|
|
118
|
-
return $this.
|
|
120
|
+
return $this.b32_1.r22($this, majorRegex$factory_0());
|
|
119
121
|
}
|
|
120
122
|
function _get_minorRegex__20z96h($this) {
|
|
121
|
-
return $this.
|
|
123
|
+
return $this.c32_1.r22($this, minorRegex$factory_0());
|
|
122
124
|
}
|
|
123
125
|
function _get_patchRegex__mtlu2c($this) {
|
|
124
|
-
return $this.
|
|
126
|
+
return $this.d32_1.r22($this, patchRegex$factory_0());
|
|
125
127
|
}
|
|
126
128
|
function _get_noneRegex__1tdbgi($this) {
|
|
127
|
-
return $this.
|
|
129
|
+
return $this.e32_1.r22($this, noneRegex$factory_0());
|
|
128
130
|
}
|
|
129
131
|
function _get_versionRegex__7su5ss($this) {
|
|
130
|
-
return $this.
|
|
132
|
+
return $this.f32_1.r22($this, versionRegex$factory_0());
|
|
133
|
+
}
|
|
134
|
+
function output($this, message, errorMessage) {
|
|
135
|
+
$this.f1s(message);
|
|
136
|
+
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
137
|
+
if (!errorMessage.m()) {
|
|
138
|
+
$this.f1s(errorMessage, VOID, true);
|
|
139
|
+
}
|
|
131
140
|
}
|
|
132
141
|
function versionRegex($this) {
|
|
133
142
|
var tmp = Regex_init_$Create$(_get_noneRegex__1tdbgi($this), RegexOption_IGNORE_CASE_getInstance());
|
|
@@ -146,7 +155,7 @@
|
|
|
146
155
|
return new VersionRegex(tmp, tmp_0, tmp_1, tmp_2, tmp_3);
|
|
147
156
|
}
|
|
148
157
|
function CalculateVersion$lambda($this$context) {
|
|
149
|
-
$this$context.
|
|
158
|
+
$this$context.z1s([new ConfigFileSource($this$context.v1s_1)]);
|
|
150
159
|
return Unit_instance;
|
|
151
160
|
}
|
|
152
161
|
function CalculateVersion$versionRegex$delegate$lambda($tmp2_check_$receiver, $message) {
|
|
@@ -155,11 +164,11 @@
|
|
|
155
164
|
if (!(it == null)) {
|
|
156
165
|
// Inline function 'com.zegreatrob.tools.tagger.cli.CalculateVersion.versionRegex$delegate.stub_for_inlining' call
|
|
157
166
|
var tmp_0;
|
|
158
|
-
if (!$tmp2_check_$receiver.
|
|
167
|
+
if (!$tmp2_check_$receiver.u1o(it)) {
|
|
159
168
|
// Inline function 'com.github.ajalt.clikt.parameters.options.check.<anonymous>.<anonymous>' call
|
|
160
169
|
// Inline function 'com.github.ajalt.clikt.parameters.options.check.<anonymous>' call
|
|
161
170
|
var tmp$ret$2 = $message;
|
|
162
|
-
$this$copy.
|
|
171
|
+
$this$copy.a22(tmp$ret$2);
|
|
163
172
|
}
|
|
164
173
|
tmp = tmp_0;
|
|
165
174
|
}
|
|
@@ -169,26 +178,26 @@
|
|
|
169
178
|
function CalculateVersion() {
|
|
170
179
|
CliktCommand.call(this);
|
|
171
180
|
context(this, CalculateVersion$lambda);
|
|
172
|
-
this.
|
|
173
|
-
this.
|
|
174
|
-
this.
|
|
175
|
-
this.
|
|
176
|
-
this.
|
|
177
|
-
this.
|
|
178
|
-
this.
|
|
179
|
-
this.
|
|
181
|
+
this.x31_1 = optional(argument(this, 'git-repo')).x21(this, gitRepoArgument$factory());
|
|
182
|
+
this.y31_1 = option(this, ['--git-repo'], VOID, VOID, VOID, 'PWD').b23(this, gitRepoOption$factory());
|
|
183
|
+
this.z31_1 = default_0(boolean(option(this, [])), true).b23(this, implicitPatch$factory());
|
|
184
|
+
this.a32_1 = option(this, []).b23(this, releaseBranch$factory());
|
|
185
|
+
this.b32_1 = default_0(option(this, []), Defaults_getInstance().s1o_1.nc_1).b23(this, majorRegex$factory());
|
|
186
|
+
this.c32_1 = default_0(option(this, []), Defaults_getInstance().r1o_1.nc_1).b23(this, minorRegex$factory());
|
|
187
|
+
this.d32_1 = default_0(option(this, []), Defaults_getInstance().q1o_1.nc_1).b23(this, patchRegex$factory());
|
|
188
|
+
this.e32_1 = default_0(option(this, []), Defaults_getInstance().p1o_1.nc_1).b23(this, noneRegex$factory());
|
|
180
189
|
var tmp = this;
|
|
181
190
|
var tmp0 = option(this, []);
|
|
182
191
|
// Inline function 'com.github.ajalt.clikt.parameters.options.check' call
|
|
183
192
|
var message = "version regex must include groups named 'major', 'minor', 'patch', and 'none'.";
|
|
184
193
|
// Inline function 'com.github.ajalt.clikt.parameters.options.check' call
|
|
185
194
|
// Inline function 'com.github.ajalt.clikt.parameters.options.validate' call
|
|
186
|
-
var tmp_0 = tmp0.
|
|
187
|
-
var tmp_1 = tmp0.
|
|
188
|
-
var tmp_2 = tmp0.
|
|
189
|
-
tmp.
|
|
195
|
+
var tmp_0 = tmp0.s21();
|
|
196
|
+
var tmp_1 = tmp0.u22();
|
|
197
|
+
var tmp_2 = tmp0.t21();
|
|
198
|
+
tmp.f32_1 = tmp0.v22(tmp_0, tmp_1, tmp_2, CalculateVersion$versionRegex$delegate$lambda(Companion_instance, message)).b23(this, versionRegex$factory());
|
|
190
199
|
}
|
|
191
|
-
protoOf(CalculateVersion).
|
|
200
|
+
protoOf(CalculateVersion).r1t = function () {
|
|
192
201
|
var tmp = new TaggerCore(new GitAdapter(_get_workingDirectory__eyfbj(this)));
|
|
193
202
|
var tmp_0 = _get_implicitPatch__bjk4pa(this);
|
|
194
203
|
var tmp_1 = versionRegex(this);
|
|
@@ -196,8 +205,15 @@
|
|
|
196
205
|
// Inline function 'kotlin.run' call
|
|
197
206
|
// Inline function 'com.zegreatrob.tools.tagger.cli.CalculateVersion.run.<anonymous>' call
|
|
198
207
|
var $this$run = calculateNextVersion(tmp, tmp_0, tmp_1, tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs);
|
|
199
|
-
|
|
200
|
-
|
|
208
|
+
if ($this$run instanceof Success) {
|
|
209
|
+
output(this, $this$run.v1o_1, $this$run.w1o_1);
|
|
210
|
+
} else {
|
|
211
|
+
if ($this$run instanceof Failure)
|
|
212
|
+
throw new CliktError($this$run.ma());
|
|
213
|
+
else {
|
|
214
|
+
noWhenBranchMatchedException();
|
|
215
|
+
}
|
|
216
|
+
}
|
|
201
217
|
};
|
|
202
218
|
function gitRepoArgument$factory() {
|
|
203
219
|
return getPropertyCallableRef('gitRepoArgument', 1, KProperty1, function (receiver) {
|
|
@@ -311,12 +327,12 @@
|
|
|
311
327
|
while (_iterator__ex2g4s_0.q()) {
|
|
312
328
|
var item = _iterator__ex2g4s_0.r();
|
|
313
329
|
// Inline function 'com.zegreatrob.tools.tagger.cli.ConfigFileSource.findInvocations.<anonymous>' call
|
|
314
|
-
var tmp$ret$0 = Companion_instance_0.
|
|
330
|
+
var tmp$ret$0 = Companion_instance_0.r27(get_jsonPrimitive(item).w2r());
|
|
315
331
|
destination.e(tmp$ret$0);
|
|
316
332
|
}
|
|
317
333
|
return destination;
|
|
318
334
|
}
|
|
319
|
-
return Companion_instance_0.
|
|
335
|
+
return Companion_instance_0.q27(get_jsonPrimitive(cursor).w2r());
|
|
320
336
|
} catch ($p) {
|
|
321
337
|
if ($p instanceof IllegalArgumentException) {
|
|
322
338
|
var _unused_var__etf5q3 = $p;
|
|
@@ -327,9 +343,9 @@
|
|
|
327
343
|
}
|
|
328
344
|
}
|
|
329
345
|
function parts(_this__u8e3s4, $this) {
|
|
330
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
346
|
+
var tmp0_safe_receiver = _this__u8e3s4.f1u();
|
|
331
347
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : split(tmp0_safe_receiver, ['.']);
|
|
332
|
-
return tmp1_elvis_lhs == null ? listOf(kebabToCamelCase(Companion_instance_1.
|
|
348
|
+
return tmp1_elvis_lhs == null ? listOf(kebabToCamelCase(Companion_instance_1.s27(_this__u8e3s4), $this)) : tmp1_elvis_lhs;
|
|
333
349
|
}
|
|
334
350
|
function kebabToCamelCase(_this__u8e3s4, $this) {
|
|
335
351
|
// Inline function 'kotlin.text.toRegex' call
|
|
@@ -339,7 +355,7 @@
|
|
|
339
355
|
return pattern.fd(_this__u8e3s4, transform);
|
|
340
356
|
}
|
|
341
357
|
function readConfigFileAsJsonElement($this) {
|
|
342
|
-
var pwd = $this.
|
|
358
|
+
var pwd = $this.g32_1('PWD');
|
|
343
359
|
var tmp0_elvis_lhs = readFromFile('' + pwd + '/.tagger');
|
|
344
360
|
var tmp;
|
|
345
361
|
if (tmp0_elvis_lhs == null) {
|
|
@@ -355,7 +371,7 @@
|
|
|
355
371
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
356
372
|
var this_2 = serializer(this_1, createKType(getKClass(TaggerConfig), arrayOf([]), false));
|
|
357
373
|
var tmp$ret$1 = isInterface(this_2, KSerializer) ? this_2 : THROW_CCE();
|
|
358
|
-
var config = this_0.
|
|
374
|
+
var config = this_0.j2q(tmp$ret$1, fileContents);
|
|
359
375
|
// Inline function 'kotlinx.serialization.json.encodeToJsonElement' call
|
|
360
376
|
var this_3 = Default_getInstance();
|
|
361
377
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
@@ -363,7 +379,7 @@
|
|
|
363
379
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
364
380
|
var this_5 = serializer(this_4, createKType(getKClass(TaggerConfig), arrayOf([]), false));
|
|
365
381
|
var tmp$ret$4 = isInterface(this_5, KSerializer) ? this_5 : THROW_CCE();
|
|
366
|
-
var configAsElement = this_3.
|
|
382
|
+
var configAsElement = this_3.k2q(tmp$ret$4, config);
|
|
367
383
|
return configAsElement;
|
|
368
384
|
}
|
|
369
385
|
function ConfigFileSource$kebabToCamelCase$lambda(it) {
|
|
@@ -374,9 +390,9 @@
|
|
|
374
390
|
return toString(this_0).toUpperCase();
|
|
375
391
|
}
|
|
376
392
|
function ConfigFileSource(envvarReader) {
|
|
377
|
-
this.
|
|
393
|
+
this.g32_1 = envvarReader;
|
|
378
394
|
}
|
|
379
|
-
protoOf(ConfigFileSource).
|
|
395
|
+
protoOf(ConfigFileSource).d23 = function (context, option) {
|
|
380
396
|
var tmp0_elvis_lhs = readConfigFileAsJsonElement(this);
|
|
381
397
|
var tmp;
|
|
382
398
|
if (tmp0_elvis_lhs == null) {
|
|
@@ -397,10 +413,10 @@
|
|
|
397
413
|
main_0([]);
|
|
398
414
|
}
|
|
399
415
|
function _get_gitRepoArgument__zxde8_0($this) {
|
|
400
|
-
return $this.
|
|
416
|
+
return $this.w32_1.r22($this, gitRepoArgument$factory_2());
|
|
401
417
|
}
|
|
402
418
|
function _get_gitRepoOption__rk7ta0_0($this) {
|
|
403
|
-
return $this.
|
|
419
|
+
return $this.x32_1.r22($this, gitRepoOption$factory_2());
|
|
404
420
|
}
|
|
405
421
|
function _get_workingDirectory__eyfbj_0($this) {
|
|
406
422
|
var tmp0_elvis_lhs = _get_gitRepoArgument__zxde8_0($this);
|
|
@@ -414,47 +430,47 @@
|
|
|
414
430
|
return tmp;
|
|
415
431
|
}
|
|
416
432
|
function _get_releaseBranch__pqrgbs_0($this) {
|
|
417
|
-
return $this.
|
|
433
|
+
return $this.y32_1.r22($this, releaseBranch$factory_2());
|
|
418
434
|
}
|
|
419
435
|
function _get_version__2bx7w9($this) {
|
|
420
|
-
return $this.
|
|
436
|
+
return $this.z32_1.r22($this, version$factory_0());
|
|
421
437
|
}
|
|
422
438
|
function _get_userName__tupjmd($this) {
|
|
423
|
-
return $this.
|
|
439
|
+
return $this.a33_1.r22($this, userName$factory_0());
|
|
424
440
|
}
|
|
425
441
|
function _get_userEmail__21hfkw($this) {
|
|
426
|
-
return $this.
|
|
442
|
+
return $this.b33_1.r22($this, userEmail$factory_0());
|
|
427
443
|
}
|
|
428
444
|
function _get_warningsAsErrors__7mpwfd($this) {
|
|
429
|
-
return $this.
|
|
445
|
+
return $this.c33_1.r22($this, warningsAsErrors$factory_0());
|
|
430
446
|
}
|
|
431
447
|
function Tag$lambda($this$context) {
|
|
432
|
-
$this$context.
|
|
448
|
+
$this$context.z1s([new ConfigFileSource($this$context.v1s_1)]);
|
|
433
449
|
return Unit_instance;
|
|
434
450
|
}
|
|
435
451
|
function Tag() {
|
|
436
452
|
CliktCommand.call(this);
|
|
437
453
|
context(this, Tag$lambda);
|
|
438
|
-
this.
|
|
439
|
-
this.
|
|
440
|
-
this.
|
|
441
|
-
this.
|
|
442
|
-
this.
|
|
443
|
-
this.
|
|
444
|
-
this.
|
|
445
|
-
}
|
|
446
|
-
protoOf(Tag).
|
|
454
|
+
this.w32_1 = optional(argument(this, 'git-repo')).x21(this, gitRepoArgument$factory_1());
|
|
455
|
+
this.x32_1 = option(this, ['--git-repo'], VOID, VOID, VOID, 'PWD').b23(this, gitRepoOption$factory_1());
|
|
456
|
+
this.y32_1 = required(option(this, [])).b23(this, releaseBranch$factory_1());
|
|
457
|
+
this.z32_1 = required(option(this, [])).b23(this, version$factory());
|
|
458
|
+
this.a33_1 = option(this, []).b23(this, userName$factory());
|
|
459
|
+
this.b33_1 = option(this, []).b23(this, userEmail$factory());
|
|
460
|
+
this.c33_1 = default_0(boolean(option(this, [])), false).b23(this, warningsAsErrors$factory());
|
|
461
|
+
}
|
|
462
|
+
protoOf(Tag).r1t = function () {
|
|
447
463
|
// Inline function 'kotlin.let' call
|
|
448
464
|
// Inline function 'com.zegreatrob.tools.tagger.cli.Tag.run.<anonymous>' call
|
|
449
465
|
var it = tag(new TaggerCore(new GitAdapter(_get_workingDirectory__eyfbj_0(this))), _get_version__2bx7w9(this), _get_releaseBranch__pqrgbs_0(this), _get_userName__tupjmd(this), _get_userEmail__21hfkw(this));
|
|
450
466
|
if (equals(it, Success_getInstance())) {
|
|
451
|
-
this.
|
|
467
|
+
this.f1s('Success!');
|
|
452
468
|
} else {
|
|
453
469
|
if (it instanceof Error_0)
|
|
454
470
|
if (_get_warningsAsErrors__7mpwfd(this)) {
|
|
455
|
-
throw new CliktError(it.
|
|
471
|
+
throw new CliktError(it.o1o_1);
|
|
456
472
|
} else {
|
|
457
|
-
this.
|
|
473
|
+
this.f1s(it.o1o_1, VOID, true);
|
|
458
474
|
}
|
|
459
475
|
else {
|
|
460
476
|
noWhenBranchMatchedException();
|
|
@@ -532,28 +548,28 @@
|
|
|
532
548
|
}, null);
|
|
533
549
|
}
|
|
534
550
|
function _get_quiet__c6dzoj($this) {
|
|
535
|
-
return $this.
|
|
551
|
+
return $this.s33_1.r22($this, quiet$factory_0());
|
|
536
552
|
}
|
|
537
553
|
function Tagger$lambda($version, $this) {
|
|
538
554
|
return function ($this$eagerOption) {
|
|
539
555
|
// Inline function 'com.github.ajalt.clikt.parameters.options.versionOption.<anonymous>' call
|
|
540
556
|
var it = $version;
|
|
541
|
-
var tmp$ret$0 = $this.
|
|
557
|
+
var tmp$ret$0 = $this.y1o_1 + ' version ' + it;
|
|
542
558
|
throw new PrintMessage(tmp$ret$0);
|
|
543
559
|
};
|
|
544
560
|
}
|
|
545
561
|
function Tagger() {
|
|
546
562
|
CliktCommand.call(this);
|
|
547
563
|
// Inline function 'com.github.ajalt.clikt.parameters.options.versionOption' call
|
|
548
|
-
var version = Versions_instance.
|
|
564
|
+
var version = Versions_instance.h31_1;
|
|
549
565
|
var help = 'Show the version and exit';
|
|
550
566
|
var names = setOf('--version');
|
|
551
567
|
eagerOption(this, names, help, VOID, VOID, VOID, Tagger$lambda(version, this));
|
|
552
|
-
this.
|
|
568
|
+
this.s33_1 = flag(option(this, ['--quiet', '-q']), [], false).b23(this, quiet$factory());
|
|
553
569
|
}
|
|
554
|
-
protoOf(Tagger).
|
|
570
|
+
protoOf(Tagger).r1t = function () {
|
|
555
571
|
if (!_get_quiet__c6dzoj(this)) {
|
|
556
|
-
this.
|
|
572
|
+
this.f1s('Welcome to Tagger CLI.');
|
|
557
573
|
}
|
|
558
574
|
};
|
|
559
575
|
function quiet$factory() {
|
|
@@ -585,48 +601,48 @@
|
|
|
585
601
|
tmp0_serialDesc.zv('userName', true);
|
|
586
602
|
tmp0_serialDesc.zv('userEmail', true);
|
|
587
603
|
tmp0_serialDesc.zv('warningsAsErrors', true);
|
|
588
|
-
this.
|
|
604
|
+
this.t33_1 = tmp0_serialDesc;
|
|
589
605
|
}
|
|
590
|
-
protoOf($serializer).
|
|
591
|
-
var tmp0_desc = this.
|
|
606
|
+
protoOf($serializer).u33 = function (encoder, value) {
|
|
607
|
+
var tmp0_desc = this.t33_1;
|
|
592
608
|
var tmp1_output = encoder.so(tmp0_desc);
|
|
593
|
-
if (tmp1_output.oq(tmp0_desc, 0) ? true : !(value.
|
|
594
|
-
tmp1_output.kq(tmp0_desc, 0, StringSerializer_getInstance(), value.
|
|
609
|
+
if (tmp1_output.oq(tmp0_desc, 0) ? true : !(value.v33_1 == null)) {
|
|
610
|
+
tmp1_output.kq(tmp0_desc, 0, StringSerializer_getInstance(), value.v33_1);
|
|
595
611
|
}
|
|
596
|
-
if (tmp1_output.oq(tmp0_desc, 1) ? true : !(value.
|
|
597
|
-
tmp1_output.kq(tmp0_desc, 1, BooleanSerializer_getInstance(), value.
|
|
612
|
+
if (tmp1_output.oq(tmp0_desc, 1) ? true : !(value.w33_1 == null)) {
|
|
613
|
+
tmp1_output.kq(tmp0_desc, 1, BooleanSerializer_getInstance(), value.w33_1);
|
|
598
614
|
}
|
|
599
|
-
if (tmp1_output.oq(tmp0_desc, 2) ? true : !(value.
|
|
600
|
-
tmp1_output.kq(tmp0_desc, 2, StringSerializer_getInstance(), value.
|
|
615
|
+
if (tmp1_output.oq(tmp0_desc, 2) ? true : !(value.x33_1 == null)) {
|
|
616
|
+
tmp1_output.kq(tmp0_desc, 2, StringSerializer_getInstance(), value.x33_1);
|
|
601
617
|
}
|
|
602
|
-
if (tmp1_output.oq(tmp0_desc, 3) ? true : !(value.
|
|
603
|
-
tmp1_output.kq(tmp0_desc, 3, StringSerializer_getInstance(), value.
|
|
618
|
+
if (tmp1_output.oq(tmp0_desc, 3) ? true : !(value.y33_1 == null)) {
|
|
619
|
+
tmp1_output.kq(tmp0_desc, 3, StringSerializer_getInstance(), value.y33_1);
|
|
604
620
|
}
|
|
605
|
-
if (tmp1_output.oq(tmp0_desc, 4) ? true : !(value.
|
|
606
|
-
tmp1_output.kq(tmp0_desc, 4, StringSerializer_getInstance(), value.
|
|
621
|
+
if (tmp1_output.oq(tmp0_desc, 4) ? true : !(value.z33_1 == null)) {
|
|
622
|
+
tmp1_output.kq(tmp0_desc, 4, StringSerializer_getInstance(), value.z33_1);
|
|
607
623
|
}
|
|
608
|
-
if (tmp1_output.oq(tmp0_desc, 5) ? true : !(value.
|
|
609
|
-
tmp1_output.kq(tmp0_desc, 5, StringSerializer_getInstance(), value.
|
|
624
|
+
if (tmp1_output.oq(tmp0_desc, 5) ? true : !(value.a34_1 == null)) {
|
|
625
|
+
tmp1_output.kq(tmp0_desc, 5, StringSerializer_getInstance(), value.a34_1);
|
|
610
626
|
}
|
|
611
|
-
if (tmp1_output.oq(tmp0_desc, 6) ? true : !(value.
|
|
612
|
-
tmp1_output.kq(tmp0_desc, 6, StringSerializer_getInstance(), value.
|
|
627
|
+
if (tmp1_output.oq(tmp0_desc, 6) ? true : !(value.b34_1 == null)) {
|
|
628
|
+
tmp1_output.kq(tmp0_desc, 6, StringSerializer_getInstance(), value.b34_1);
|
|
613
629
|
}
|
|
614
|
-
if (tmp1_output.oq(tmp0_desc, 7) ? true : !(value.
|
|
615
|
-
tmp1_output.kq(tmp0_desc, 7, StringSerializer_getInstance(), value.
|
|
630
|
+
if (tmp1_output.oq(tmp0_desc, 7) ? true : !(value.c34_1 == null)) {
|
|
631
|
+
tmp1_output.kq(tmp0_desc, 7, StringSerializer_getInstance(), value.c34_1);
|
|
616
632
|
}
|
|
617
|
-
if (tmp1_output.oq(tmp0_desc, 8) ? true : !(value.
|
|
618
|
-
tmp1_output.kq(tmp0_desc, 8, StringSerializer_getInstance(), value.
|
|
633
|
+
if (tmp1_output.oq(tmp0_desc, 8) ? true : !(value.d34_1 == null)) {
|
|
634
|
+
tmp1_output.kq(tmp0_desc, 8, StringSerializer_getInstance(), value.d34_1);
|
|
619
635
|
}
|
|
620
|
-
if (tmp1_output.oq(tmp0_desc, 9) ? true : !(value.
|
|
621
|
-
tmp1_output.kq(tmp0_desc, 9, BooleanSerializer_getInstance(), value.
|
|
636
|
+
if (tmp1_output.oq(tmp0_desc, 9) ? true : !(value.e34_1 == null)) {
|
|
637
|
+
tmp1_output.kq(tmp0_desc, 9, BooleanSerializer_getInstance(), value.e34_1);
|
|
622
638
|
}
|
|
623
639
|
tmp1_output.to(tmp0_desc);
|
|
624
640
|
};
|
|
625
641
|
protoOf($serializer).ol = function (encoder, value) {
|
|
626
|
-
return this.
|
|
642
|
+
return this.u33(encoder, value instanceof TaggerConfig ? value : THROW_CCE());
|
|
627
643
|
};
|
|
628
644
|
protoOf($serializer).pl = function (decoder) {
|
|
629
|
-
var tmp0_desc = this.
|
|
645
|
+
var tmp0_desc = this.t33_1;
|
|
630
646
|
var tmp1_flag = true;
|
|
631
647
|
var tmp2_index = 0;
|
|
632
648
|
var tmp3_bitMask0 = 0;
|
|
@@ -717,7 +733,7 @@
|
|
|
717
733
|
return TaggerConfig_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, null);
|
|
718
734
|
};
|
|
719
735
|
protoOf($serializer).nl = function () {
|
|
720
|
-
return this.
|
|
736
|
+
return this.t33_1;
|
|
721
737
|
};
|
|
722
738
|
protoOf($serializer).bw = function () {
|
|
723
739
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -733,48 +749,48 @@
|
|
|
733
749
|
}
|
|
734
750
|
function TaggerConfig_init_$Init$(seen0, releaseBranch, implicitPatch, majorRegex, minorRegex, patchRegex, versionRegex, noneRegex, userName, userEmail, warningsAsErrors, serializationConstructorMarker, $this) {
|
|
735
751
|
if (!(0 === (0 & seen0))) {
|
|
736
|
-
throwMissingFieldException(seen0, 0, $serializer_getInstance().
|
|
752
|
+
throwMissingFieldException(seen0, 0, $serializer_getInstance().t33_1);
|
|
737
753
|
}
|
|
738
754
|
if (0 === (seen0 & 1))
|
|
739
|
-
$this.
|
|
755
|
+
$this.v33_1 = null;
|
|
740
756
|
else
|
|
741
|
-
$this.
|
|
757
|
+
$this.v33_1 = releaseBranch;
|
|
742
758
|
if (0 === (seen0 & 2))
|
|
743
|
-
$this.
|
|
759
|
+
$this.w33_1 = null;
|
|
744
760
|
else
|
|
745
|
-
$this.
|
|
761
|
+
$this.w33_1 = implicitPatch;
|
|
746
762
|
if (0 === (seen0 & 4))
|
|
747
|
-
$this.
|
|
763
|
+
$this.x33_1 = null;
|
|
748
764
|
else
|
|
749
|
-
$this.
|
|
765
|
+
$this.x33_1 = majorRegex;
|
|
750
766
|
if (0 === (seen0 & 8))
|
|
751
|
-
$this.
|
|
767
|
+
$this.y33_1 = null;
|
|
752
768
|
else
|
|
753
|
-
$this.
|
|
769
|
+
$this.y33_1 = minorRegex;
|
|
754
770
|
if (0 === (seen0 & 16))
|
|
755
|
-
$this.
|
|
771
|
+
$this.z33_1 = null;
|
|
756
772
|
else
|
|
757
|
-
$this.
|
|
773
|
+
$this.z33_1 = patchRegex;
|
|
758
774
|
if (0 === (seen0 & 32))
|
|
759
|
-
$this.
|
|
775
|
+
$this.a34_1 = null;
|
|
760
776
|
else
|
|
761
|
-
$this.
|
|
777
|
+
$this.a34_1 = versionRegex;
|
|
762
778
|
if (0 === (seen0 & 64))
|
|
763
|
-
$this.
|
|
779
|
+
$this.b34_1 = null;
|
|
764
780
|
else
|
|
765
|
-
$this.
|
|
781
|
+
$this.b34_1 = noneRegex;
|
|
766
782
|
if (0 === (seen0 & 128))
|
|
767
|
-
$this.
|
|
783
|
+
$this.c34_1 = null;
|
|
768
784
|
else
|
|
769
|
-
$this.
|
|
785
|
+
$this.c34_1 = userName;
|
|
770
786
|
if (0 === (seen0 & 256))
|
|
771
|
-
$this.
|
|
787
|
+
$this.d34_1 = null;
|
|
772
788
|
else
|
|
773
|
-
$this.
|
|
789
|
+
$this.d34_1 = userEmail;
|
|
774
790
|
if (0 === (seen0 & 512))
|
|
775
|
-
$this.
|
|
791
|
+
$this.e34_1 = null;
|
|
776
792
|
else
|
|
777
|
-
$this.
|
|
793
|
+
$this.e34_1 = warningsAsErrors;
|
|
778
794
|
return $this;
|
|
779
795
|
}
|
|
780
796
|
function TaggerConfig_init_$Create$(seen0, releaseBranch, implicitPatch, majorRegex, minorRegex, patchRegex, versionRegex, noneRegex, userName, userEmail, warningsAsErrors, serializationConstructorMarker) {
|
|
@@ -791,31 +807,31 @@
|
|
|
791
807
|
userName = userName === VOID ? null : userName;
|
|
792
808
|
userEmail = userEmail === VOID ? null : userEmail;
|
|
793
809
|
warningsAsErrors = warningsAsErrors === VOID ? null : warningsAsErrors;
|
|
794
|
-
this.
|
|
795
|
-
this.
|
|
796
|
-
this.
|
|
797
|
-
this.
|
|
798
|
-
this.
|
|
799
|
-
this.
|
|
800
|
-
this.
|
|
801
|
-
this.
|
|
802
|
-
this.
|
|
803
|
-
this.
|
|
810
|
+
this.v33_1 = releaseBranch;
|
|
811
|
+
this.w33_1 = implicitPatch;
|
|
812
|
+
this.x33_1 = majorRegex;
|
|
813
|
+
this.y33_1 = minorRegex;
|
|
814
|
+
this.z33_1 = patchRegex;
|
|
815
|
+
this.a34_1 = versionRegex;
|
|
816
|
+
this.b34_1 = noneRegex;
|
|
817
|
+
this.c34_1 = userName;
|
|
818
|
+
this.d34_1 = userEmail;
|
|
819
|
+
this.e34_1 = warningsAsErrors;
|
|
804
820
|
}
|
|
805
821
|
protoOf(TaggerConfig).toString = function () {
|
|
806
|
-
return 'TaggerConfig(releaseBranch=' + this.
|
|
822
|
+
return 'TaggerConfig(releaseBranch=' + this.v33_1 + ', implicitPatch=' + this.w33_1 + ', majorRegex=' + this.x33_1 + ', minorRegex=' + this.y33_1 + ', patchRegex=' + this.z33_1 + ', versionRegex=' + this.a34_1 + ', noneRegex=' + this.b34_1 + ', userName=' + this.c34_1 + ', userEmail=' + this.d34_1 + ', warningsAsErrors=' + this.e34_1 + ')';
|
|
807
823
|
};
|
|
808
824
|
protoOf(TaggerConfig).hashCode = function () {
|
|
809
|
-
var result = this.
|
|
810
|
-
result = imul(result, 31) + (this.
|
|
811
|
-
result = imul(result, 31) + (this.t33_1 == null ? 0 : getStringHashCode(this.t33_1)) | 0;
|
|
812
|
-
result = imul(result, 31) + (this.u33_1 == null ? 0 : getStringHashCode(this.u33_1)) | 0;
|
|
813
|
-
result = imul(result, 31) + (this.v33_1 == null ? 0 : getStringHashCode(this.v33_1)) | 0;
|
|
814
|
-
result = imul(result, 31) + (this.w33_1 == null ? 0 : getStringHashCode(this.w33_1)) | 0;
|
|
825
|
+
var result = this.v33_1 == null ? 0 : getStringHashCode(this.v33_1);
|
|
826
|
+
result = imul(result, 31) + (this.w33_1 == null ? 0 : getBooleanHashCode(this.w33_1)) | 0;
|
|
815
827
|
result = imul(result, 31) + (this.x33_1 == null ? 0 : getStringHashCode(this.x33_1)) | 0;
|
|
816
828
|
result = imul(result, 31) + (this.y33_1 == null ? 0 : getStringHashCode(this.y33_1)) | 0;
|
|
817
829
|
result = imul(result, 31) + (this.z33_1 == null ? 0 : getStringHashCode(this.z33_1)) | 0;
|
|
818
|
-
result = imul(result, 31) + (this.a34_1 == null ? 0 :
|
|
830
|
+
result = imul(result, 31) + (this.a34_1 == null ? 0 : getStringHashCode(this.a34_1)) | 0;
|
|
831
|
+
result = imul(result, 31) + (this.b34_1 == null ? 0 : getStringHashCode(this.b34_1)) | 0;
|
|
832
|
+
result = imul(result, 31) + (this.c34_1 == null ? 0 : getStringHashCode(this.c34_1)) | 0;
|
|
833
|
+
result = imul(result, 31) + (this.d34_1 == null ? 0 : getStringHashCode(this.d34_1)) | 0;
|
|
834
|
+
result = imul(result, 31) + (this.e34_1 == null ? 0 : getBooleanHashCode(this.e34_1)) | 0;
|
|
819
835
|
return result;
|
|
820
836
|
};
|
|
821
837
|
protoOf(TaggerConfig).equals = function (other) {
|
|
@@ -824,14 +840,6 @@
|
|
|
824
840
|
if (!(other instanceof TaggerConfig))
|
|
825
841
|
return false;
|
|
826
842
|
var tmp0_other_with_cast = other instanceof TaggerConfig ? other : THROW_CCE();
|
|
827
|
-
if (!(this.r33_1 == tmp0_other_with_cast.r33_1))
|
|
828
|
-
return false;
|
|
829
|
-
if (!(this.s33_1 == tmp0_other_with_cast.s33_1))
|
|
830
|
-
return false;
|
|
831
|
-
if (!(this.t33_1 == tmp0_other_with_cast.t33_1))
|
|
832
|
-
return false;
|
|
833
|
-
if (!(this.u33_1 == tmp0_other_with_cast.u33_1))
|
|
834
|
-
return false;
|
|
835
843
|
if (!(this.v33_1 == tmp0_other_with_cast.v33_1))
|
|
836
844
|
return false;
|
|
837
845
|
if (!(this.w33_1 == tmp0_other_with_cast.w33_1))
|
|
@@ -844,6 +852,14 @@
|
|
|
844
852
|
return false;
|
|
845
853
|
if (!(this.a34_1 == tmp0_other_with_cast.a34_1))
|
|
846
854
|
return false;
|
|
855
|
+
if (!(this.b34_1 == tmp0_other_with_cast.b34_1))
|
|
856
|
+
return false;
|
|
857
|
+
if (!(this.c34_1 == tmp0_other_with_cast.c34_1))
|
|
858
|
+
return false;
|
|
859
|
+
if (!(this.d34_1 == tmp0_other_with_cast.d34_1))
|
|
860
|
+
return false;
|
|
861
|
+
if (!(this.e34_1 == tmp0_other_with_cast.e34_1))
|
|
862
|
+
return false;
|
|
847
863
|
return true;
|
|
848
864
|
};
|
|
849
865
|
//region block: post-declaration
|