git-semver-tagger 2.4.0 → 2.5.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/clikt-clikt-mordant-markdown.js +3 -3
- package/kotlin/clikt-clikt-mordant.js +86 -86
- package/kotlin/clikt-clikt.js +1389 -1385
- package/kotlin/clikt-clikt.js.map +1 -1
- package/kotlin/colormath-root-colormath.js +451 -451
- package/kotlin/command-line-tools-tagger-cli.js +348 -348
- package/kotlin/command-line-tools-tagger-cli.js.map +1 -1
- package/kotlin/kotlin-kotlin-stdlib.js +179 -178
- package/kotlin/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +1590 -1598
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +2029 -1711
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -1
- package/kotlin/markdown.js +1899 -1899
- package/kotlin/mordant-mordant-markdown.js +195 -195
- package/kotlin/mordant-mordant.js +1518 -1518
- package/kotlin/tools-cli-tools.js +3 -3
- package/kotlin/tools-digger-core.js +2 -2
- package/kotlin/tools-git-adapter.js +21 -21
- package/kotlin/tools-tagger-core.js +27 -27
- package/kotlin/tools-tagger-json.js +135 -135
- package/package.json +1 -1
|
@@ -2,28 +2,28 @@
|
|
|
2
2
|
'use strict';
|
|
3
3
|
//region block: imports
|
|
4
4
|
var imul = Math.imul;
|
|
5
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
6
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
5
|
+
var protoOf = kotlin_kotlin.$_$.qa;
|
|
6
|
+
var initMetadataForObject = kotlin_kotlin.$_$.x9;
|
|
7
7
|
var Unit_instance = kotlin_kotlin.$_$.v;
|
|
8
|
-
var Enum = kotlin_kotlin.$_$.
|
|
9
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
8
|
+
var Enum = kotlin_kotlin.$_$.qe;
|
|
9
|
+
var initMetadataForClass = kotlin_kotlin.$_$.s9;
|
|
10
10
|
var VOID = kotlin_kotlin.$_$.c;
|
|
11
|
-
var KProperty1 = kotlin_kotlin.$_$.
|
|
12
|
-
var getPropertyCallableRef = kotlin_kotlin.$_$.
|
|
11
|
+
var KProperty1 = kotlin_kotlin.$_$.lb;
|
|
12
|
+
var getPropertyCallableRef = kotlin_kotlin.$_$.p9;
|
|
13
13
|
var CliktError = kotlin_clikt_clikt.$_$.a;
|
|
14
14
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.a1;
|
|
15
15
|
var readFromFile = kotlin_com_zegreatrob_tools_cli_tools.$_$.b;
|
|
16
16
|
var Default_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.a;
|
|
17
17
|
var TaggerConfig = kotlin_com_zegreatrob_tools_tagger_json.$_$.a;
|
|
18
|
-
var getKClass = kotlin_kotlin.$_$.
|
|
19
|
-
var arrayOf = kotlin_kotlin.$_$.
|
|
20
|
-
var createKType = kotlin_kotlin.$_$.
|
|
18
|
+
var getKClass = kotlin_kotlin.$_$.ib;
|
|
19
|
+
var arrayOf = kotlin_kotlin.$_$.kf;
|
|
20
|
+
var createKType = kotlin_kotlin.$_$.gb;
|
|
21
21
|
var serializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.i2;
|
|
22
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
23
|
-
var KSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.
|
|
24
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
25
|
-
var Exception = kotlin_kotlin.$_$.
|
|
26
|
-
var endsWith = kotlin_kotlin.$_$.
|
|
22
|
+
var THROW_CCE = kotlin_kotlin.$_$.ye;
|
|
23
|
+
var KSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.b2;
|
|
24
|
+
var isInterface = kotlin_kotlin.$_$.ga;
|
|
25
|
+
var Exception = kotlin_kotlin.$_$.re;
|
|
26
|
+
var endsWith = kotlin_kotlin.$_$.hc;
|
|
27
27
|
var collectionSizeOrDefault = kotlin_kotlin.$_$.z4;
|
|
28
28
|
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.z;
|
|
29
29
|
var RegexOption_IGNORE_CASE_getInstance = kotlin_kotlin.$_$.w;
|
|
@@ -37,16 +37,16 @@
|
|
|
37
37
|
var boolean = kotlin_clikt_clikt.$_$.r;
|
|
38
38
|
var default_0 = kotlin_clikt_clikt.$_$.l;
|
|
39
39
|
var mapCapacity = kotlin_kotlin.$_$.s6;
|
|
40
|
-
var coerceAtLeast = kotlin_kotlin.$_$.
|
|
40
|
+
var coerceAtLeast = kotlin_kotlin.$_$.ya;
|
|
41
41
|
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.i1;
|
|
42
42
|
var choice = kotlin_clikt_clikt.$_$.s;
|
|
43
43
|
var Defaults_getInstance = kotlin_com_zegreatrob_tools_tagger_core.$_$.j;
|
|
44
44
|
var Companion_instance = kotlin_com_zegreatrob_tools_tagger_core.$_$.i;
|
|
45
|
-
var trimIndent = kotlin_kotlin.$_$.
|
|
45
|
+
var trimIndent = kotlin_kotlin.$_$.de;
|
|
46
46
|
var GitAdapter = kotlin_com_zegreatrob_tools_git_adapter.$_$.a;
|
|
47
47
|
var TaggerCore = kotlin_com_zegreatrob_tools_tagger_core.$_$.b;
|
|
48
48
|
var calculateNextVersion = kotlin_com_zegreatrob_tools_tagger_core.$_$.f;
|
|
49
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.
|
|
49
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.uf;
|
|
50
50
|
var Failure = kotlin_com_zegreatrob_tools_tagger_core.$_$.d;
|
|
51
51
|
var plus = kotlin_kotlin.$_$.b7;
|
|
52
52
|
var joinToString = kotlin_kotlin.$_$.d6;
|
|
@@ -57,12 +57,12 @@
|
|
|
57
57
|
var Companion_instance_0 = kotlin_clikt_clikt.$_$.u;
|
|
58
58
|
var get_jsonPrimitive = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.i;
|
|
59
59
|
var JsonArray = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.b;
|
|
60
|
-
var IllegalArgumentException = kotlin_kotlin.$_$.
|
|
61
|
-
var split = kotlin_kotlin.$_$.
|
|
60
|
+
var IllegalArgumentException = kotlin_kotlin.$_$.se;
|
|
61
|
+
var split = kotlin_kotlin.$_$.id;
|
|
62
62
|
var Companion_instance_1 = kotlin_clikt_clikt.$_$.t;
|
|
63
63
|
var listOf = kotlin_kotlin.$_$.q6;
|
|
64
64
|
var Regex_init_$Create$_0 = kotlin_kotlin.$_$.n1;
|
|
65
|
-
var last = kotlin_kotlin.$_$.
|
|
65
|
+
var last = kotlin_kotlin.$_$.uc;
|
|
66
66
|
var toString = kotlin_kotlin.$_$.m2;
|
|
67
67
|
var JsonObjectBuilder = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.d;
|
|
68
68
|
var get_jsonObject = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.h;
|
|
@@ -70,25 +70,25 @@
|
|
|
70
70
|
var optionalValue = kotlin_clikt_clikt.$_$.o;
|
|
71
71
|
var Json = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.f;
|
|
72
72
|
var get_runtimeDefaultConfig = kotlin_com_zegreatrob_tools_tagger_json.$_$.b;
|
|
73
|
-
var isBlank = kotlin_kotlin.$_$.
|
|
73
|
+
var isBlank = kotlin_kotlin.$_$.nc;
|
|
74
74
|
var writeToFile = kotlin_com_zegreatrob_tools_cli_tools.$_$.c;
|
|
75
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
75
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.t9;
|
|
76
76
|
var PluginGeneratedSerialDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.s1;
|
|
77
77
|
var UnknownFieldException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.l;
|
|
78
78
|
var StringSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.j;
|
|
79
79
|
var typeParametersSerializers = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.n1;
|
|
80
80
|
var GeneratedSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.o1;
|
|
81
|
-
var throwMissingFieldException = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.
|
|
82
|
-
var objectCreate = kotlin_kotlin.$_$.
|
|
83
|
-
var getStringHashCode = kotlin_kotlin.$_$.
|
|
81
|
+
var throwMissingFieldException = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.w1;
|
|
82
|
+
var objectCreate = kotlin_kotlin.$_$.pa;
|
|
83
|
+
var getStringHashCode = kotlin_kotlin.$_$.q9;
|
|
84
84
|
var ArrayListSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.l1;
|
|
85
85
|
var LazyThreadSafetyMode_PUBLICATION_getInstance = kotlin_kotlin.$_$.y;
|
|
86
|
-
var lazy = kotlin_kotlin.$_$.
|
|
87
|
-
var equals = kotlin_kotlin.$_$.
|
|
86
|
+
var lazy = kotlin_kotlin.$_$.sf;
|
|
87
|
+
var equals = kotlin_kotlin.$_$.m9;
|
|
88
88
|
var BooleanSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.i;
|
|
89
|
-
var toString_0 = kotlin_kotlin.$_$.
|
|
90
|
-
var getBooleanHashCode = kotlin_kotlin.$_$.
|
|
91
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
89
|
+
var toString_0 = kotlin_kotlin.$_$.sa;
|
|
90
|
+
var getBooleanHashCode = kotlin_kotlin.$_$.n9;
|
|
91
|
+
var hashCode = kotlin_kotlin.$_$.r9;
|
|
92
92
|
var SerializableWith = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.d2;
|
|
93
93
|
var platformArgCorrection = kotlin_com_zegreatrob_tools_cli_tools.$_$.a;
|
|
94
94
|
var main = kotlin_clikt_clikt.$_$.f;
|
|
@@ -129,7 +129,7 @@
|
|
|
129
129
|
initMetadataForClass(Tagger, 'Tagger', Tagger, CliktCommand);
|
|
130
130
|
//endregion
|
|
131
131
|
function Versions() {
|
|
132
|
-
this.
|
|
132
|
+
this.s3f_1 = '2.5.0';
|
|
133
133
|
}
|
|
134
134
|
var Versions_instance;
|
|
135
135
|
function Versions_getInstance() {
|
|
@@ -153,11 +153,11 @@
|
|
|
153
153
|
}
|
|
154
154
|
function _get_gitRepoArgument__zxde8($this) {
|
|
155
155
|
var tmp = KProperty1;
|
|
156
|
-
return $this.
|
|
156
|
+
return $this.i3g_1.f1n($this, getPropertyCallableRef('gitRepoArgument', 1, tmp, CalculateVersion$_get_gitRepoArgument_$ref_ekksr7_0(), null));
|
|
157
157
|
}
|
|
158
158
|
function _get_gitRepoOption__rk7ta0($this) {
|
|
159
159
|
var tmp = KProperty1;
|
|
160
|
-
return $this.
|
|
160
|
+
return $this.j3g_1.f1n($this, getPropertyCallableRef('gitRepoOption', 1, tmp, CalculateVersion$_get_gitRepoOption_$ref_ms8ohh_0(), null));
|
|
161
161
|
}
|
|
162
162
|
function _get_workingDirectory__eyfbj($this) {
|
|
163
163
|
var tmp0_elvis_lhs = _get_gitRepoArgument__zxde8($this);
|
|
@@ -172,15 +172,15 @@
|
|
|
172
172
|
}
|
|
173
173
|
function _get_implicitPatch__bjk4pa($this) {
|
|
174
174
|
var tmp = KProperty1;
|
|
175
|
-
return $this.
|
|
175
|
+
return $this.k3g_1.f1n($this, getPropertyCallableRef('implicitPatch', 1, tmp, CalculateVersion$_get_implicitPatch_$ref_8lm4hh_0(), null));
|
|
176
176
|
}
|
|
177
177
|
function _get_disableDetachedDeprecated__wab4kc($this) {
|
|
178
178
|
var tmp = KProperty1;
|
|
179
|
-
return $this.
|
|
179
|
+
return $this.l3g_1.f1n($this, getPropertyCallableRef('disableDetachedDeprecated', 1, tmp, CalculateVersion$_get_disableDetachedDeprecated_$ref_ej45b3_0(), null));
|
|
180
180
|
}
|
|
181
181
|
function _get_allowDetachedHeadOption__9wrgdb($this) {
|
|
182
182
|
var tmp = KProperty1;
|
|
183
|
-
return $this.
|
|
183
|
+
return $this.m3g_1.f1n($this, getPropertyCallableRef('allowDetachedHeadOption', 1, tmp, CalculateVersion$_get_allowDetachedHeadOption_$ref_3ju9um_0(), null));
|
|
184
184
|
}
|
|
185
185
|
function _get_allowDetachedHead__iyebhm($this) {
|
|
186
186
|
var tmp0_elvis_lhs = _get_allowDetachedHeadOption__9wrgdb($this);
|
|
@@ -203,39 +203,39 @@
|
|
|
203
203
|
}
|
|
204
204
|
function _get_forceSnapshot__vb3h7m($this) {
|
|
205
205
|
var tmp = KProperty1;
|
|
206
|
-
return $this.
|
|
206
|
+
return $this.n3g_1.f1n($this, getPropertyCallableRef('forceSnapshot', 1, tmp, CalculateVersion$_get_forceSnapshot_$ref_8rl68v_0(), null));
|
|
207
207
|
}
|
|
208
208
|
function _get_releaseBranch__pqrgbs($this) {
|
|
209
209
|
var tmp = KProperty1;
|
|
210
|
-
return $this.
|
|
210
|
+
return $this.o3g_1.f1n($this, getPropertyCallableRef('releaseBranch', 1, tmp, CalculateVersion$_get_releaseBranch_$ref_3xh47v_0(), null));
|
|
211
211
|
}
|
|
212
212
|
function _get_format__qlarck($this) {
|
|
213
213
|
var tmp = KProperty1;
|
|
214
|
-
return $this.
|
|
214
|
+
return $this.p3g_1.f1n($this, getPropertyCallableRef('format', 1, tmp, CalculateVersion$_get_format_$ref_clhcb9_0(), null));
|
|
215
215
|
}
|
|
216
216
|
function _get_warningsAsErrors__7mpwfd($this) {
|
|
217
217
|
var tmp = KProperty1;
|
|
218
|
-
return $this.
|
|
218
|
+
return $this.q3g_1.f1n($this, getPropertyCallableRef('warningsAsErrors', 1, tmp, CalculateVersion$_get_warningsAsErrors_$ref_ncq8fs_0(), null));
|
|
219
219
|
}
|
|
220
220
|
function _get_majorRegex__5j6ypp($this) {
|
|
221
221
|
var tmp = KProperty1;
|
|
222
|
-
return $this.
|
|
222
|
+
return $this.r3g_1.f1n($this, getPropertyCallableRef('majorRegex', 1, tmp, CalculateVersion$_get_majorRegex_$ref_erugf6_0(), null));
|
|
223
223
|
}
|
|
224
224
|
function _get_minorRegex__20z96h($this) {
|
|
225
225
|
var tmp = KProperty1;
|
|
226
|
-
return $this.
|
|
226
|
+
return $this.s3g_1.f1n($this, getPropertyCallableRef('minorRegex', 1, tmp, CalculateVersion$_get_minorRegex_$ref_u1fzja_0(), null));
|
|
227
227
|
}
|
|
228
228
|
function _get_patchRegex__mtlu2c($this) {
|
|
229
229
|
var tmp = KProperty1;
|
|
230
|
-
return $this.
|
|
230
|
+
return $this.t3g_1.f1n($this, getPropertyCallableRef('patchRegex', 1, tmp, CalculateVersion$_get_patchRegex_$ref_124637_0(), null));
|
|
231
231
|
}
|
|
232
232
|
function _get_noneRegex__1tdbgi($this) {
|
|
233
233
|
var tmp = KProperty1;
|
|
234
|
-
return $this.
|
|
234
|
+
return $this.u3g_1.f1n($this, getPropertyCallableRef('noneRegex', 1, tmp, CalculateVersion$_get_noneRegex_$ref_vcaxfl_0(), null));
|
|
235
235
|
}
|
|
236
236
|
function _get_versionRegex__7su5ss($this) {
|
|
237
237
|
var tmp = KProperty1;
|
|
238
|
-
return $this.
|
|
238
|
+
return $this.v3g_1.f1n($this, getPropertyCallableRef('versionRegex', 1, tmp, CalculateVersion$_get_versionRegex_$ref_f466m5_0(), null));
|
|
239
239
|
}
|
|
240
240
|
function disableDetachedDeprecationWarning($this) {
|
|
241
241
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
@@ -262,12 +262,12 @@
|
|
|
262
262
|
// Inline function 'kotlinx.serialization.json.Json.decodeFromString' call
|
|
263
263
|
var this_0 = Default_getInstance();
|
|
264
264
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
265
|
-
var this_1 = this_0.
|
|
265
|
+
var this_1 = this_0.ks();
|
|
266
266
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
267
267
|
var this_2 = serializer(this_1, createKType(getKClass(TaggerConfig), arrayOf([]), false));
|
|
268
268
|
var tmp$ret$1 = isInterface(this_2, KSerializer) ? this_2 : THROW_CCE();
|
|
269
|
-
var config = this_0.
|
|
270
|
-
tmp_0 = !(config.
|
|
269
|
+
var config = this_0.s31(tmp$ret$1, configFile);
|
|
270
|
+
tmp_0 = !(config.y18_1 == null);
|
|
271
271
|
} catch ($p) {
|
|
272
272
|
var tmp_1;
|
|
273
273
|
if ($p instanceof Exception) {
|
|
@@ -281,21 +281,21 @@
|
|
|
281
281
|
return tmp_0;
|
|
282
282
|
}
|
|
283
283
|
function output($this, message, errorMessage, warnings) {
|
|
284
|
-
$this.
|
|
284
|
+
$this.r1c(message);
|
|
285
285
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
286
286
|
if (!errorMessage.p()) {
|
|
287
287
|
// Inline function 'kotlin.collections.forEach' call
|
|
288
288
|
var _iterator__ex2g4s = errorMessage.r();
|
|
289
289
|
while (_iterator__ex2g4s.s()) {
|
|
290
290
|
var element = _iterator__ex2g4s.t();
|
|
291
|
-
$this.
|
|
291
|
+
$this.r1c(formatSnapshotReason($this, element), VOID, true);
|
|
292
292
|
}
|
|
293
293
|
}
|
|
294
294
|
// Inline function 'kotlin.collections.forEach' call
|
|
295
295
|
var _iterator__ex2g4s_0 = warnings.r();
|
|
296
296
|
while (_iterator__ex2g4s_0.s()) {
|
|
297
297
|
var element_0 = _iterator__ex2g4s_0.t();
|
|
298
|
-
$this.
|
|
298
|
+
$this.r1c(element_0, VOID, true);
|
|
299
299
|
}
|
|
300
300
|
}
|
|
301
301
|
function formatSnapshotReason($this, reason) {
|
|
@@ -313,7 +313,7 @@
|
|
|
313
313
|
destination.v(tmp$ret$2);
|
|
314
314
|
}
|
|
315
315
|
var jsonOutput = versionSuccessResponse(new VersionData(version, isSnapshot, destination, warnings));
|
|
316
|
-
$this.
|
|
316
|
+
$this.r1c(jsonOutput);
|
|
317
317
|
}
|
|
318
318
|
function buildVersionRegex($this) {
|
|
319
319
|
var tmp = Regex_init_$Create$(_get_noneRegex__1tdbgi($this), RegexOption_IGNORE_CASE_getInstance());
|
|
@@ -331,7 +331,7 @@
|
|
|
331
331
|
return new VersionRegex(tmp, tmp_0, tmp_1, tmp_2, tmp_3);
|
|
332
332
|
}
|
|
333
333
|
function CalculateVersion$lambda($this$context) {
|
|
334
|
-
$this$context.
|
|
334
|
+
$this$context.l1d([new ConfigFileSource($this$context.h1d_1)]);
|
|
335
335
|
return Unit_instance;
|
|
336
336
|
}
|
|
337
337
|
function CalculateVersion$_get_gitRepoArgument_$ref_ekksr7() {
|
|
@@ -471,7 +471,7 @@
|
|
|
471
471
|
// Inline function 'com.github.ajalt.clikt.parameters.options.OptionTransformContext.require' call
|
|
472
472
|
if (!$tmp4_check_this.ro(it)) {
|
|
473
473
|
var tmp$ret$3 = $message;
|
|
474
|
-
$this$copy.
|
|
474
|
+
$this$copy.o1m(tmp$ret$3);
|
|
475
475
|
}
|
|
476
476
|
tmp = Unit_instance;
|
|
477
477
|
}
|
|
@@ -493,7 +493,7 @@
|
|
|
493
493
|
var _iterator__ex2g4s = deprecationWarnings.r();
|
|
494
494
|
while (_iterator__ex2g4s.s()) {
|
|
495
495
|
var element = _iterator__ex2g4s.t();
|
|
496
|
-
this$0.
|
|
496
|
+
this$0.r1c(element, VOID, true);
|
|
497
497
|
}
|
|
498
498
|
return Unit_instance;
|
|
499
499
|
}
|
|
@@ -503,31 +503,31 @@
|
|
|
503
503
|
var tmp = this;
|
|
504
504
|
var tmp_0 = optional(argument(this, 'git-repo'));
|
|
505
505
|
var tmp_1 = KProperty1;
|
|
506
|
-
tmp.
|
|
506
|
+
tmp.i3g_1 = tmp_0.l1m(this, getPropertyCallableRef('gitRepoArgument', 1, tmp_1, CalculateVersion$_get_gitRepoArgument_$ref_ekksr7(), null));
|
|
507
507
|
var tmp_2 = this;
|
|
508
508
|
var tmp_3 = option(this, ['--git-repo'], VOID, VOID, VOID, 'PWD');
|
|
509
509
|
var tmp_4 = KProperty1;
|
|
510
|
-
tmp_2.
|
|
510
|
+
tmp_2.j3g_1 = tmp_3.p1n(this, getPropertyCallableRef('gitRepoOption', 1, tmp_4, CalculateVersion$_get_gitRepoOption_$ref_ms8ohh(), null));
|
|
511
511
|
var tmp_5 = this;
|
|
512
512
|
var tmp_6 = default_0(boolean(option(this, [], 'Automatically bump patch version when no version-tagged commits exist since last release.')), true);
|
|
513
513
|
var tmp_7 = KProperty1;
|
|
514
|
-
tmp_5.
|
|
514
|
+
tmp_5.k3g_1 = tmp_6.p1n(this, getPropertyCallableRef('implicitPatch', 1, tmp_7, CalculateVersion$_get_implicitPatch_$ref_8lm4hh(), null));
|
|
515
515
|
var tmp_8 = this;
|
|
516
516
|
var tmp_9 = boolean(option(this, ['--disable-detached'], VOID, VOID, true));
|
|
517
517
|
var tmp_10 = KProperty1;
|
|
518
|
-
tmp_8.
|
|
518
|
+
tmp_8.l3g_1 = tmp_9.p1n(this, getPropertyCallableRef('disableDetachedDeprecated', 1, tmp_10, CalculateVersion$_get_disableDetachedDeprecated_$ref_ej45b3(), null));
|
|
519
519
|
var tmp_11 = this;
|
|
520
520
|
var tmp_12 = boolean(option(this, ['--allow-detached-head'], 'Allow version calculation in detached HEAD state. Detached HEAD is blocked by default as it can produce unreliable version calculations.'));
|
|
521
521
|
var tmp_13 = KProperty1;
|
|
522
|
-
tmp_11.
|
|
522
|
+
tmp_11.m3g_1 = tmp_12.p1n(this, getPropertyCallableRef('allowDetachedHeadOption', 1, tmp_13, CalculateVersion$_get_allowDetachedHeadOption_$ref_3ju9um(), null));
|
|
523
523
|
var tmp_14 = this;
|
|
524
524
|
var tmp_15 = default_0(boolean(option(this, [], 'Force -SNAPSHOT suffix on version, overriding normal release conditions. Use for testing or CI workflows that require snapshot versions.')), false);
|
|
525
525
|
var tmp_16 = KProperty1;
|
|
526
|
-
tmp_14.
|
|
526
|
+
tmp_14.n3g_1 = tmp_15.p1n(this, getPropertyCallableRef('forceSnapshot', 1, tmp_16, CalculateVersion$_get_forceSnapshot_$ref_8rl68v(), null));
|
|
527
527
|
var tmp_17 = this;
|
|
528
528
|
var tmp_18 = option(this, [], 'Specify release branch name. Versions are release versions only on this branch; other branches produce -SNAPSHOT versions.');
|
|
529
529
|
var tmp_19 = KProperty1;
|
|
530
|
-
tmp_17.
|
|
530
|
+
tmp_17.o3g_1 = tmp_18.p1n(this, getPropertyCallableRef('releaseBranch', 1, tmp_19, CalculateVersion$_get_releaseBranch_$ref_3xh47v(), null));
|
|
531
531
|
var tmp_20 = this;
|
|
532
532
|
// Inline function 'com.github.ajalt.clikt.parameters.types.enum' call
|
|
533
533
|
var this_0 = option(this, ['--format'], 'Use json for structured data with version, snapshot status, and diagnostic flags.');
|
|
@@ -550,44 +550,44 @@
|
|
|
550
550
|
var tmp$ret$0 = choice(this_0, destination, VOID, true);
|
|
551
551
|
var tmp_21 = default_0(tmp$ret$0, OutputFormat_TEXT_getInstance(), 'text');
|
|
552
552
|
var tmp_22 = KProperty1;
|
|
553
|
-
tmp_20.
|
|
553
|
+
tmp_20.p3g_1 = tmp_21.p1n(this, getPropertyCallableRef('format', 1, tmp_22, CalculateVersion$_get_format_$ref_clhcb9(), null));
|
|
554
554
|
var tmp_23 = this;
|
|
555
555
|
var tmp_24 = default_0(boolean(option(this, [])), false);
|
|
556
556
|
var tmp_25 = KProperty1;
|
|
557
|
-
tmp_23.
|
|
557
|
+
tmp_23.q3g_1 = tmp_24.p1n(this, getPropertyCallableRef('warningsAsErrors', 1, tmp_25, CalculateVersion$_get_warningsAsErrors_$ref_ncq8fs(), null));
|
|
558
558
|
var tmp_26 = this;
|
|
559
559
|
var tmp_27 = default_0(option(this, []), Defaults_getInstance().po_1.tb_1);
|
|
560
560
|
var tmp_28 = KProperty1;
|
|
561
|
-
tmp_26.
|
|
561
|
+
tmp_26.r3g_1 = tmp_27.p1n(this, getPropertyCallableRef('majorRegex', 1, tmp_28, CalculateVersion$_get_majorRegex_$ref_erugf6(), null));
|
|
562
562
|
var tmp_29 = this;
|
|
563
563
|
var tmp_30 = default_0(option(this, []), Defaults_getInstance().oo_1.tb_1);
|
|
564
564
|
var tmp_31 = KProperty1;
|
|
565
|
-
tmp_29.
|
|
565
|
+
tmp_29.s3g_1 = tmp_30.p1n(this, getPropertyCallableRef('minorRegex', 1, tmp_31, CalculateVersion$_get_minorRegex_$ref_u1fzja(), null));
|
|
566
566
|
var tmp_32 = this;
|
|
567
567
|
var tmp_33 = default_0(option(this, []), Defaults_getInstance().no_1.tb_1);
|
|
568
568
|
var tmp_34 = KProperty1;
|
|
569
|
-
tmp_32.
|
|
569
|
+
tmp_32.t3g_1 = tmp_33.p1n(this, getPropertyCallableRef('patchRegex', 1, tmp_34, CalculateVersion$_get_patchRegex_$ref_124637(), null));
|
|
570
570
|
var tmp_35 = this;
|
|
571
571
|
var tmp_36 = default_0(option(this, []), Defaults_getInstance().mo_1.tb_1);
|
|
572
572
|
var tmp_37 = KProperty1;
|
|
573
|
-
tmp_35.
|
|
573
|
+
tmp_35.u3g_1 = tmp_36.p1n(this, getPropertyCallableRef('noneRegex', 1, tmp_37, CalculateVersion$_get_noneRegex_$ref_vcaxfl(), null));
|
|
574
574
|
var tmp_38 = this;
|
|
575
575
|
var tmp0 = option(this, []);
|
|
576
576
|
// Inline function 'com.github.ajalt.clikt.parameters.options.check' call
|
|
577
577
|
var message = "version regex must include groups named 'major', 'minor', 'patch', and 'none'.";
|
|
578
578
|
// Inline function 'com.github.ajalt.clikt.parameters.options.check' call
|
|
579
579
|
// Inline function 'com.github.ajalt.clikt.parameters.options.validate' call
|
|
580
|
-
var tmp_39 = tmp0.
|
|
581
|
-
var tmp_40 = tmp0.
|
|
582
|
-
var tmp_41 = tmp0.
|
|
583
|
-
var tmp_42 = tmp0.
|
|
580
|
+
var tmp_39 = tmp0.g1m();
|
|
581
|
+
var tmp_40 = tmp0.i1n();
|
|
582
|
+
var tmp_41 = tmp0.h1m();
|
|
583
|
+
var tmp_42 = tmp0.j1n(tmp_39, tmp_40, tmp_41, CalculateVersion$versionRegex$delegate$lambda(Companion_instance, message));
|
|
584
584
|
var tmp_43 = KProperty1;
|
|
585
|
-
tmp_38.
|
|
585
|
+
tmp_38.v3g_1 = tmp_42.p1n(this, getPropertyCallableRef('versionRegex', 1, tmp_43, CalculateVersion$_get_versionRegex_$ref_f466m5(), null));
|
|
586
586
|
}
|
|
587
|
-
protoOf(CalculateVersion).
|
|
588
|
-
return trimIndent('\n ' + protoOf(CliktCommand).
|
|
587
|
+
protoOf(CalculateVersion).i1b = function (context) {
|
|
588
|
+
return trimIndent('\n ' + protoOf(CliktCommand).i1b.call(this, context) + '\n\n ## Snapshot Reasons & Remediation\n\n When calculate-version outputs a version ending in `-SNAPSHOT`, one or more conditions prevent a release version:\n\n | Reason | Remediation |\n |--------|-------------|\n | `FORCED` \u2014 Snapshot forced via `--force-snapshot` flag | Remove `--force-snapshot` flag when ready for release |\n | `DIRTY` \u2014 Uncommitted changes in working directory | Commit or stash changes before tagging |\n | `AHEAD` \u2014 Local branch ahead of remote | Push changes before tagging |\n | `BEHIND` \u2014 Local branch behind remote | Pull changes before tagging |\n | `NOT_RELEASE_BRANCH` \u2014 Not on configured release branch | Switch to release branch before tagging (default: main) |\n | `NO_NEW_VERSION` \u2014 No new commits since last tag | Add commits with version annotations (`[major]`, `[minor]`, `[patch]`) |\n\n ' + configFileHelpSuffix() + '\n ');
|
|
589
589
|
};
|
|
590
|
-
protoOf(CalculateVersion).
|
|
590
|
+
protoOf(CalculateVersion).e1e = function () {
|
|
591
591
|
var deprecationWarnings = disableDetachedDeprecationWarning(this);
|
|
592
592
|
var tmp = new TaggerCore(new GitAdapter(_get_workingDirectory__eyfbj(this)));
|
|
593
593
|
var tmp_0 = _get_implicitPatch__bjk4pa(this);
|
|
@@ -605,7 +605,7 @@
|
|
|
605
605
|
switch (_get_format__qlarck(this).y2_1) {
|
|
606
606
|
case 1:
|
|
607
607
|
if (shouldEscalate) {
|
|
608
|
-
this.
|
|
608
|
+
this.r1c(errorResponse('Warnings escalated to errors: ' + joinToString(allWarnings, '; '), 'WARNINGS_AS_ERRORS'));
|
|
609
609
|
} else {
|
|
610
610
|
outputJson(this, $this$run.so_1, $this$run.to_1, allWarnings);
|
|
611
611
|
}
|
|
@@ -626,7 +626,7 @@
|
|
|
626
626
|
switch (_get_format__qlarck(this).y2_1) {
|
|
627
627
|
case 1:
|
|
628
628
|
run$outputDeprecationWarnings(deprecationWarnings, this);
|
|
629
|
-
this.
|
|
629
|
+
this.r1c(errorResponse($this$run.ba(), 'CONFIGURATION_ERROR'));
|
|
630
630
|
throw new CliktError('', VOID, 1, false);
|
|
631
631
|
case 0:
|
|
632
632
|
run$outputDeprecationWarnings(deprecationWarnings, this);
|
|
@@ -680,12 +680,12 @@
|
|
|
680
680
|
var _iterator__ex2g4s = cursor.r();
|
|
681
681
|
while (_iterator__ex2g4s.s()) {
|
|
682
682
|
var item = _iterator__ex2g4s.t();
|
|
683
|
-
var tmp$ret$2 = Companion_instance_0.
|
|
683
|
+
var tmp$ret$2 = Companion_instance_0.h1s(get_jsonPrimitive(item).d34());
|
|
684
684
|
destination.v(tmp$ret$2);
|
|
685
685
|
}
|
|
686
686
|
tmp_0 = destination;
|
|
687
687
|
} else {
|
|
688
|
-
tmp_0 = Companion_instance_0.
|
|
688
|
+
tmp_0 = Companion_instance_0.g1s(get_jsonPrimitive(cursor).d34());
|
|
689
689
|
}
|
|
690
690
|
tmp = tmp_0;
|
|
691
691
|
} catch ($p) {
|
|
@@ -701,9 +701,9 @@
|
|
|
701
701
|
return tmp;
|
|
702
702
|
}
|
|
703
703
|
function parts($this, $receiver) {
|
|
704
|
-
var tmp0_safe_receiver = $receiver.
|
|
704
|
+
var tmp0_safe_receiver = $receiver.s1e();
|
|
705
705
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : split(tmp0_safe_receiver, ['.']);
|
|
706
|
-
return tmp1_elvis_lhs == null ? listOf(kebabToCamelCase($this, Companion_instance_1.
|
|
706
|
+
return tmp1_elvis_lhs == null ? listOf(kebabToCamelCase($this, Companion_instance_1.i1s($receiver))) : tmp1_elvis_lhs;
|
|
707
707
|
}
|
|
708
708
|
function kebabToCamelCase($this, $receiver) {
|
|
709
709
|
// Inline function 'kotlin.text.toRegex' call
|
|
@@ -713,7 +713,7 @@
|
|
|
713
713
|
return pattern.lc($receiver, transform);
|
|
714
714
|
}
|
|
715
715
|
function readConfigFileAsJsonElement($this) {
|
|
716
|
-
var pwd = $this.
|
|
716
|
+
var pwd = $this.w3g_1('PWD');
|
|
717
717
|
var tmp0_elvis_lhs = readFromFile('' + pwd + '/.tagger');
|
|
718
718
|
var tmp;
|
|
719
719
|
if (tmp0_elvis_lhs == null) {
|
|
@@ -727,11 +727,11 @@
|
|
|
727
727
|
// Inline function 'kotlinx.serialization.json.Json.decodeFromString' call
|
|
728
728
|
var this_0 = Default_getInstance();
|
|
729
729
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
730
|
-
var this_1 = this_0.
|
|
730
|
+
var this_1 = this_0.ks();
|
|
731
731
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
732
732
|
var this_2 = serializer(this_1, createKType(getKClass(TaggerConfig), arrayOf([]), false));
|
|
733
733
|
var tmp$ret$1 = isInterface(this_2, KSerializer) ? this_2 : THROW_CCE();
|
|
734
|
-
tmp_0 = this_0.
|
|
734
|
+
tmp_0 = this_0.s31(tmp$ret$1, fileContents);
|
|
735
735
|
} catch ($p) {
|
|
736
736
|
var tmp_1;
|
|
737
737
|
if ($p instanceof Exception) {
|
|
@@ -745,11 +745,11 @@
|
|
|
745
745
|
// Inline function 'kotlinx.serialization.json.encodeToJsonElement' call
|
|
746
746
|
var this_3 = Default_getInstance();
|
|
747
747
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
748
|
-
var this_4 = this_3.
|
|
748
|
+
var this_4 = this_3.ks();
|
|
749
749
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
750
750
|
var this_5 = serializer(this_4, createKType(getKClass(TaggerConfig), arrayOf([]), false));
|
|
751
751
|
var tmp$ret$4 = isInterface(this_5, KSerializer) ? this_5 : THROW_CCE();
|
|
752
|
-
var configAsElement = this_3.
|
|
752
|
+
var configAsElement = this_3.t31(tmp$ret$4, config);
|
|
753
753
|
return configAsElement;
|
|
754
754
|
}
|
|
755
755
|
function ConfigFileSource$kebabToCamelCase$lambda(it) {
|
|
@@ -760,9 +760,9 @@
|
|
|
760
760
|
return toString(this_0).toUpperCase();
|
|
761
761
|
}
|
|
762
762
|
function ConfigFileSource(envvarReader) {
|
|
763
|
-
this.
|
|
763
|
+
this.w3g_1 = envvarReader;
|
|
764
764
|
}
|
|
765
|
-
protoOf(ConfigFileSource).
|
|
765
|
+
protoOf(ConfigFileSource).r1n = function (context, option) {
|
|
766
766
|
var tmp0_elvis_lhs = readConfigFileAsJsonElement(this);
|
|
767
767
|
var tmp;
|
|
768
768
|
if (tmp0_elvis_lhs == null) {
|
|
@@ -775,11 +775,11 @@
|
|
|
775
775
|
};
|
|
776
776
|
function _get_file__d6iv67($this) {
|
|
777
777
|
var tmp = KProperty1;
|
|
778
|
-
return $this.
|
|
778
|
+
return $this.m3h_1.f1n($this, getPropertyCallableRef('file', 1, tmp, GenerateSettingsFile$_get_file_$ref_3dvoj2_0(), null));
|
|
779
779
|
}
|
|
780
780
|
function _get_merge__eb7eqv($this) {
|
|
781
781
|
var tmp = KProperty1;
|
|
782
|
-
return $this.
|
|
782
|
+
return $this.n3h_1.f1n($this, getPropertyCallableRef('merge', 1, tmp, GenerateSettingsFile$_get_merge_$ref_3aq3hk_0(), null));
|
|
783
783
|
}
|
|
784
784
|
function mergeJson($this, defaultConfig, originalData) {
|
|
785
785
|
// Inline function 'kotlinx.serialization.json.buildJsonObject' call
|
|
@@ -802,9 +802,9 @@
|
|
|
802
802
|
} else {
|
|
803
803
|
tmp = value;
|
|
804
804
|
}
|
|
805
|
-
builder.
|
|
805
|
+
builder.l34(key, tmp);
|
|
806
806
|
}
|
|
807
|
-
var mergeData = builder.
|
|
807
|
+
var mergeData = builder.e33();
|
|
808
808
|
return mergeData;
|
|
809
809
|
}
|
|
810
810
|
function GenerateSettingsFile$_get_file_$ref_3dvoj2() {
|
|
@@ -828,8 +828,8 @@
|
|
|
828
828
|
};
|
|
829
829
|
}
|
|
830
830
|
function GenerateSettingsFile$run$lambda($this$Json) {
|
|
831
|
-
$this$Json.
|
|
832
|
-
$this$Json.
|
|
831
|
+
$this$Json.p32_1 = true;
|
|
832
|
+
$this$Json.l32_1 = true;
|
|
833
833
|
return Unit_instance;
|
|
834
834
|
}
|
|
835
835
|
function GenerateSettingsFile() {
|
|
@@ -837,25 +837,25 @@
|
|
|
837
837
|
var tmp = this;
|
|
838
838
|
var tmp_0 = optionalValue(option(this, [], "Save configuration to specified file. Use --file to save to .tagger in current directory. --file='' is also supported."), '.tagger');
|
|
839
839
|
var tmp_1 = KProperty1;
|
|
840
|
-
tmp.
|
|
840
|
+
tmp.m3h_1 = tmp_0.p1n(this, getPropertyCallableRef('file', 1, tmp_1, GenerateSettingsFile$_get_file_$ref_3dvoj2(), null));
|
|
841
841
|
var tmp_2 = this;
|
|
842
842
|
var tmp_3 = boolean(option(this, [], 'Merge with existing file, preserving current values and adding missing defaults.'));
|
|
843
843
|
var tmp_4 = KProperty1;
|
|
844
|
-
tmp_2.
|
|
844
|
+
tmp_2.n3h_1 = tmp_3.p1n(this, getPropertyCallableRef('merge', 1, tmp_4, GenerateSettingsFile$_get_merge_$ref_3aq3hk(), null));
|
|
845
845
|
}
|
|
846
|
-
protoOf(GenerateSettingsFile).
|
|
846
|
+
protoOf(GenerateSettingsFile).i1b = function (context) {
|
|
847
847
|
return 'Generate a .tagger configuration file with default settings. Without --file, prints to stdout.';
|
|
848
848
|
};
|
|
849
|
-
protoOf(GenerateSettingsFile).
|
|
849
|
+
protoOf(GenerateSettingsFile).e1e = function () {
|
|
850
850
|
var prettyJsonFormatter = Json(VOID, GenerateSettingsFile$run$lambda);
|
|
851
851
|
// Inline function 'kotlinx.serialization.json.encodeToJsonElement' call
|
|
852
852
|
var value = get_runtimeDefaultConfig();
|
|
853
853
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
854
|
-
var this_0 = prettyJsonFormatter.
|
|
854
|
+
var this_0 = prettyJsonFormatter.ks();
|
|
855
855
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
856
856
|
var this_1 = serializer(this_0, createKType(getKClass(TaggerConfig), arrayOf([]), false));
|
|
857
857
|
var tmp$ret$1 = isInterface(this_1, KSerializer) ? this_1 : THROW_CCE();
|
|
858
|
-
var defaultConfig = prettyJsonFormatter.
|
|
858
|
+
var defaultConfig = prettyJsonFormatter.t31(tmp$ret$1, value);
|
|
859
859
|
var writeToFile_0 = !(_get_file__d6iv67(this) == null);
|
|
860
860
|
// Inline function 'kotlin.text.orEmpty' call
|
|
861
861
|
var tmp0_elvis_lhs = _get_file__d6iv67(this);
|
|
@@ -868,14 +868,14 @@
|
|
|
868
868
|
tmp = this_2;
|
|
869
869
|
}
|
|
870
870
|
var fileName = tmp;
|
|
871
|
-
var pwd = this.
|
|
871
|
+
var pwd = this.y19().p1a_1('PWD');
|
|
872
872
|
var settingsFile = '' + pwd + '/' + fileName;
|
|
873
873
|
var existingFileData = readFromFile(settingsFile);
|
|
874
874
|
var tmp_0;
|
|
875
875
|
if (!(existingFileData == null)) {
|
|
876
876
|
var tmp_1;
|
|
877
877
|
if (_get_merge__eb7eqv(this) === true) {
|
|
878
|
-
var originalData = prettyJsonFormatter.
|
|
878
|
+
var originalData = prettyJsonFormatter.u31(existingFileData);
|
|
879
879
|
tmp_1 = mergeJson(this, defaultConfig, originalData);
|
|
880
880
|
} else {
|
|
881
881
|
throw new CliktError('File already exists.');
|
|
@@ -888,36 +888,36 @@
|
|
|
888
888
|
if (!writeToFile_0) {
|
|
889
889
|
// Inline function 'kotlinx.serialization.json.Json.encodeToString' call
|
|
890
890
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
891
|
-
var this_3 = prettyJsonFormatter.
|
|
891
|
+
var this_3 = prettyJsonFormatter.ks();
|
|
892
892
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
893
893
|
var this_4 = serializer(this_3, createKType(getKClass(JsonElement), arrayOf([]), false));
|
|
894
894
|
var tmp$ret$7 = isInterface(this_4, KSerializer) ? this_4 : THROW_CCE();
|
|
895
|
-
var tmp$ret$6 = prettyJsonFormatter.
|
|
896
|
-
this.
|
|
895
|
+
var tmp$ret$6 = prettyJsonFormatter.r31(tmp$ret$7, outputConfig);
|
|
896
|
+
this.r1c(tmp$ret$6);
|
|
897
897
|
} else {
|
|
898
898
|
// Inline function 'kotlinx.serialization.json.Json.encodeToString' call
|
|
899
899
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
900
|
-
var this_5 = prettyJsonFormatter.
|
|
900
|
+
var this_5 = prettyJsonFormatter.ks();
|
|
901
901
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
902
902
|
var this_6 = serializer(this_5, createKType(getKClass(JsonElement), arrayOf([]), false));
|
|
903
903
|
var tmp$ret$10 = isInterface(this_6, KSerializer) ? this_6 : THROW_CCE();
|
|
904
|
-
var tmp$ret$9 = prettyJsonFormatter.
|
|
904
|
+
var tmp$ret$9 = prettyJsonFormatter.r31(tmp$ret$10, outputConfig);
|
|
905
905
|
writeToFile(tmp$ret$9, settingsFile);
|
|
906
|
-
this.
|
|
906
|
+
this.r1c('Saved to ' + fileName);
|
|
907
907
|
}
|
|
908
908
|
};
|
|
909
909
|
function Guide() {
|
|
910
910
|
CliktCommand.call(this);
|
|
911
911
|
}
|
|
912
|
-
protoOf(Guide).
|
|
913
|
-
return
|
|
912
|
+
protoOf(Guide).i1b = function (context) {
|
|
913
|
+
return "# Tagger Fit Assessment & Workflow Guide\n\n## Use Tagger when:\n- You want deterministic versioning behavior from Git history\n- You're willing to use Git tags as version source-of-truth\n- You can enforce CI prerequisites consistently (full history, tags, branch context)\n\n## Do not use Tagger when:\n- You want version truth from an artifact repository or build metadata instead of Git tags\n- You need multi-stream version lines as a first-class workflow\n- You want a single atomic command to orchestrate the entire release lifecycle\n- You are not willing to enforce Git/CI prerequisites\n\n## Best Practices\n\n**Do:** Keep version decisions explicit and reversible. Calculate first, review output, then tag.\n\n**Don't:** Override calculated versions casually without understanding why the calculation differs.\n\n**Don't:** Skip CI prerequisites (full history, branch context) to \"make it work\" in your pipeline.\n\n## Workflow Philosophy\n\n- Version numbers live on annotated Git tags.\n- Commit content determines the next version.\n- Releases should be created on a release branch.\n- Version calculation happens separately from release (`calculate-version` \u2192 review \u2192 `tag`).\n- Configuration lives in code and is governed the same way.\n\n---\n\nFor more details on Tagger principles, tradeoffs, and evaluation criteria:\n<https://github.com/robertfmurdock/ze-great-tools/blob/main/docs/why-tagger.md>";
|
|
914
914
|
};
|
|
915
|
-
protoOf(Guide).
|
|
916
|
-
this.
|
|
915
|
+
protoOf(Guide).e1e = function () {
|
|
916
|
+
this.r1c(this.y19().c1a_1.n1c());
|
|
917
917
|
};
|
|
918
918
|
function Companion() {
|
|
919
919
|
}
|
|
920
|
-
protoOf(Companion).
|
|
920
|
+
protoOf(Companion).f34 = function () {
|
|
921
921
|
return $serializer_getInstance();
|
|
922
922
|
};
|
|
923
923
|
var Companion_instance_2;
|
|
@@ -927,59 +927,59 @@
|
|
|
927
927
|
function $serializer() {
|
|
928
928
|
$serializer_instance = this;
|
|
929
929
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.zegreatrob.tools.tagger.cli.VersionSuccessResponse', this, 2);
|
|
930
|
-
tmp0_serialDesc.
|
|
931
|
-
tmp0_serialDesc.
|
|
932
|
-
this.
|
|
933
|
-
}
|
|
934
|
-
protoOf($serializer).
|
|
935
|
-
var tmp0_desc = this.
|
|
936
|
-
var tmp1_output = encoder.
|
|
937
|
-
tmp1_output.
|
|
938
|
-
tmp1_output.
|
|
939
|
-
tmp1_output.
|
|
930
|
+
tmp0_serialDesc.ez('status', false);
|
|
931
|
+
tmp0_serialDesc.ez('data', false);
|
|
932
|
+
this.d3i_1 = tmp0_serialDesc;
|
|
933
|
+
}
|
|
934
|
+
protoOf($serializer).e3i = function (encoder, value) {
|
|
935
|
+
var tmp0_desc = this.d3i_1;
|
|
936
|
+
var tmp1_output = encoder.vr(tmp0_desc);
|
|
937
|
+
tmp1_output.jt(tmp0_desc, 0, value.f3i_1);
|
|
938
|
+
tmp1_output.lt(tmp0_desc, 1, $serializer_getInstance_0(), value.g3i_1);
|
|
939
|
+
tmp1_output.wr(tmp0_desc);
|
|
940
940
|
};
|
|
941
941
|
protoOf($serializer).yo = function (encoder, value) {
|
|
942
|
-
return this.
|
|
942
|
+
return this.e3i(encoder, value instanceof VersionSuccessResponse ? value : THROW_CCE());
|
|
943
943
|
};
|
|
944
944
|
protoOf($serializer).zo = function (decoder) {
|
|
945
|
-
var tmp0_desc = this.
|
|
945
|
+
var tmp0_desc = this.d3i_1;
|
|
946
946
|
var tmp1_flag = true;
|
|
947
947
|
var tmp2_index = 0;
|
|
948
948
|
var tmp3_bitMask0 = 0;
|
|
949
949
|
var tmp4_local0 = null;
|
|
950
950
|
var tmp5_local1 = null;
|
|
951
|
-
var tmp6_input = decoder.
|
|
952
|
-
if (tmp6_input.
|
|
953
|
-
tmp4_local0 = tmp6_input.
|
|
951
|
+
var tmp6_input = decoder.vr(tmp0_desc);
|
|
952
|
+
if (tmp6_input.ls()) {
|
|
953
|
+
tmp4_local0 = tmp6_input.fs(tmp0_desc, 0);
|
|
954
954
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
955
|
-
tmp5_local1 = tmp6_input.
|
|
955
|
+
tmp5_local1 = tmp6_input.hs(tmp0_desc, 1, $serializer_getInstance_0(), tmp5_local1);
|
|
956
956
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
957
957
|
} else
|
|
958
958
|
while (tmp1_flag) {
|
|
959
|
-
tmp2_index = tmp6_input.
|
|
959
|
+
tmp2_index = tmp6_input.ms(tmp0_desc);
|
|
960
960
|
switch (tmp2_index) {
|
|
961
961
|
case -1:
|
|
962
962
|
tmp1_flag = false;
|
|
963
963
|
break;
|
|
964
964
|
case 0:
|
|
965
|
-
tmp4_local0 = tmp6_input.
|
|
965
|
+
tmp4_local0 = tmp6_input.fs(tmp0_desc, 0);
|
|
966
966
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
967
967
|
break;
|
|
968
968
|
case 1:
|
|
969
|
-
tmp5_local1 = tmp6_input.
|
|
969
|
+
tmp5_local1 = tmp6_input.hs(tmp0_desc, 1, $serializer_getInstance_0(), tmp5_local1);
|
|
970
970
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
971
971
|
break;
|
|
972
972
|
default:
|
|
973
973
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
974
974
|
}
|
|
975
975
|
}
|
|
976
|
-
tmp6_input.
|
|
976
|
+
tmp6_input.wr(tmp0_desc);
|
|
977
977
|
return VersionSuccessResponse_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
978
978
|
};
|
|
979
979
|
protoOf($serializer).xo = function () {
|
|
980
|
-
return this.
|
|
980
|
+
return this.d3i_1;
|
|
981
981
|
};
|
|
982
|
-
protoOf($serializer).
|
|
982
|
+
protoOf($serializer).gz = function () {
|
|
983
983
|
// Inline function 'kotlin.arrayOf' call
|
|
984
984
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
985
985
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -993,25 +993,25 @@
|
|
|
993
993
|
}
|
|
994
994
|
function VersionSuccessResponse_init_$Init$(seen0, status, data, serializationConstructorMarker, $this) {
|
|
995
995
|
if (!(3 === (3 & seen0))) {
|
|
996
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance().
|
|
996
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance().d3i_1);
|
|
997
997
|
}
|
|
998
|
-
$this.
|
|
999
|
-
$this.
|
|
998
|
+
$this.f3i_1 = status;
|
|
999
|
+
$this.g3i_1 = data;
|
|
1000
1000
|
return $this;
|
|
1001
1001
|
}
|
|
1002
1002
|
function VersionSuccessResponse_init_$Create$(seen0, status, data, serializationConstructorMarker) {
|
|
1003
1003
|
return VersionSuccessResponse_init_$Init$(seen0, status, data, serializationConstructorMarker, objectCreate(protoOf(VersionSuccessResponse)));
|
|
1004
1004
|
}
|
|
1005
1005
|
function VersionSuccessResponse(status, data) {
|
|
1006
|
-
this.
|
|
1007
|
-
this.
|
|
1006
|
+
this.f3i_1 = status;
|
|
1007
|
+
this.g3i_1 = data;
|
|
1008
1008
|
}
|
|
1009
1009
|
protoOf(VersionSuccessResponse).toString = function () {
|
|
1010
|
-
return 'VersionSuccessResponse(status=' + this.
|
|
1010
|
+
return 'VersionSuccessResponse(status=' + this.f3i_1 + ', data=' + this.g3i_1.toString() + ')';
|
|
1011
1011
|
};
|
|
1012
1012
|
protoOf(VersionSuccessResponse).hashCode = function () {
|
|
1013
|
-
var result = getStringHashCode(this.
|
|
1014
|
-
result = imul(result, 31) + this.
|
|
1013
|
+
var result = getStringHashCode(this.f3i_1);
|
|
1014
|
+
result = imul(result, 31) + this.g3i_1.hashCode() | 0;
|
|
1015
1015
|
return result;
|
|
1016
1016
|
};
|
|
1017
1017
|
protoOf(VersionSuccessResponse).equals = function (other) {
|
|
@@ -1019,9 +1019,9 @@
|
|
|
1019
1019
|
return true;
|
|
1020
1020
|
if (!(other instanceof VersionSuccessResponse))
|
|
1021
1021
|
return false;
|
|
1022
|
-
if (!(this.
|
|
1022
|
+
if (!(this.f3i_1 === other.f3i_1))
|
|
1023
1023
|
return false;
|
|
1024
|
-
if (!this.
|
|
1024
|
+
if (!this.g3i_1.equals(other.g3i_1))
|
|
1025
1025
|
return false;
|
|
1026
1026
|
return true;
|
|
1027
1027
|
};
|
|
@@ -1040,7 +1040,7 @@
|
|
|
1040
1040
|
// Inline function 'kotlin.arrayOf' call
|
|
1041
1041
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1042
1042
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1043
|
-
tmp.
|
|
1043
|
+
tmp.h3i_1 = [null, null, tmp_1, lazy(tmp_2, VersionData$Companion$$childSerializers$_anonymous__gd9ivc_0)];
|
|
1044
1044
|
}
|
|
1045
1045
|
var Companion_instance_3;
|
|
1046
1046
|
function Companion_getInstance_0() {
|
|
@@ -1051,31 +1051,31 @@
|
|
|
1051
1051
|
function $serializer_0() {
|
|
1052
1052
|
$serializer_instance_0 = this;
|
|
1053
1053
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.zegreatrob.tools.tagger.cli.VersionData', this, 4);
|
|
1054
|
-
tmp0_serialDesc.
|
|
1055
|
-
tmp0_serialDesc.
|
|
1056
|
-
tmp0_serialDesc.
|
|
1057
|
-
tmp0_serialDesc.
|
|
1058
|
-
this.
|
|
1059
|
-
}
|
|
1060
|
-
protoOf($serializer_0).
|
|
1061
|
-
var tmp0_desc = this.
|
|
1062
|
-
var tmp1_output = encoder.
|
|
1063
|
-
var tmp2_cached = Companion_getInstance_0().
|
|
1064
|
-
tmp1_output.
|
|
1065
|
-
tmp1_output.
|
|
1066
|
-
if (tmp1_output.
|
|
1067
|
-
tmp1_output.
|
|
1054
|
+
tmp0_serialDesc.ez('version', false);
|
|
1055
|
+
tmp0_serialDesc.ez('snapshot', false);
|
|
1056
|
+
tmp0_serialDesc.ez('snapshotReasons', true);
|
|
1057
|
+
tmp0_serialDesc.ez('warnings', true);
|
|
1058
|
+
this.i3i_1 = tmp0_serialDesc;
|
|
1059
|
+
}
|
|
1060
|
+
protoOf($serializer_0).j3i = function (encoder, value) {
|
|
1061
|
+
var tmp0_desc = this.i3i_1;
|
|
1062
|
+
var tmp1_output = encoder.vr(tmp0_desc);
|
|
1063
|
+
var tmp2_cached = Companion_getInstance_0().h3i_1;
|
|
1064
|
+
tmp1_output.jt(tmp0_desc, 0, value.k3i_1);
|
|
1065
|
+
tmp1_output.bt(tmp0_desc, 1, value.l3i_1);
|
|
1066
|
+
if (tmp1_output.rt(tmp0_desc, 2) ? true : !equals(value.m3i_1, emptyList())) {
|
|
1067
|
+
tmp1_output.lt(tmp0_desc, 2, tmp2_cached[2].m1(), value.m3i_1);
|
|
1068
1068
|
}
|
|
1069
|
-
if (tmp1_output.
|
|
1070
|
-
tmp1_output.
|
|
1069
|
+
if (tmp1_output.rt(tmp0_desc, 3) ? true : !equals(value.n3i_1, emptyList())) {
|
|
1070
|
+
tmp1_output.lt(tmp0_desc, 3, tmp2_cached[3].m1(), value.n3i_1);
|
|
1071
1071
|
}
|
|
1072
|
-
tmp1_output.
|
|
1072
|
+
tmp1_output.wr(tmp0_desc);
|
|
1073
1073
|
};
|
|
1074
1074
|
protoOf($serializer_0).yo = function (encoder, value) {
|
|
1075
|
-
return this.
|
|
1075
|
+
return this.j3i(encoder, value instanceof VersionData ? value : THROW_CCE());
|
|
1076
1076
|
};
|
|
1077
1077
|
protoOf($serializer_0).zo = function (decoder) {
|
|
1078
|
-
var tmp0_desc = this.
|
|
1078
|
+
var tmp0_desc = this.i3i_1;
|
|
1079
1079
|
var tmp1_flag = true;
|
|
1080
1080
|
var tmp2_index = 0;
|
|
1081
1081
|
var tmp3_bitMask0 = 0;
|
|
@@ -1083,52 +1083,52 @@
|
|
|
1083
1083
|
var tmp5_local1 = false;
|
|
1084
1084
|
var tmp6_local2 = null;
|
|
1085
1085
|
var tmp7_local3 = null;
|
|
1086
|
-
var tmp8_input = decoder.
|
|
1087
|
-
var tmp9_cached = Companion_getInstance_0().
|
|
1088
|
-
if (tmp8_input.
|
|
1089
|
-
tmp4_local0 = tmp8_input.
|
|
1086
|
+
var tmp8_input = decoder.vr(tmp0_desc);
|
|
1087
|
+
var tmp9_cached = Companion_getInstance_0().h3i_1;
|
|
1088
|
+
if (tmp8_input.ls()) {
|
|
1089
|
+
tmp4_local0 = tmp8_input.fs(tmp0_desc, 0);
|
|
1090
1090
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1091
|
-
tmp5_local1 = tmp8_input.
|
|
1091
|
+
tmp5_local1 = tmp8_input.xr(tmp0_desc, 1);
|
|
1092
1092
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1093
|
-
tmp6_local2 = tmp8_input.
|
|
1093
|
+
tmp6_local2 = tmp8_input.hs(tmp0_desc, 2, tmp9_cached[2].m1(), tmp6_local2);
|
|
1094
1094
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1095
|
-
tmp7_local3 = tmp8_input.
|
|
1095
|
+
tmp7_local3 = tmp8_input.hs(tmp0_desc, 3, tmp9_cached[3].m1(), tmp7_local3);
|
|
1096
1096
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1097
1097
|
} else
|
|
1098
1098
|
while (tmp1_flag) {
|
|
1099
|
-
tmp2_index = tmp8_input.
|
|
1099
|
+
tmp2_index = tmp8_input.ms(tmp0_desc);
|
|
1100
1100
|
switch (tmp2_index) {
|
|
1101
1101
|
case -1:
|
|
1102
1102
|
tmp1_flag = false;
|
|
1103
1103
|
break;
|
|
1104
1104
|
case 0:
|
|
1105
|
-
tmp4_local0 = tmp8_input.
|
|
1105
|
+
tmp4_local0 = tmp8_input.fs(tmp0_desc, 0);
|
|
1106
1106
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1107
1107
|
break;
|
|
1108
1108
|
case 1:
|
|
1109
|
-
tmp5_local1 = tmp8_input.
|
|
1109
|
+
tmp5_local1 = tmp8_input.xr(tmp0_desc, 1);
|
|
1110
1110
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1111
1111
|
break;
|
|
1112
1112
|
case 2:
|
|
1113
|
-
tmp6_local2 = tmp8_input.
|
|
1113
|
+
tmp6_local2 = tmp8_input.hs(tmp0_desc, 2, tmp9_cached[2].m1(), tmp6_local2);
|
|
1114
1114
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1115
1115
|
break;
|
|
1116
1116
|
case 3:
|
|
1117
|
-
tmp7_local3 = tmp8_input.
|
|
1117
|
+
tmp7_local3 = tmp8_input.hs(tmp0_desc, 3, tmp9_cached[3].m1(), tmp7_local3);
|
|
1118
1118
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1119
1119
|
break;
|
|
1120
1120
|
default:
|
|
1121
1121
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1122
1122
|
}
|
|
1123
1123
|
}
|
|
1124
|
-
tmp8_input.
|
|
1124
|
+
tmp8_input.wr(tmp0_desc);
|
|
1125
1125
|
return VersionData_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
1126
1126
|
};
|
|
1127
1127
|
protoOf($serializer_0).xo = function () {
|
|
1128
|
-
return this.
|
|
1128
|
+
return this.i3i_1;
|
|
1129
1129
|
};
|
|
1130
|
-
protoOf($serializer_0).
|
|
1131
|
-
var tmp0_cached = Companion_getInstance_0().
|
|
1130
|
+
protoOf($serializer_0).gz = function () {
|
|
1131
|
+
var tmp0_cached = Companion_getInstance_0().h3i_1;
|
|
1132
1132
|
// Inline function 'kotlin.arrayOf' call
|
|
1133
1133
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1134
1134
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1142,18 +1142,18 @@
|
|
|
1142
1142
|
}
|
|
1143
1143
|
function VersionData_init_$Init$(seen0, version, snapshot, snapshotReasons, warnings, serializationConstructorMarker, $this) {
|
|
1144
1144
|
if (!(3 === (3 & seen0))) {
|
|
1145
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_0().
|
|
1145
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_0().i3i_1);
|
|
1146
1146
|
}
|
|
1147
|
-
$this.
|
|
1148
|
-
$this.
|
|
1147
|
+
$this.k3i_1 = version;
|
|
1148
|
+
$this.l3i_1 = snapshot;
|
|
1149
1149
|
if (0 === (seen0 & 4))
|
|
1150
|
-
$this.
|
|
1150
|
+
$this.m3i_1 = emptyList();
|
|
1151
1151
|
else
|
|
1152
|
-
$this.
|
|
1152
|
+
$this.m3i_1 = snapshotReasons;
|
|
1153
1153
|
if (0 === (seen0 & 8))
|
|
1154
|
-
$this.
|
|
1154
|
+
$this.n3i_1 = emptyList();
|
|
1155
1155
|
else
|
|
1156
|
-
$this.
|
|
1156
|
+
$this.n3i_1 = warnings;
|
|
1157
1157
|
return $this;
|
|
1158
1158
|
}
|
|
1159
1159
|
function VersionData_init_$Create$(seen0, version, snapshot, snapshotReasons, warnings, serializationConstructorMarker) {
|
|
@@ -1163,19 +1163,19 @@
|
|
|
1163
1163
|
Companion_getInstance_0();
|
|
1164
1164
|
snapshotReasons = snapshotReasons === VOID ? emptyList() : snapshotReasons;
|
|
1165
1165
|
warnings = warnings === VOID ? emptyList() : warnings;
|
|
1166
|
-
this.
|
|
1167
|
-
this.
|
|
1168
|
-
this.
|
|
1169
|
-
this.
|
|
1166
|
+
this.k3i_1 = version;
|
|
1167
|
+
this.l3i_1 = snapshot;
|
|
1168
|
+
this.m3i_1 = snapshotReasons;
|
|
1169
|
+
this.n3i_1 = warnings;
|
|
1170
1170
|
}
|
|
1171
1171
|
protoOf(VersionData).toString = function () {
|
|
1172
|
-
return 'VersionData(version=' + this.
|
|
1172
|
+
return 'VersionData(version=' + this.k3i_1 + ', snapshot=' + this.l3i_1 + ', snapshotReasons=' + toString_0(this.m3i_1) + ', warnings=' + toString_0(this.n3i_1) + ')';
|
|
1173
1173
|
};
|
|
1174
1174
|
protoOf(VersionData).hashCode = function () {
|
|
1175
|
-
var result = getStringHashCode(this.
|
|
1176
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
1177
|
-
result = imul(result, 31) + hashCode(this.
|
|
1178
|
-
result = imul(result, 31) + hashCode(this.
|
|
1175
|
+
var result = getStringHashCode(this.k3i_1);
|
|
1176
|
+
result = imul(result, 31) + getBooleanHashCode(this.l3i_1) | 0;
|
|
1177
|
+
result = imul(result, 31) + hashCode(this.m3i_1) | 0;
|
|
1178
|
+
result = imul(result, 31) + hashCode(this.n3i_1) | 0;
|
|
1179
1179
|
return result;
|
|
1180
1180
|
};
|
|
1181
1181
|
protoOf(VersionData).equals = function (other) {
|
|
@@ -1183,19 +1183,19 @@
|
|
|
1183
1183
|
return true;
|
|
1184
1184
|
if (!(other instanceof VersionData))
|
|
1185
1185
|
return false;
|
|
1186
|
-
if (!(this.
|
|
1186
|
+
if (!(this.k3i_1 === other.k3i_1))
|
|
1187
1187
|
return false;
|
|
1188
|
-
if (!(this.
|
|
1188
|
+
if (!(this.l3i_1 === other.l3i_1))
|
|
1189
1189
|
return false;
|
|
1190
|
-
if (!equals(this.
|
|
1190
|
+
if (!equals(this.m3i_1, other.m3i_1))
|
|
1191
1191
|
return false;
|
|
1192
|
-
if (!equals(this.
|
|
1192
|
+
if (!equals(this.n3i_1, other.n3i_1))
|
|
1193
1193
|
return false;
|
|
1194
1194
|
return true;
|
|
1195
1195
|
};
|
|
1196
1196
|
function Companion_1() {
|
|
1197
1197
|
}
|
|
1198
|
-
protoOf(Companion_1).
|
|
1198
|
+
protoOf(Companion_1).f34 = function () {
|
|
1199
1199
|
return $serializer_getInstance_1();
|
|
1200
1200
|
};
|
|
1201
1201
|
var Companion_instance_4;
|
|
@@ -1205,68 +1205,68 @@
|
|
|
1205
1205
|
function $serializer_1() {
|
|
1206
1206
|
$serializer_instance_1 = this;
|
|
1207
1207
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.zegreatrob.tools.tagger.cli.ErrorResponse', this, 3);
|
|
1208
|
-
tmp0_serialDesc.
|
|
1209
|
-
tmp0_serialDesc.
|
|
1210
|
-
tmp0_serialDesc.
|
|
1211
|
-
this.
|
|
1212
|
-
}
|
|
1213
|
-
protoOf($serializer_1).
|
|
1214
|
-
var tmp0_desc = this.
|
|
1215
|
-
var tmp1_output = encoder.
|
|
1216
|
-
tmp1_output.
|
|
1217
|
-
tmp1_output.
|
|
1218
|
-
tmp1_output.
|
|
1219
|
-
tmp1_output.
|
|
1208
|
+
tmp0_serialDesc.ez('status', false);
|
|
1209
|
+
tmp0_serialDesc.ez('error', false);
|
|
1210
|
+
tmp0_serialDesc.ez('code', false);
|
|
1211
|
+
this.o3i_1 = tmp0_serialDesc;
|
|
1212
|
+
}
|
|
1213
|
+
protoOf($serializer_1).p3i = function (encoder, value) {
|
|
1214
|
+
var tmp0_desc = this.o3i_1;
|
|
1215
|
+
var tmp1_output = encoder.vr(tmp0_desc);
|
|
1216
|
+
tmp1_output.jt(tmp0_desc, 0, value.q3i_1);
|
|
1217
|
+
tmp1_output.jt(tmp0_desc, 1, value.r3i_1);
|
|
1218
|
+
tmp1_output.jt(tmp0_desc, 2, value.s3i_1);
|
|
1219
|
+
tmp1_output.wr(tmp0_desc);
|
|
1220
1220
|
};
|
|
1221
1221
|
protoOf($serializer_1).yo = function (encoder, value) {
|
|
1222
|
-
return this.
|
|
1222
|
+
return this.p3i(encoder, value instanceof ErrorResponse ? value : THROW_CCE());
|
|
1223
1223
|
};
|
|
1224
1224
|
protoOf($serializer_1).zo = function (decoder) {
|
|
1225
|
-
var tmp0_desc = this.
|
|
1225
|
+
var tmp0_desc = this.o3i_1;
|
|
1226
1226
|
var tmp1_flag = true;
|
|
1227
1227
|
var tmp2_index = 0;
|
|
1228
1228
|
var tmp3_bitMask0 = 0;
|
|
1229
1229
|
var tmp4_local0 = null;
|
|
1230
1230
|
var tmp5_local1 = null;
|
|
1231
1231
|
var tmp6_local2 = null;
|
|
1232
|
-
var tmp7_input = decoder.
|
|
1233
|
-
if (tmp7_input.
|
|
1234
|
-
tmp4_local0 = tmp7_input.
|
|
1232
|
+
var tmp7_input = decoder.vr(tmp0_desc);
|
|
1233
|
+
if (tmp7_input.ls()) {
|
|
1234
|
+
tmp4_local0 = tmp7_input.fs(tmp0_desc, 0);
|
|
1235
1235
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1236
|
-
tmp5_local1 = tmp7_input.
|
|
1236
|
+
tmp5_local1 = tmp7_input.fs(tmp0_desc, 1);
|
|
1237
1237
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1238
|
-
tmp6_local2 = tmp7_input.
|
|
1238
|
+
tmp6_local2 = tmp7_input.fs(tmp0_desc, 2);
|
|
1239
1239
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1240
1240
|
} else
|
|
1241
1241
|
while (tmp1_flag) {
|
|
1242
|
-
tmp2_index = tmp7_input.
|
|
1242
|
+
tmp2_index = tmp7_input.ms(tmp0_desc);
|
|
1243
1243
|
switch (tmp2_index) {
|
|
1244
1244
|
case -1:
|
|
1245
1245
|
tmp1_flag = false;
|
|
1246
1246
|
break;
|
|
1247
1247
|
case 0:
|
|
1248
|
-
tmp4_local0 = tmp7_input.
|
|
1248
|
+
tmp4_local0 = tmp7_input.fs(tmp0_desc, 0);
|
|
1249
1249
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1250
1250
|
break;
|
|
1251
1251
|
case 1:
|
|
1252
|
-
tmp5_local1 = tmp7_input.
|
|
1252
|
+
tmp5_local1 = tmp7_input.fs(tmp0_desc, 1);
|
|
1253
1253
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1254
1254
|
break;
|
|
1255
1255
|
case 2:
|
|
1256
|
-
tmp6_local2 = tmp7_input.
|
|
1256
|
+
tmp6_local2 = tmp7_input.fs(tmp0_desc, 2);
|
|
1257
1257
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1258
1258
|
break;
|
|
1259
1259
|
default:
|
|
1260
1260
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1261
1261
|
}
|
|
1262
1262
|
}
|
|
1263
|
-
tmp7_input.
|
|
1263
|
+
tmp7_input.wr(tmp0_desc);
|
|
1264
1264
|
return ErrorResponse_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
1265
1265
|
};
|
|
1266
1266
|
protoOf($serializer_1).xo = function () {
|
|
1267
|
-
return this.
|
|
1267
|
+
return this.o3i_1;
|
|
1268
1268
|
};
|
|
1269
|
-
protoOf($serializer_1).
|
|
1269
|
+
protoOf($serializer_1).gz = function () {
|
|
1270
1270
|
// Inline function 'kotlin.arrayOf' call
|
|
1271
1271
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1272
1272
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1280,28 +1280,28 @@
|
|
|
1280
1280
|
}
|
|
1281
1281
|
function ErrorResponse_init_$Init$(seen0, status, error, code, serializationConstructorMarker, $this) {
|
|
1282
1282
|
if (!(7 === (7 & seen0))) {
|
|
1283
|
-
throwMissingFieldException(seen0, 7, $serializer_getInstance_1().
|
|
1283
|
+
throwMissingFieldException(seen0, 7, $serializer_getInstance_1().o3i_1);
|
|
1284
1284
|
}
|
|
1285
|
-
$this.
|
|
1286
|
-
$this.
|
|
1287
|
-
$this.
|
|
1285
|
+
$this.q3i_1 = status;
|
|
1286
|
+
$this.r3i_1 = error;
|
|
1287
|
+
$this.s3i_1 = code;
|
|
1288
1288
|
return $this;
|
|
1289
1289
|
}
|
|
1290
1290
|
function ErrorResponse_init_$Create$(seen0, status, error, code, serializationConstructorMarker) {
|
|
1291
1291
|
return ErrorResponse_init_$Init$(seen0, status, error, code, serializationConstructorMarker, objectCreate(protoOf(ErrorResponse)));
|
|
1292
1292
|
}
|
|
1293
1293
|
function ErrorResponse(status, error, code) {
|
|
1294
|
-
this.
|
|
1295
|
-
this.
|
|
1296
|
-
this.
|
|
1294
|
+
this.q3i_1 = status;
|
|
1295
|
+
this.r3i_1 = error;
|
|
1296
|
+
this.s3i_1 = code;
|
|
1297
1297
|
}
|
|
1298
1298
|
protoOf(ErrorResponse).toString = function () {
|
|
1299
|
-
return 'ErrorResponse(status=' + this.
|
|
1299
|
+
return 'ErrorResponse(status=' + this.q3i_1 + ', error=' + this.r3i_1 + ', code=' + this.s3i_1 + ')';
|
|
1300
1300
|
};
|
|
1301
1301
|
protoOf(ErrorResponse).hashCode = function () {
|
|
1302
|
-
var result = getStringHashCode(this.
|
|
1303
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1304
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1302
|
+
var result = getStringHashCode(this.q3i_1);
|
|
1303
|
+
result = imul(result, 31) + getStringHashCode(this.r3i_1) | 0;
|
|
1304
|
+
result = imul(result, 31) + getStringHashCode(this.s3i_1) | 0;
|
|
1305
1305
|
return result;
|
|
1306
1306
|
};
|
|
1307
1307
|
protoOf(ErrorResponse).equals = function (other) {
|
|
@@ -1309,17 +1309,17 @@
|
|
|
1309
1309
|
return true;
|
|
1310
1310
|
if (!(other instanceof ErrorResponse))
|
|
1311
1311
|
return false;
|
|
1312
|
-
if (!(this.
|
|
1312
|
+
if (!(this.q3i_1 === other.q3i_1))
|
|
1313
1313
|
return false;
|
|
1314
|
-
if (!(this.
|
|
1314
|
+
if (!(this.r3i_1 === other.r3i_1))
|
|
1315
1315
|
return false;
|
|
1316
|
-
if (!(this.
|
|
1316
|
+
if (!(this.s3i_1 === other.s3i_1))
|
|
1317
1317
|
return false;
|
|
1318
1318
|
return true;
|
|
1319
1319
|
};
|
|
1320
1320
|
function Companion_2() {
|
|
1321
1321
|
}
|
|
1322
|
-
protoOf(Companion_2).
|
|
1322
|
+
protoOf(Companion_2).f34 = function () {
|
|
1323
1323
|
return $serializer_getInstance_2();
|
|
1324
1324
|
};
|
|
1325
1325
|
var Companion_instance_5;
|
|
@@ -1329,59 +1329,59 @@
|
|
|
1329
1329
|
function $serializer_2() {
|
|
1330
1330
|
$serializer_instance_2 = this;
|
|
1331
1331
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.zegreatrob.tools.tagger.cli.TagSuccessResponse', this, 2);
|
|
1332
|
-
tmp0_serialDesc.
|
|
1333
|
-
tmp0_serialDesc.
|
|
1334
|
-
this.
|
|
1335
|
-
}
|
|
1336
|
-
protoOf($serializer_2).
|
|
1337
|
-
var tmp0_desc = this.
|
|
1338
|
-
var tmp1_output = encoder.
|
|
1339
|
-
tmp1_output.
|
|
1340
|
-
tmp1_output.
|
|
1341
|
-
tmp1_output.
|
|
1332
|
+
tmp0_serialDesc.ez('status', false);
|
|
1333
|
+
tmp0_serialDesc.ez('data', false);
|
|
1334
|
+
this.t3i_1 = tmp0_serialDesc;
|
|
1335
|
+
}
|
|
1336
|
+
protoOf($serializer_2).u3i = function (encoder, value) {
|
|
1337
|
+
var tmp0_desc = this.t3i_1;
|
|
1338
|
+
var tmp1_output = encoder.vr(tmp0_desc);
|
|
1339
|
+
tmp1_output.jt(tmp0_desc, 0, value.v3i_1);
|
|
1340
|
+
tmp1_output.lt(tmp0_desc, 1, $serializer_getInstance_3(), value.w3i_1);
|
|
1341
|
+
tmp1_output.wr(tmp0_desc);
|
|
1342
1342
|
};
|
|
1343
1343
|
protoOf($serializer_2).yo = function (encoder, value) {
|
|
1344
|
-
return this.
|
|
1344
|
+
return this.u3i(encoder, value instanceof TagSuccessResponse ? value : THROW_CCE());
|
|
1345
1345
|
};
|
|
1346
1346
|
protoOf($serializer_2).zo = function (decoder) {
|
|
1347
|
-
var tmp0_desc = this.
|
|
1347
|
+
var tmp0_desc = this.t3i_1;
|
|
1348
1348
|
var tmp1_flag = true;
|
|
1349
1349
|
var tmp2_index = 0;
|
|
1350
1350
|
var tmp3_bitMask0 = 0;
|
|
1351
1351
|
var tmp4_local0 = null;
|
|
1352
1352
|
var tmp5_local1 = null;
|
|
1353
|
-
var tmp6_input = decoder.
|
|
1354
|
-
if (tmp6_input.
|
|
1355
|
-
tmp4_local0 = tmp6_input.
|
|
1353
|
+
var tmp6_input = decoder.vr(tmp0_desc);
|
|
1354
|
+
if (tmp6_input.ls()) {
|
|
1355
|
+
tmp4_local0 = tmp6_input.fs(tmp0_desc, 0);
|
|
1356
1356
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1357
|
-
tmp5_local1 = tmp6_input.
|
|
1357
|
+
tmp5_local1 = tmp6_input.hs(tmp0_desc, 1, $serializer_getInstance_3(), tmp5_local1);
|
|
1358
1358
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1359
1359
|
} else
|
|
1360
1360
|
while (tmp1_flag) {
|
|
1361
|
-
tmp2_index = tmp6_input.
|
|
1361
|
+
tmp2_index = tmp6_input.ms(tmp0_desc);
|
|
1362
1362
|
switch (tmp2_index) {
|
|
1363
1363
|
case -1:
|
|
1364
1364
|
tmp1_flag = false;
|
|
1365
1365
|
break;
|
|
1366
1366
|
case 0:
|
|
1367
|
-
tmp4_local0 = tmp6_input.
|
|
1367
|
+
tmp4_local0 = tmp6_input.fs(tmp0_desc, 0);
|
|
1368
1368
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1369
1369
|
break;
|
|
1370
1370
|
case 1:
|
|
1371
|
-
tmp5_local1 = tmp6_input.
|
|
1371
|
+
tmp5_local1 = tmp6_input.hs(tmp0_desc, 1, $serializer_getInstance_3(), tmp5_local1);
|
|
1372
1372
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1373
1373
|
break;
|
|
1374
1374
|
default:
|
|
1375
1375
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1376
1376
|
}
|
|
1377
1377
|
}
|
|
1378
|
-
tmp6_input.
|
|
1378
|
+
tmp6_input.wr(tmp0_desc);
|
|
1379
1379
|
return TagSuccessResponse_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
1380
1380
|
};
|
|
1381
1381
|
protoOf($serializer_2).xo = function () {
|
|
1382
|
-
return this.
|
|
1382
|
+
return this.t3i_1;
|
|
1383
1383
|
};
|
|
1384
|
-
protoOf($serializer_2).
|
|
1384
|
+
protoOf($serializer_2).gz = function () {
|
|
1385
1385
|
// Inline function 'kotlin.arrayOf' call
|
|
1386
1386
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1387
1387
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1395,25 +1395,25 @@
|
|
|
1395
1395
|
}
|
|
1396
1396
|
function TagSuccessResponse_init_$Init$(seen0, status, data, serializationConstructorMarker, $this) {
|
|
1397
1397
|
if (!(3 === (3 & seen0))) {
|
|
1398
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_2().
|
|
1398
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_2().t3i_1);
|
|
1399
1399
|
}
|
|
1400
|
-
$this.
|
|
1401
|
-
$this.
|
|
1400
|
+
$this.v3i_1 = status;
|
|
1401
|
+
$this.w3i_1 = data;
|
|
1402
1402
|
return $this;
|
|
1403
1403
|
}
|
|
1404
1404
|
function TagSuccessResponse_init_$Create$(seen0, status, data, serializationConstructorMarker) {
|
|
1405
1405
|
return TagSuccessResponse_init_$Init$(seen0, status, data, serializationConstructorMarker, objectCreate(protoOf(TagSuccessResponse)));
|
|
1406
1406
|
}
|
|
1407
1407
|
function TagSuccessResponse(status, data) {
|
|
1408
|
-
this.
|
|
1409
|
-
this.
|
|
1408
|
+
this.v3i_1 = status;
|
|
1409
|
+
this.w3i_1 = data;
|
|
1410
1410
|
}
|
|
1411
1411
|
protoOf(TagSuccessResponse).toString = function () {
|
|
1412
|
-
return 'TagSuccessResponse(status=' + this.
|
|
1412
|
+
return 'TagSuccessResponse(status=' + this.v3i_1 + ', data=' + this.w3i_1.toString() + ')';
|
|
1413
1413
|
};
|
|
1414
1414
|
protoOf(TagSuccessResponse).hashCode = function () {
|
|
1415
|
-
var result = getStringHashCode(this.
|
|
1416
|
-
result = imul(result, 31) + this.
|
|
1415
|
+
var result = getStringHashCode(this.v3i_1);
|
|
1416
|
+
result = imul(result, 31) + this.w3i_1.hashCode() | 0;
|
|
1417
1417
|
return result;
|
|
1418
1418
|
};
|
|
1419
1419
|
protoOf(TagSuccessResponse).equals = function (other) {
|
|
@@ -1421,9 +1421,9 @@
|
|
|
1421
1421
|
return true;
|
|
1422
1422
|
if (!(other instanceof TagSuccessResponse))
|
|
1423
1423
|
return false;
|
|
1424
|
-
if (!(this.
|
|
1424
|
+
if (!(this.v3i_1 === other.v3i_1))
|
|
1425
1425
|
return false;
|
|
1426
|
-
if (!this.
|
|
1426
|
+
if (!this.w3i_1.equals(other.w3i_1))
|
|
1427
1427
|
return false;
|
|
1428
1428
|
return true;
|
|
1429
1429
|
};
|
|
@@ -1436,50 +1436,50 @@
|
|
|
1436
1436
|
function $serializer_3() {
|
|
1437
1437
|
$serializer_instance_3 = this;
|
|
1438
1438
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.zegreatrob.tools.tagger.cli.TagData', this, 1);
|
|
1439
|
-
tmp0_serialDesc.
|
|
1440
|
-
this.
|
|
1441
|
-
}
|
|
1442
|
-
protoOf($serializer_3).
|
|
1443
|
-
var tmp0_desc = this.
|
|
1444
|
-
var tmp1_output = encoder.
|
|
1445
|
-
tmp1_output.
|
|
1446
|
-
tmp1_output.
|
|
1439
|
+
tmp0_serialDesc.ez('tag', false);
|
|
1440
|
+
this.x3i_1 = tmp0_serialDesc;
|
|
1441
|
+
}
|
|
1442
|
+
protoOf($serializer_3).y3i = function (encoder, value) {
|
|
1443
|
+
var tmp0_desc = this.x3i_1;
|
|
1444
|
+
var tmp1_output = encoder.vr(tmp0_desc);
|
|
1445
|
+
tmp1_output.jt(tmp0_desc, 0, value.z3i_1);
|
|
1446
|
+
tmp1_output.wr(tmp0_desc);
|
|
1447
1447
|
};
|
|
1448
1448
|
protoOf($serializer_3).yo = function (encoder, value) {
|
|
1449
|
-
return this.
|
|
1449
|
+
return this.y3i(encoder, value instanceof TagData ? value : THROW_CCE());
|
|
1450
1450
|
};
|
|
1451
1451
|
protoOf($serializer_3).zo = function (decoder) {
|
|
1452
|
-
var tmp0_desc = this.
|
|
1452
|
+
var tmp0_desc = this.x3i_1;
|
|
1453
1453
|
var tmp1_flag = true;
|
|
1454
1454
|
var tmp2_index = 0;
|
|
1455
1455
|
var tmp3_bitMask0 = 0;
|
|
1456
1456
|
var tmp4_local0 = null;
|
|
1457
|
-
var tmp5_input = decoder.
|
|
1458
|
-
if (tmp5_input.
|
|
1459
|
-
tmp4_local0 = tmp5_input.
|
|
1457
|
+
var tmp5_input = decoder.vr(tmp0_desc);
|
|
1458
|
+
if (tmp5_input.ls()) {
|
|
1459
|
+
tmp4_local0 = tmp5_input.fs(tmp0_desc, 0);
|
|
1460
1460
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1461
1461
|
} else
|
|
1462
1462
|
while (tmp1_flag) {
|
|
1463
|
-
tmp2_index = tmp5_input.
|
|
1463
|
+
tmp2_index = tmp5_input.ms(tmp0_desc);
|
|
1464
1464
|
switch (tmp2_index) {
|
|
1465
1465
|
case -1:
|
|
1466
1466
|
tmp1_flag = false;
|
|
1467
1467
|
break;
|
|
1468
1468
|
case 0:
|
|
1469
|
-
tmp4_local0 = tmp5_input.
|
|
1469
|
+
tmp4_local0 = tmp5_input.fs(tmp0_desc, 0);
|
|
1470
1470
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1471
1471
|
break;
|
|
1472
1472
|
default:
|
|
1473
1473
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1474
1474
|
}
|
|
1475
1475
|
}
|
|
1476
|
-
tmp5_input.
|
|
1476
|
+
tmp5_input.wr(tmp0_desc);
|
|
1477
1477
|
return TagData_init_$Create$(tmp3_bitMask0, tmp4_local0, null);
|
|
1478
1478
|
};
|
|
1479
1479
|
protoOf($serializer_3).xo = function () {
|
|
1480
|
-
return this.
|
|
1480
|
+
return this.x3i_1;
|
|
1481
1481
|
};
|
|
1482
|
-
protoOf($serializer_3).
|
|
1482
|
+
protoOf($serializer_3).gz = function () {
|
|
1483
1483
|
// Inline function 'kotlin.arrayOf' call
|
|
1484
1484
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1485
1485
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1493,40 +1493,40 @@
|
|
|
1493
1493
|
}
|
|
1494
1494
|
function TagData_init_$Init$(seen0, tag, serializationConstructorMarker, $this) {
|
|
1495
1495
|
if (!(1 === (1 & seen0))) {
|
|
1496
|
-
throwMissingFieldException(seen0, 1, $serializer_getInstance_3().
|
|
1496
|
+
throwMissingFieldException(seen0, 1, $serializer_getInstance_3().x3i_1);
|
|
1497
1497
|
}
|
|
1498
|
-
$this.
|
|
1498
|
+
$this.z3i_1 = tag;
|
|
1499
1499
|
return $this;
|
|
1500
1500
|
}
|
|
1501
1501
|
function TagData_init_$Create$(seen0, tag, serializationConstructorMarker) {
|
|
1502
1502
|
return TagData_init_$Init$(seen0, tag, serializationConstructorMarker, objectCreate(protoOf(TagData)));
|
|
1503
1503
|
}
|
|
1504
1504
|
function TagData(tag) {
|
|
1505
|
-
this.
|
|
1505
|
+
this.z3i_1 = tag;
|
|
1506
1506
|
}
|
|
1507
1507
|
protoOf(TagData).toString = function () {
|
|
1508
|
-
return 'TagData(tag=' + this.
|
|
1508
|
+
return 'TagData(tag=' + this.z3i_1 + ')';
|
|
1509
1509
|
};
|
|
1510
1510
|
protoOf(TagData).hashCode = function () {
|
|
1511
|
-
return getStringHashCode(this.
|
|
1511
|
+
return getStringHashCode(this.z3i_1);
|
|
1512
1512
|
};
|
|
1513
1513
|
protoOf(TagData).equals = function (other) {
|
|
1514
1514
|
if (this === other)
|
|
1515
1515
|
return true;
|
|
1516
1516
|
if (!(other instanceof TagData))
|
|
1517
1517
|
return false;
|
|
1518
|
-
if (!(this.
|
|
1518
|
+
if (!(this.z3i_1 === other.z3i_1))
|
|
1519
1519
|
return false;
|
|
1520
1520
|
return true;
|
|
1521
1521
|
};
|
|
1522
1522
|
function versionSuccessResponse(data) {
|
|
1523
|
-
return Default_getInstance().
|
|
1523
|
+
return Default_getInstance().r31(Companion_instance_2.f34(), new VersionSuccessResponse('success', data));
|
|
1524
1524
|
}
|
|
1525
1525
|
function tagSuccessResponse(data) {
|
|
1526
|
-
return Default_getInstance().
|
|
1526
|
+
return Default_getInstance().r31(Companion_instance_5.f34(), new TagSuccessResponse('success', data));
|
|
1527
1527
|
}
|
|
1528
1528
|
function errorResponse(message, code) {
|
|
1529
|
-
return Default_getInstance().
|
|
1529
|
+
return Default_getInstance().r31(Companion_instance_4.f34(), new ErrorResponse('error', message, code));
|
|
1530
1530
|
}
|
|
1531
1531
|
function configFileHelpSuffix() {
|
|
1532
1532
|
return 'Options can be configured in a .tagger file. See: tagger generate-settings-file --help';
|
|
@@ -1542,11 +1542,11 @@
|
|
|
1542
1542
|
}
|
|
1543
1543
|
function _get_gitRepoArgument__zxde8_0($this) {
|
|
1544
1544
|
var tmp = KProperty1;
|
|
1545
|
-
return $this.
|
|
1545
|
+
return $this.p3j_1.f1n($this, getPropertyCallableRef('gitRepoArgument', 1, tmp, Tag$_get_gitRepoArgument_$ref_dketaj_0(), null));
|
|
1546
1546
|
}
|
|
1547
1547
|
function _get_gitRepoOption__rk7ta0_0($this) {
|
|
1548
1548
|
var tmp = KProperty1;
|
|
1549
|
-
return $this.
|
|
1549
|
+
return $this.q3j_1.f1n($this, getPropertyCallableRef('gitRepoOption', 1, tmp, Tag$_get_gitRepoOption_$ref_10iywz_0(), null));
|
|
1550
1550
|
}
|
|
1551
1551
|
function _get_workingDirectory__eyfbj_0($this) {
|
|
1552
1552
|
var tmp0_elvis_lhs = _get_gitRepoArgument__zxde8_0($this);
|
|
@@ -1561,38 +1561,38 @@
|
|
|
1561
1561
|
}
|
|
1562
1562
|
function _get_releaseBranch__pqrgbs_0($this) {
|
|
1563
1563
|
var tmp = KProperty1;
|
|
1564
|
-
return $this.
|
|
1564
|
+
return $this.r3j_1.f1n($this, getPropertyCallableRef('releaseBranch', 1, tmp, Tag$_get_releaseBranch_$ref_rq8rmb_0(), null));
|
|
1565
1565
|
}
|
|
1566
1566
|
function _get_version__2bx7w9($this) {
|
|
1567
1567
|
var tmp = KProperty1;
|
|
1568
|
-
return $this.
|
|
1568
|
+
return $this.s3j_1.f1n($this, getPropertyCallableRef('version', 1, tmp, Tag$_get_version_$ref_p7wb9e_0(), null));
|
|
1569
1569
|
}
|
|
1570
1570
|
function _get_userName__tupjmd($this) {
|
|
1571
1571
|
var tmp = KProperty1;
|
|
1572
|
-
return $this.
|
|
1572
|
+
return $this.t3j_1.f1n($this, getPropertyCallableRef('userName', 1, tmp, Tag$_get_userName_$ref_kslo5u_0(), null));
|
|
1573
1573
|
}
|
|
1574
1574
|
function _get_userEmail__21hfkw($this) {
|
|
1575
1575
|
var tmp = KProperty1;
|
|
1576
|
-
return $this.
|
|
1576
|
+
return $this.u3j_1.f1n($this, getPropertyCallableRef('userEmail', 1, tmp, Tag$_get_userEmail_$ref_vl09cr_0(), null));
|
|
1577
1577
|
}
|
|
1578
1578
|
function _get_allowDetachedHead__iyebhm_0($this) {
|
|
1579
1579
|
var tmp = KProperty1;
|
|
1580
|
-
return $this.
|
|
1580
|
+
return $this.v3j_1.f1n($this, getPropertyCallableRef('allowDetachedHead', 1, tmp, Tag$_get_allowDetachedHead_$ref_qujqxn_0(), null));
|
|
1581
1581
|
}
|
|
1582
1582
|
function _get_dryRun__18z7px($this) {
|
|
1583
1583
|
var tmp = KProperty1;
|
|
1584
|
-
return $this.
|
|
1584
|
+
return $this.w3j_1.f1n($this, getPropertyCallableRef('dryRun', 1, tmp, Tag$_get_dryRun_$ref_agy9vo_0(), null));
|
|
1585
1585
|
}
|
|
1586
1586
|
function _get_warningsAsErrors__7mpwfd_0($this) {
|
|
1587
1587
|
var tmp = KProperty1;
|
|
1588
|
-
return $this.
|
|
1588
|
+
return $this.x3j_1.f1n($this, getPropertyCallableRef('warningsAsErrors', 1, tmp, Tag$_get_warningsAsErrors_$ref_gj8a6o_0(), null));
|
|
1589
1589
|
}
|
|
1590
1590
|
function _get_format__qlarck_0($this) {
|
|
1591
1591
|
var tmp = KProperty1;
|
|
1592
|
-
return $this.
|
|
1592
|
+
return $this.y3j_1.f1n($this, getPropertyCallableRef('format', 1, tmp, Tag$_get_format_$ref_i96vgt_0(), null));
|
|
1593
1593
|
}
|
|
1594
1594
|
function Tag$lambda($this$context) {
|
|
1595
|
-
$this$context.
|
|
1595
|
+
$this$context.l1d([new ConfigFileSource($this$context.h1d_1)]);
|
|
1596
1596
|
return Unit_instance;
|
|
1597
1597
|
}
|
|
1598
1598
|
function Tag$_get_gitRepoArgument_$ref_dketaj() {
|
|
@@ -1701,39 +1701,39 @@
|
|
|
1701
1701
|
var tmp = this;
|
|
1702
1702
|
var tmp_0 = optional(argument(this, 'git-repo'));
|
|
1703
1703
|
var tmp_1 = KProperty1;
|
|
1704
|
-
tmp.
|
|
1704
|
+
tmp.p3j_1 = tmp_0.l1m(this, getPropertyCallableRef('gitRepoArgument', 1, tmp_1, Tag$_get_gitRepoArgument_$ref_dketaj(), null));
|
|
1705
1705
|
var tmp_2 = this;
|
|
1706
1706
|
var tmp_3 = option(this, ['--git-repo'], VOID, VOID, VOID, 'PWD');
|
|
1707
1707
|
var tmp_4 = KProperty1;
|
|
1708
|
-
tmp_2.
|
|
1708
|
+
tmp_2.q3j_1 = tmp_3.p1n(this, getPropertyCallableRef('gitRepoOption', 1, tmp_4, Tag$_get_gitRepoOption_$ref_10iywz(), null));
|
|
1709
1709
|
var tmp_5 = this;
|
|
1710
1710
|
var tmp_6 = required(option(this, [], 'Release branch name. Required unless provided in .tagger config file.'));
|
|
1711
1711
|
var tmp_7 = KProperty1;
|
|
1712
|
-
tmp_5.
|
|
1712
|
+
tmp_5.r3j_1 = tmp_6.p1n(this, getPropertyCallableRef('releaseBranch', 1, tmp_7, Tag$_get_releaseBranch_$ref_rq8rmb(), null));
|
|
1713
1713
|
var tmp_8 = this;
|
|
1714
1714
|
var tmp_9 = required(option(this, ['--version'], 'Version to tag (required)'));
|
|
1715
1715
|
var tmp_10 = KProperty1;
|
|
1716
|
-
tmp_8.
|
|
1716
|
+
tmp_8.s3j_1 = tmp_9.p1n(this, getPropertyCallableRef('version', 1, tmp_10, Tag$_get_version_$ref_p7wb9e(), null));
|
|
1717
1717
|
var tmp_11 = this;
|
|
1718
1718
|
var tmp_12 = option(this, []);
|
|
1719
1719
|
var tmp_13 = KProperty1;
|
|
1720
|
-
tmp_11.
|
|
1720
|
+
tmp_11.t3j_1 = tmp_12.p1n(this, getPropertyCallableRef('userName', 1, tmp_13, Tag$_get_userName_$ref_kslo5u(), null));
|
|
1721
1721
|
var tmp_14 = this;
|
|
1722
1722
|
var tmp_15 = option(this, []);
|
|
1723
1723
|
var tmp_16 = KProperty1;
|
|
1724
|
-
tmp_14.
|
|
1724
|
+
tmp_14.u3j_1 = tmp_15.p1n(this, getPropertyCallableRef('userEmail', 1, tmp_16, Tag$_get_userEmail_$ref_vl09cr(), null));
|
|
1725
1725
|
var tmp_17 = this;
|
|
1726
1726
|
var tmp_18 = default_0(boolean(option(this, ['--allow-detached-head'])), false);
|
|
1727
1727
|
var tmp_19 = KProperty1;
|
|
1728
|
-
tmp_17.
|
|
1728
|
+
tmp_17.v3j_1 = tmp_18.p1n(this, getPropertyCallableRef('allowDetachedHead', 1, tmp_19, Tag$_get_allowDetachedHead_$ref_qujqxn(), null));
|
|
1729
1729
|
var tmp_20 = this;
|
|
1730
1730
|
var tmp_21 = default_0(boolean(option(this, ['--dry-run'])), false);
|
|
1731
1731
|
var tmp_22 = KProperty1;
|
|
1732
|
-
tmp_20.
|
|
1732
|
+
tmp_20.w3j_1 = tmp_21.p1n(this, getPropertyCallableRef('dryRun', 1, tmp_22, Tag$_get_dryRun_$ref_agy9vo(), null));
|
|
1733
1733
|
var tmp_23 = this;
|
|
1734
1734
|
var tmp_24 = default_0(boolean(option(this, [])), false);
|
|
1735
1735
|
var tmp_25 = KProperty1;
|
|
1736
|
-
tmp_23.
|
|
1736
|
+
tmp_23.x3j_1 = tmp_24.p1n(this, getPropertyCallableRef('warningsAsErrors', 1, tmp_25, Tag$_get_warningsAsErrors_$ref_gj8a6o(), null));
|
|
1737
1737
|
var tmp_26 = this;
|
|
1738
1738
|
// Inline function 'com.github.ajalt.clikt.parameters.types.enum' call
|
|
1739
1739
|
var this_0 = option(this, ['--format'], 'Output format for result');
|
|
@@ -1756,29 +1756,29 @@
|
|
|
1756
1756
|
var tmp$ret$0 = choice(this_0, destination, VOID, true);
|
|
1757
1757
|
var tmp_27 = default_0(tmp$ret$0, OutputFormat_TEXT_getInstance(), 'text');
|
|
1758
1758
|
var tmp_28 = KProperty1;
|
|
1759
|
-
tmp_26.
|
|
1759
|
+
tmp_26.y3j_1 = tmp_27.p1n(this, getPropertyCallableRef('format', 1, tmp_28, Tag$_get_format_$ref_i96vgt(), null));
|
|
1760
1760
|
}
|
|
1761
|
-
protoOf(Tag).
|
|
1762
|
-
return trimIndent('\n ' + protoOf(CliktCommand).
|
|
1761
|
+
protoOf(Tag).i1b = function (context) {
|
|
1762
|
+
return trimIndent('\n ' + protoOf(CliktCommand).i1b.call(this, context) + "\n\n ## Workflow\n\n Tagger uses a two-step workflow to separate version calculation from tagging:\n\n 1. Run `tagger calculate-version` to compute the next version and check snapshot conditions.\n 2. Review the output. If it's a release version (no -SNAPSHOT suffix), use that version here.\n\n The `--version` flag is **required**. Typically you pass the version from calculate-version output.\n\n You can manually override the calculated version when needed (for example, to correct a versioning mistake or handle an exceptional release). When overriding, ensure the version adheres to semantic versioning and follows your project's tagging policy.\n\n " + configFileHelpSuffix() + '\n ');
|
|
1763
1763
|
};
|
|
1764
|
-
protoOf(Tag).
|
|
1764
|
+
protoOf(Tag).e1e = function () {
|
|
1765
1765
|
var gitAdapter = new GitAdapter(_get_workingDirectory__eyfbj_0(this));
|
|
1766
1766
|
if (_get_dryRun__18z7px(this)) {
|
|
1767
1767
|
var headCommit = gitAdapter.ll();
|
|
1768
1768
|
var headBranch = gitAdapter.rl().wl_1;
|
|
1769
|
-
this.
|
|
1770
|
-
this.
|
|
1771
|
-
this.
|
|
1769
|
+
this.r1c("Would create annotated tag '" + _get_version__2bx7w9(this) + "' at " + headCommit + " on branch '" + headBranch + "'.");
|
|
1770
|
+
this.r1c("Would push to remote 'origin'.");
|
|
1771
|
+
this.r1c('(no changes made)');
|
|
1772
1772
|
} else {
|
|
1773
1773
|
// Inline function 'kotlin.let' call
|
|
1774
1774
|
var it = tag(new TaggerCore(gitAdapter), _get_version__2bx7w9(this), _get_releaseBranch__pqrgbs_0(this), _get_userName__tupjmd(this), _get_userEmail__21hfkw(this), _get_allowDetachedHead__iyebhm_0(this));
|
|
1775
1775
|
if (equals(it, Success_getInstance())) {
|
|
1776
1776
|
switch (_get_format__qlarck_0(this).y2_1) {
|
|
1777
1777
|
case 1:
|
|
1778
|
-
this.
|
|
1778
|
+
this.r1c(tagSuccessResponse(new TagData(_get_version__2bx7w9(this))));
|
|
1779
1779
|
break;
|
|
1780
1780
|
case 0:
|
|
1781
|
-
this.
|
|
1781
|
+
this.r1c('Success!');
|
|
1782
1782
|
break;
|
|
1783
1783
|
default:
|
|
1784
1784
|
noWhenBranchMatchedException();
|
|
@@ -1788,14 +1788,14 @@
|
|
|
1788
1788
|
if (it instanceof Warning) {
|
|
1789
1789
|
switch (_get_format__qlarck_0(this).y2_1) {
|
|
1790
1790
|
case 1:
|
|
1791
|
-
this.
|
|
1791
|
+
this.r1c(errorResponse(it.lo_1, 'TAG_ERROR'));
|
|
1792
1792
|
var tmp3_statusCode = _get_warningsAsErrors__7mpwfd_0(this) ? 1 : 0;
|
|
1793
1793
|
throw new CliktError('', VOID, tmp3_statusCode, false);
|
|
1794
1794
|
case 0:
|
|
1795
1795
|
if (_get_warningsAsErrors__7mpwfd_0(this)) {
|
|
1796
1796
|
throw new CliktError(it.lo_1);
|
|
1797
1797
|
} else {
|
|
1798
|
-
this.
|
|
1798
|
+
this.r1c(it.lo_1, VOID, true);
|
|
1799
1799
|
}
|
|
1800
1800
|
|
|
1801
1801
|
break;
|
|
@@ -1811,11 +1811,11 @@
|
|
|
1811
1811
|
};
|
|
1812
1812
|
function _get_quiet__c6dzoj($this) {
|
|
1813
1813
|
var tmp = KProperty1;
|
|
1814
|
-
return $this.
|
|
1814
|
+
return $this.o3k_1.f1n($this, getPropertyCallableRef('quiet', 1, tmp, Tagger$_get_quiet_$ref_s522ri_0(), null));
|
|
1815
1815
|
}
|
|
1816
1816
|
function Tagger$lambda($this$context) {
|
|
1817
1817
|
var tmp = $this$context;
|
|
1818
|
-
tmp.
|
|
1818
|
+
tmp.z1c_1 = Tagger$lambda$lambda;
|
|
1819
1819
|
return Unit_instance;
|
|
1820
1820
|
}
|
|
1821
1821
|
function Tagger$lambda$lambda(it) {
|
|
@@ -1824,7 +1824,7 @@
|
|
|
1824
1824
|
function Tagger$lambda_0($version, $this) {
|
|
1825
1825
|
return function ($this$eagerOption) {
|
|
1826
1826
|
var it = $version;
|
|
1827
|
-
var tmp$ret$0 = $this.
|
|
1827
|
+
var tmp$ret$0 = $this.j19_1 + ' version ' + it;
|
|
1828
1828
|
throw new PrintMessage(tmp$ret$0);
|
|
1829
1829
|
};
|
|
1830
1830
|
}
|
|
@@ -1842,29 +1842,29 @@
|
|
|
1842
1842
|
CliktCommand.call(this);
|
|
1843
1843
|
context(this, Tagger$lambda);
|
|
1844
1844
|
// Inline function 'com.github.ajalt.clikt.parameters.options.versionOption' call
|
|
1845
|
-
var version = Versions_instance.
|
|
1845
|
+
var version = Versions_instance.s3f_1;
|
|
1846
1846
|
var help = 'Show the version and exit';
|
|
1847
1847
|
var names = setOf('--version');
|
|
1848
1848
|
eagerOption(this, names, help, VOID, VOID, VOID, Tagger$lambda_0(version, this));
|
|
1849
1849
|
var tmp = this;
|
|
1850
1850
|
var tmp_0 = flag(option(this, ['--quiet', '-q'], 'Suppress welcome message. Version goes to stdout, diagnostics to stderr (safe for: VERSION=$$(tagger -q ...))'), [], false);
|
|
1851
1851
|
var tmp_1 = KProperty1;
|
|
1852
|
-
tmp.
|
|
1852
|
+
tmp.o3k_1 = tmp_0.p1n(this, getPropertyCallableRef('quiet', 1, tmp_1, Tagger$_get_quiet_$ref_s522ri(), null));
|
|
1853
1853
|
}
|
|
1854
|
-
protoOf(Tagger).
|
|
1854
|
+
protoOf(Tagger).i1b = function (context) {
|
|
1855
1855
|
return 'Tagger calculates semantic versions from Git history and enforces tagging policy.\nVersion numbers live on Git tags. Commit content determines the next version.\n\nTypical CI/build script usage:\n\n```\nVERSION=$(tagger calculate-version)\n./your-build-script.sh version=$VERSION\ntagger tag --version $VERSION\n```\n\nUse --format=json for machine-readable output. Build with calculated version before tagging.\nFor fit assessment and philosophy: tagger guide';
|
|
1856
1856
|
};
|
|
1857
|
-
protoOf(Tagger).
|
|
1858
|
-
if (!_get_quiet__c6dzoj(this) && this.
|
|
1859
|
-
this.
|
|
1857
|
+
protoOf(Tagger).e1e = function () {
|
|
1858
|
+
if (!_get_quiet__c6dzoj(this) && this.y19().m1d() == null) {
|
|
1859
|
+
this.r1c('Welcome to Tagger CLI.');
|
|
1860
1860
|
}
|
|
1861
1861
|
};
|
|
1862
1862
|
//region block: post-declaration
|
|
1863
|
-
protoOf($serializer).
|
|
1864
|
-
protoOf($serializer_0).
|
|
1865
|
-
protoOf($serializer_1).
|
|
1866
|
-
protoOf($serializer_2).
|
|
1867
|
-
protoOf($serializer_3).
|
|
1863
|
+
protoOf($serializer).hz = typeParametersSerializers;
|
|
1864
|
+
protoOf($serializer_0).hz = typeParametersSerializers;
|
|
1865
|
+
protoOf($serializer_1).hz = typeParametersSerializers;
|
|
1866
|
+
protoOf($serializer_2).hz = typeParametersSerializers;
|
|
1867
|
+
protoOf($serializer_3).hz = typeParametersSerializers;
|
|
1868
1868
|
//endregion
|
|
1869
1869
|
//region block: init
|
|
1870
1870
|
Versions_instance = new Versions();
|