git-semver-tagger 2.3.1 → 2.4.1
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 +29 -0
- package/kotlin/clikt-clikt-mordant-markdown.js.map +1 -0
- package/kotlin/clikt-clikt-mordant.js +99 -99
- package/kotlin/clikt-clikt.js +1490 -1486
- package/kotlin/clikt-clikt.js.map +1 -1
- package/kotlin/colormath-root-colormath.js +468 -468
- package/kotlin/command-line-tools-tagger-cli.js +401 -400
- package/kotlin/command-line-tools-tagger-cli.js.map +1 -1
- package/kotlin/kotlin-kotlin-stdlib.js +947 -786
- package/kotlin/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +1869 -1877
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +2139 -1821
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -1
- package/kotlin/markdown.js +6717 -0
- package/kotlin/markdown.js.map +1 -0
- package/kotlin/mordant-mordant-markdown.js +660 -0
- package/kotlin/mordant-mordant-markdown.js.map +1 -0
- package/kotlin/mordant-mordant.js +2327 -1367
- package/kotlin/mordant-mordant.js.map +1 -1
- package/kotlin/tools-cli-tools.js +5 -5
- package/kotlin/tools-digger-core.js +10 -10
- package/kotlin/tools-git-adapter.js +118 -118
- package/kotlin/tools-tagger-core.js +152 -152
- package/kotlin/tools-tagger-json.js +143 -143
- package/package.json +1 -1
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
(function (_, kotlin_kotlin, kotlin_clikt_clikt, kotlin_com_zegreatrob_tools_cli_tools, kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json, kotlin_com_zegreatrob_tools_tagger_json, kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core, kotlin_com_zegreatrob_tools_tagger_core, kotlin_clikt_clikt_mordant, kotlin_com_zegreatrob_tools_git_adapter) {
|
|
1
|
+
(function (_, kotlin_kotlin, kotlin_clikt_clikt, kotlin_com_zegreatrob_tools_cli_tools, kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json, kotlin_com_zegreatrob_tools_tagger_json, kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core, kotlin_com_zegreatrob_tools_tagger_core, kotlin_clikt_clikt_mordant, kotlin_com_zegreatrob_tools_git_adapter, kotlin_clikt_clikt_mordant_markdown) {
|
|
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
|
-
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.
|
|
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.$_$.
|
|
27
|
-
var collectionSizeOrDefault = kotlin_kotlin.$_$.
|
|
28
|
-
var ArrayList_init_$Create$_0 = 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
|
+
var collectionSizeOrDefault = kotlin_kotlin.$_$.z4;
|
|
28
|
+
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.z;
|
|
29
29
|
var RegexOption_IGNORE_CASE_getInstance = kotlin_kotlin.$_$.w;
|
|
30
|
-
var Regex_init_$Create$ = kotlin_kotlin.$_$.
|
|
30
|
+
var Regex_init_$Create$ = kotlin_kotlin.$_$.o1;
|
|
31
31
|
var VersionRegex = kotlin_com_zegreatrob_tools_tagger_core.$_$.c;
|
|
32
32
|
var CliktCommand = kotlin_clikt_clikt_mordant.$_$.a;
|
|
33
33
|
var context = kotlin_clikt_clikt.$_$.e;
|
|
@@ -36,58 +36,59 @@
|
|
|
36
36
|
var option = kotlin_clikt_clikt.$_$.p;
|
|
37
37
|
var boolean = kotlin_clikt_clikt.$_$.r;
|
|
38
38
|
var default_0 = kotlin_clikt_clikt.$_$.l;
|
|
39
|
-
var mapCapacity = kotlin_kotlin.$_$.
|
|
40
|
-
var coerceAtLeast = kotlin_kotlin.$_$.
|
|
41
|
-
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.
|
|
39
|
+
var mapCapacity = kotlin_kotlin.$_$.s6;
|
|
40
|
+
var coerceAtLeast = kotlin_kotlin.$_$.ya;
|
|
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.$_$.de;
|
|
45
46
|
var GitAdapter = kotlin_com_zegreatrob_tools_git_adapter.$_$.a;
|
|
46
47
|
var TaggerCore = kotlin_com_zegreatrob_tools_tagger_core.$_$.b;
|
|
47
48
|
var calculateNextVersion = kotlin_com_zegreatrob_tools_tagger_core.$_$.f;
|
|
48
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.
|
|
49
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.uf;
|
|
49
50
|
var Failure = kotlin_com_zegreatrob_tools_tagger_core.$_$.d;
|
|
50
|
-
var plus = kotlin_kotlin.$_$.
|
|
51
|
-
var joinToString = kotlin_kotlin.$_$.
|
|
51
|
+
var plus = kotlin_kotlin.$_$.b7;
|
|
52
|
+
var joinToString = kotlin_kotlin.$_$.d6;
|
|
52
53
|
var Success = kotlin_com_zegreatrob_tools_tagger_core.$_$.e;
|
|
53
54
|
var JsonElement = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.c;
|
|
54
55
|
var JsonObject = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.e;
|
|
55
|
-
var emptyList = kotlin_kotlin.$_$.
|
|
56
|
+
var emptyList = kotlin_kotlin.$_$.q5;
|
|
56
57
|
var Companion_instance_0 = kotlin_clikt_clikt.$_$.u;
|
|
57
58
|
var get_jsonPrimitive = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.i;
|
|
58
59
|
var JsonArray = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.b;
|
|
59
|
-
var IllegalArgumentException = kotlin_kotlin.$_$.
|
|
60
|
-
var split = kotlin_kotlin.$_$.
|
|
60
|
+
var IllegalArgumentException = kotlin_kotlin.$_$.se;
|
|
61
|
+
var split = kotlin_kotlin.$_$.id;
|
|
61
62
|
var Companion_instance_1 = kotlin_clikt_clikt.$_$.t;
|
|
62
|
-
var listOf = kotlin_kotlin.$_$.
|
|
63
|
-
var Regex_init_$Create$_0 = kotlin_kotlin.$_$.
|
|
64
|
-
var last = kotlin_kotlin.$_$.
|
|
65
|
-
var toString = kotlin_kotlin.$_$.
|
|
63
|
+
var listOf = kotlin_kotlin.$_$.q6;
|
|
64
|
+
var Regex_init_$Create$_0 = kotlin_kotlin.$_$.n1;
|
|
65
|
+
var last = kotlin_kotlin.$_$.uc;
|
|
66
|
+
var toString = kotlin_kotlin.$_$.m2;
|
|
66
67
|
var JsonObjectBuilder = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.d;
|
|
67
68
|
var get_jsonObject = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.h;
|
|
68
69
|
var get_contentOrNull = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.g;
|
|
69
70
|
var optionalValue = kotlin_clikt_clikt.$_$.o;
|
|
70
71
|
var Json = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.f;
|
|
71
72
|
var get_runtimeDefaultConfig = kotlin_com_zegreatrob_tools_tagger_json.$_$.b;
|
|
72
|
-
var isBlank = kotlin_kotlin.$_$.
|
|
73
|
+
var isBlank = kotlin_kotlin.$_$.nc;
|
|
73
74
|
var writeToFile = kotlin_com_zegreatrob_tools_cli_tools.$_$.c;
|
|
74
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
75
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.t9;
|
|
75
76
|
var PluginGeneratedSerialDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.s1;
|
|
76
77
|
var UnknownFieldException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.l;
|
|
77
78
|
var StringSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.j;
|
|
78
79
|
var typeParametersSerializers = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.n1;
|
|
79
80
|
var GeneratedSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.o1;
|
|
80
|
-
var throwMissingFieldException = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.
|
|
81
|
-
var objectCreate = kotlin_kotlin.$_$.
|
|
82
|
-
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;
|
|
83
84
|
var ArrayListSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.l1;
|
|
84
|
-
var LazyThreadSafetyMode_PUBLICATION_getInstance = kotlin_kotlin.$_$.
|
|
85
|
-
var lazy = kotlin_kotlin.$_$.
|
|
86
|
-
var equals = kotlin_kotlin.$_$.
|
|
85
|
+
var LazyThreadSafetyMode_PUBLICATION_getInstance = kotlin_kotlin.$_$.y;
|
|
86
|
+
var lazy = kotlin_kotlin.$_$.sf;
|
|
87
|
+
var equals = kotlin_kotlin.$_$.m9;
|
|
87
88
|
var BooleanSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.i;
|
|
88
|
-
var toString_0 = kotlin_kotlin.$_$.
|
|
89
|
-
var getBooleanHashCode = kotlin_kotlin.$_$.
|
|
90
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
89
|
+
var toString_0 = kotlin_kotlin.$_$.sa;
|
|
90
|
+
var getBooleanHashCode = kotlin_kotlin.$_$.n9;
|
|
91
|
+
var hashCode = kotlin_kotlin.$_$.r9;
|
|
91
92
|
var SerializableWith = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.d2;
|
|
92
93
|
var platformArgCorrection = kotlin_com_zegreatrob_tools_cli_tools.$_$.a;
|
|
93
94
|
var main = kotlin_clikt_clikt.$_$.f;
|
|
@@ -96,12 +97,11 @@
|
|
|
96
97
|
var tag = kotlin_com_zegreatrob_tools_tagger_core.$_$.g;
|
|
97
98
|
var Warning = kotlin_com_zegreatrob_tools_tagger_core.$_$.a;
|
|
98
99
|
var Success_getInstance = kotlin_com_zegreatrob_tools_tagger_core.$_$.h;
|
|
99
|
-
var
|
|
100
|
+
var MordantMarkdownHelpFormatter = kotlin_clikt_clikt_mordant_markdown.$_$.a;
|
|
100
101
|
var PrintMessage = kotlin_clikt_clikt.$_$.d;
|
|
101
|
-
var setOf = kotlin_kotlin.$_$.
|
|
102
|
+
var setOf = kotlin_kotlin.$_$.f7;
|
|
102
103
|
var eagerOption = kotlin_clikt_clikt.$_$.m;
|
|
103
104
|
var flag = kotlin_clikt_clikt.$_$.n;
|
|
104
|
-
var trimIndent = kotlin_kotlin.$_$.jd;
|
|
105
105
|
//endregion
|
|
106
106
|
//region block: pre-declaration
|
|
107
107
|
initMetadataForObject(Versions, 'Versions');
|
|
@@ -109,6 +109,7 @@
|
|
|
109
109
|
initMetadataForClass(CalculateVersion, 'CalculateVersion', CalculateVersion, CliktCommand);
|
|
110
110
|
initMetadataForClass(ConfigFileSource, 'ConfigFileSource');
|
|
111
111
|
initMetadataForClass(GenerateSettingsFile, 'GenerateSettingsFile', GenerateSettingsFile, CliktCommand);
|
|
112
|
+
initMetadataForClass(Guide, 'Guide', Guide, CliktCommand);
|
|
112
113
|
initMetadataForCompanion(Companion);
|
|
113
114
|
initMetadataForObject($serializer, '$serializer', VOID, VOID, [GeneratedSerializer]);
|
|
114
115
|
initMetadataForClass(VersionSuccessResponse, 'VersionSuccessResponse', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance});
|
|
@@ -128,7 +129,7 @@
|
|
|
128
129
|
initMetadataForClass(Tagger, 'Tagger', Tagger, CliktCommand);
|
|
129
130
|
//endregion
|
|
130
131
|
function Versions() {
|
|
131
|
-
this.
|
|
132
|
+
this.s3f_1 = '2.4.1';
|
|
132
133
|
}
|
|
133
134
|
var Versions_instance;
|
|
134
135
|
function Versions_getInstance() {
|
|
@@ -152,11 +153,11 @@
|
|
|
152
153
|
}
|
|
153
154
|
function _get_gitRepoArgument__zxde8($this) {
|
|
154
155
|
var tmp = KProperty1;
|
|
155
|
-
return $this.
|
|
156
|
+
return $this.i3g_1.f1n($this, getPropertyCallableRef('gitRepoArgument', 1, tmp, CalculateVersion$_get_gitRepoArgument_$ref_ekksr7_0(), null));
|
|
156
157
|
}
|
|
157
158
|
function _get_gitRepoOption__rk7ta0($this) {
|
|
158
159
|
var tmp = KProperty1;
|
|
159
|
-
return $this.
|
|
160
|
+
return $this.j3g_1.f1n($this, getPropertyCallableRef('gitRepoOption', 1, tmp, CalculateVersion$_get_gitRepoOption_$ref_ms8ohh_0(), null));
|
|
160
161
|
}
|
|
161
162
|
function _get_workingDirectory__eyfbj($this) {
|
|
162
163
|
var tmp0_elvis_lhs = _get_gitRepoArgument__zxde8($this);
|
|
@@ -171,15 +172,15 @@
|
|
|
171
172
|
}
|
|
172
173
|
function _get_implicitPatch__bjk4pa($this) {
|
|
173
174
|
var tmp = KProperty1;
|
|
174
|
-
return $this.
|
|
175
|
+
return $this.k3g_1.f1n($this, getPropertyCallableRef('implicitPatch', 1, tmp, CalculateVersion$_get_implicitPatch_$ref_8lm4hh_0(), null));
|
|
175
176
|
}
|
|
176
177
|
function _get_disableDetachedDeprecated__wab4kc($this) {
|
|
177
178
|
var tmp = KProperty1;
|
|
178
|
-
return $this.
|
|
179
|
+
return $this.l3g_1.f1n($this, getPropertyCallableRef('disableDetachedDeprecated', 1, tmp, CalculateVersion$_get_disableDetachedDeprecated_$ref_ej45b3_0(), null));
|
|
179
180
|
}
|
|
180
181
|
function _get_allowDetachedHeadOption__9wrgdb($this) {
|
|
181
182
|
var tmp = KProperty1;
|
|
182
|
-
return $this.
|
|
183
|
+
return $this.m3g_1.f1n($this, getPropertyCallableRef('allowDetachedHeadOption', 1, tmp, CalculateVersion$_get_allowDetachedHeadOption_$ref_3ju9um_0(), null));
|
|
183
184
|
}
|
|
184
185
|
function _get_allowDetachedHead__iyebhm($this) {
|
|
185
186
|
var tmp0_elvis_lhs = _get_allowDetachedHeadOption__9wrgdb($this);
|
|
@@ -202,39 +203,39 @@
|
|
|
202
203
|
}
|
|
203
204
|
function _get_forceSnapshot__vb3h7m($this) {
|
|
204
205
|
var tmp = KProperty1;
|
|
205
|
-
return $this.
|
|
206
|
+
return $this.n3g_1.f1n($this, getPropertyCallableRef('forceSnapshot', 1, tmp, CalculateVersion$_get_forceSnapshot_$ref_8rl68v_0(), null));
|
|
206
207
|
}
|
|
207
208
|
function _get_releaseBranch__pqrgbs($this) {
|
|
208
209
|
var tmp = KProperty1;
|
|
209
|
-
return $this.
|
|
210
|
+
return $this.o3g_1.f1n($this, getPropertyCallableRef('releaseBranch', 1, tmp, CalculateVersion$_get_releaseBranch_$ref_3xh47v_0(), null));
|
|
210
211
|
}
|
|
211
212
|
function _get_format__qlarck($this) {
|
|
212
213
|
var tmp = KProperty1;
|
|
213
|
-
return $this.
|
|
214
|
+
return $this.p3g_1.f1n($this, getPropertyCallableRef('format', 1, tmp, CalculateVersion$_get_format_$ref_clhcb9_0(), null));
|
|
214
215
|
}
|
|
215
216
|
function _get_warningsAsErrors__7mpwfd($this) {
|
|
216
217
|
var tmp = KProperty1;
|
|
217
|
-
return $this.
|
|
218
|
+
return $this.q3g_1.f1n($this, getPropertyCallableRef('warningsAsErrors', 1, tmp, CalculateVersion$_get_warningsAsErrors_$ref_ncq8fs_0(), null));
|
|
218
219
|
}
|
|
219
220
|
function _get_majorRegex__5j6ypp($this) {
|
|
220
221
|
var tmp = KProperty1;
|
|
221
|
-
return $this.
|
|
222
|
+
return $this.r3g_1.f1n($this, getPropertyCallableRef('majorRegex', 1, tmp, CalculateVersion$_get_majorRegex_$ref_erugf6_0(), null));
|
|
222
223
|
}
|
|
223
224
|
function _get_minorRegex__20z96h($this) {
|
|
224
225
|
var tmp = KProperty1;
|
|
225
|
-
return $this.
|
|
226
|
+
return $this.s3g_1.f1n($this, getPropertyCallableRef('minorRegex', 1, tmp, CalculateVersion$_get_minorRegex_$ref_u1fzja_0(), null));
|
|
226
227
|
}
|
|
227
228
|
function _get_patchRegex__mtlu2c($this) {
|
|
228
229
|
var tmp = KProperty1;
|
|
229
|
-
return $this.
|
|
230
|
+
return $this.t3g_1.f1n($this, getPropertyCallableRef('patchRegex', 1, tmp, CalculateVersion$_get_patchRegex_$ref_124637_0(), null));
|
|
230
231
|
}
|
|
231
232
|
function _get_noneRegex__1tdbgi($this) {
|
|
232
233
|
var tmp = KProperty1;
|
|
233
|
-
return $this.
|
|
234
|
+
return $this.u3g_1.f1n($this, getPropertyCallableRef('noneRegex', 1, tmp, CalculateVersion$_get_noneRegex_$ref_vcaxfl_0(), null));
|
|
234
235
|
}
|
|
235
236
|
function _get_versionRegex__7su5ss($this) {
|
|
236
237
|
var tmp = KProperty1;
|
|
237
|
-
return $this.
|
|
238
|
+
return $this.v3g_1.f1n($this, getPropertyCallableRef('versionRegex', 1, tmp, CalculateVersion$_get_versionRegex_$ref_f466m5_0(), null));
|
|
238
239
|
}
|
|
239
240
|
function disableDetachedDeprecationWarning($this) {
|
|
240
241
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
@@ -261,12 +262,12 @@
|
|
|
261
262
|
// Inline function 'kotlinx.serialization.json.Json.decodeFromString' call
|
|
262
263
|
var this_0 = Default_getInstance();
|
|
263
264
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
264
|
-
var this_1 = this_0.
|
|
265
|
+
var this_1 = this_0.ks();
|
|
265
266
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
266
267
|
var this_2 = serializer(this_1, createKType(getKClass(TaggerConfig), arrayOf([]), false));
|
|
267
268
|
var tmp$ret$1 = isInterface(this_2, KSerializer) ? this_2 : THROW_CCE();
|
|
268
|
-
var config = this_0.
|
|
269
|
-
tmp_0 = !(config.
|
|
269
|
+
var config = this_0.s31(tmp$ret$1, configFile);
|
|
270
|
+
tmp_0 = !(config.y18_1 == null);
|
|
270
271
|
} catch ($p) {
|
|
271
272
|
var tmp_1;
|
|
272
273
|
if ($p instanceof Exception) {
|
|
@@ -280,25 +281,25 @@
|
|
|
280
281
|
return tmp_0;
|
|
281
282
|
}
|
|
282
283
|
function output($this, message, errorMessage, warnings) {
|
|
283
|
-
$this.
|
|
284
|
+
$this.r1c(message);
|
|
284
285
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
285
286
|
if (!errorMessage.p()) {
|
|
286
287
|
// Inline function 'kotlin.collections.forEach' call
|
|
287
288
|
var _iterator__ex2g4s = errorMessage.r();
|
|
288
289
|
while (_iterator__ex2g4s.s()) {
|
|
289
290
|
var element = _iterator__ex2g4s.t();
|
|
290
|
-
$this.
|
|
291
|
+
$this.r1c(formatSnapshotReason($this, element), VOID, true);
|
|
291
292
|
}
|
|
292
293
|
}
|
|
293
294
|
// Inline function 'kotlin.collections.forEach' call
|
|
294
295
|
var _iterator__ex2g4s_0 = warnings.r();
|
|
295
296
|
while (_iterator__ex2g4s_0.s()) {
|
|
296
297
|
var element_0 = _iterator__ex2g4s_0.t();
|
|
297
|
-
$this.
|
|
298
|
+
$this.r1c(element_0, VOID, true);
|
|
298
299
|
}
|
|
299
300
|
}
|
|
300
301
|
function formatSnapshotReason($this, reason) {
|
|
301
|
-
return reason.x2_1 + ' - ' + reason.
|
|
302
|
+
return reason.x2_1 + ' - ' + reason.wm_1;
|
|
302
303
|
}
|
|
303
304
|
function outputJson($this, version, snapshotReasons, warnings) {
|
|
304
305
|
var isSnapshot = endsWith(version, '-SNAPSHOT');
|
|
@@ -312,7 +313,7 @@
|
|
|
312
313
|
destination.v(tmp$ret$2);
|
|
313
314
|
}
|
|
314
315
|
var jsonOutput = versionSuccessResponse(new VersionData(version, isSnapshot, destination, warnings));
|
|
315
|
-
$this.
|
|
316
|
+
$this.r1c(jsonOutput);
|
|
316
317
|
}
|
|
317
318
|
function buildVersionRegex($this) {
|
|
318
319
|
var tmp = Regex_init_$Create$(_get_noneRegex__1tdbgi($this), RegexOption_IGNORE_CASE_getInstance());
|
|
@@ -330,7 +331,7 @@
|
|
|
330
331
|
return new VersionRegex(tmp, tmp_0, tmp_1, tmp_2, tmp_3);
|
|
331
332
|
}
|
|
332
333
|
function CalculateVersion$lambda($this$context) {
|
|
333
|
-
$this$context.
|
|
334
|
+
$this$context.l1d([new ConfigFileSource($this$context.h1d_1)]);
|
|
334
335
|
return Unit_instance;
|
|
335
336
|
}
|
|
336
337
|
function CalculateVersion$_get_gitRepoArgument_$ref_ekksr7() {
|
|
@@ -468,9 +469,9 @@
|
|
|
468
469
|
var tmp;
|
|
469
470
|
if (!(it == null)) {
|
|
470
471
|
// Inline function 'com.github.ajalt.clikt.parameters.options.OptionTransformContext.require' call
|
|
471
|
-
if (!$tmp4_check_this.
|
|
472
|
+
if (!$tmp4_check_this.ro(it)) {
|
|
472
473
|
var tmp$ret$3 = $message;
|
|
473
|
-
$this$copy.
|
|
474
|
+
$this$copy.o1m(tmp$ret$3);
|
|
474
475
|
}
|
|
475
476
|
tmp = Unit_instance;
|
|
476
477
|
}
|
|
@@ -492,7 +493,7 @@
|
|
|
492
493
|
var _iterator__ex2g4s = deprecationWarnings.r();
|
|
493
494
|
while (_iterator__ex2g4s.s()) {
|
|
494
495
|
var element = _iterator__ex2g4s.t();
|
|
495
|
-
this$0.
|
|
496
|
+
this$0.r1c(element, VOID, true);
|
|
496
497
|
}
|
|
497
498
|
return Unit_instance;
|
|
498
499
|
}
|
|
@@ -502,31 +503,31 @@
|
|
|
502
503
|
var tmp = this;
|
|
503
504
|
var tmp_0 = optional(argument(this, 'git-repo'));
|
|
504
505
|
var tmp_1 = KProperty1;
|
|
505
|
-
tmp.
|
|
506
|
+
tmp.i3g_1 = tmp_0.l1m(this, getPropertyCallableRef('gitRepoArgument', 1, tmp_1, CalculateVersion$_get_gitRepoArgument_$ref_ekksr7(), null));
|
|
506
507
|
var tmp_2 = this;
|
|
507
508
|
var tmp_3 = option(this, ['--git-repo'], VOID, VOID, VOID, 'PWD');
|
|
508
509
|
var tmp_4 = KProperty1;
|
|
509
|
-
tmp_2.
|
|
510
|
+
tmp_2.j3g_1 = tmp_3.p1n(this, getPropertyCallableRef('gitRepoOption', 1, tmp_4, CalculateVersion$_get_gitRepoOption_$ref_ms8ohh(), null));
|
|
510
511
|
var tmp_5 = this;
|
|
511
512
|
var tmp_6 = default_0(boolean(option(this, [], 'Automatically bump patch version when no version-tagged commits exist since last release.')), true);
|
|
512
513
|
var tmp_7 = KProperty1;
|
|
513
|
-
tmp_5.
|
|
514
|
+
tmp_5.k3g_1 = tmp_6.p1n(this, getPropertyCallableRef('implicitPatch', 1, tmp_7, CalculateVersion$_get_implicitPatch_$ref_8lm4hh(), null));
|
|
514
515
|
var tmp_8 = this;
|
|
515
516
|
var tmp_9 = boolean(option(this, ['--disable-detached'], VOID, VOID, true));
|
|
516
517
|
var tmp_10 = KProperty1;
|
|
517
|
-
tmp_8.
|
|
518
|
+
tmp_8.l3g_1 = tmp_9.p1n(this, getPropertyCallableRef('disableDetachedDeprecated', 1, tmp_10, CalculateVersion$_get_disableDetachedDeprecated_$ref_ej45b3(), null));
|
|
518
519
|
var tmp_11 = this;
|
|
519
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.'));
|
|
520
521
|
var tmp_13 = KProperty1;
|
|
521
|
-
tmp_11.
|
|
522
|
+
tmp_11.m3g_1 = tmp_12.p1n(this, getPropertyCallableRef('allowDetachedHeadOption', 1, tmp_13, CalculateVersion$_get_allowDetachedHeadOption_$ref_3ju9um(), null));
|
|
522
523
|
var tmp_14 = this;
|
|
523
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);
|
|
524
525
|
var tmp_16 = KProperty1;
|
|
525
|
-
tmp_14.
|
|
526
|
+
tmp_14.n3g_1 = tmp_15.p1n(this, getPropertyCallableRef('forceSnapshot', 1, tmp_16, CalculateVersion$_get_forceSnapshot_$ref_8rl68v(), null));
|
|
526
527
|
var tmp_17 = this;
|
|
527
528
|
var tmp_18 = option(this, [], 'Specify release branch name. Versions are release versions only on this branch; other branches produce -SNAPSHOT versions.');
|
|
528
529
|
var tmp_19 = KProperty1;
|
|
529
|
-
tmp_17.
|
|
530
|
+
tmp_17.o3g_1 = tmp_18.p1n(this, getPropertyCallableRef('releaseBranch', 1, tmp_19, CalculateVersion$_get_releaseBranch_$ref_3xh47v(), null));
|
|
530
531
|
var tmp_20 = this;
|
|
531
532
|
// Inline function 'com.github.ajalt.clikt.parameters.types.enum' call
|
|
532
533
|
var this_0 = option(this, ['--format'], 'Use json for structured data with version, snapshot status, and diagnostic flags.');
|
|
@@ -549,44 +550,44 @@
|
|
|
549
550
|
var tmp$ret$0 = choice(this_0, destination, VOID, true);
|
|
550
551
|
var tmp_21 = default_0(tmp$ret$0, OutputFormat_TEXT_getInstance(), 'text');
|
|
551
552
|
var tmp_22 = KProperty1;
|
|
552
|
-
tmp_20.
|
|
553
|
+
tmp_20.p3g_1 = tmp_21.p1n(this, getPropertyCallableRef('format', 1, tmp_22, CalculateVersion$_get_format_$ref_clhcb9(), null));
|
|
553
554
|
var tmp_23 = this;
|
|
554
555
|
var tmp_24 = default_0(boolean(option(this, [])), false);
|
|
555
556
|
var tmp_25 = KProperty1;
|
|
556
|
-
tmp_23.
|
|
557
|
+
tmp_23.q3g_1 = tmp_24.p1n(this, getPropertyCallableRef('warningsAsErrors', 1, tmp_25, CalculateVersion$_get_warningsAsErrors_$ref_ncq8fs(), null));
|
|
557
558
|
var tmp_26 = this;
|
|
558
|
-
var tmp_27 = default_0(option(this, []), Defaults_getInstance().
|
|
559
|
+
var tmp_27 = default_0(option(this, []), Defaults_getInstance().po_1.tb_1);
|
|
559
560
|
var tmp_28 = KProperty1;
|
|
560
|
-
tmp_26.
|
|
561
|
+
tmp_26.r3g_1 = tmp_27.p1n(this, getPropertyCallableRef('majorRegex', 1, tmp_28, CalculateVersion$_get_majorRegex_$ref_erugf6(), null));
|
|
561
562
|
var tmp_29 = this;
|
|
562
|
-
var tmp_30 = default_0(option(this, []), Defaults_getInstance().
|
|
563
|
+
var tmp_30 = default_0(option(this, []), Defaults_getInstance().oo_1.tb_1);
|
|
563
564
|
var tmp_31 = KProperty1;
|
|
564
|
-
tmp_29.
|
|
565
|
+
tmp_29.s3g_1 = tmp_30.p1n(this, getPropertyCallableRef('minorRegex', 1, tmp_31, CalculateVersion$_get_minorRegex_$ref_u1fzja(), null));
|
|
565
566
|
var tmp_32 = this;
|
|
566
|
-
var tmp_33 = default_0(option(this, []), Defaults_getInstance().
|
|
567
|
+
var tmp_33 = default_0(option(this, []), Defaults_getInstance().no_1.tb_1);
|
|
567
568
|
var tmp_34 = KProperty1;
|
|
568
|
-
tmp_32.
|
|
569
|
+
tmp_32.t3g_1 = tmp_33.p1n(this, getPropertyCallableRef('patchRegex', 1, tmp_34, CalculateVersion$_get_patchRegex_$ref_124637(), null));
|
|
569
570
|
var tmp_35 = this;
|
|
570
|
-
var tmp_36 = default_0(option(this, []), Defaults_getInstance().
|
|
571
|
+
var tmp_36 = default_0(option(this, []), Defaults_getInstance().mo_1.tb_1);
|
|
571
572
|
var tmp_37 = KProperty1;
|
|
572
|
-
tmp_35.
|
|
573
|
+
tmp_35.u3g_1 = tmp_36.p1n(this, getPropertyCallableRef('noneRegex', 1, tmp_37, CalculateVersion$_get_noneRegex_$ref_vcaxfl(), null));
|
|
573
574
|
var tmp_38 = this;
|
|
574
575
|
var tmp0 = option(this, []);
|
|
575
576
|
// Inline function 'com.github.ajalt.clikt.parameters.options.check' call
|
|
576
577
|
var message = "version regex must include groups named 'major', 'minor', 'patch', and 'none'.";
|
|
577
578
|
// Inline function 'com.github.ajalt.clikt.parameters.options.check' call
|
|
578
579
|
// Inline function 'com.github.ajalt.clikt.parameters.options.validate' call
|
|
579
|
-
var tmp_39 = tmp0.
|
|
580
|
-
var tmp_40 = tmp0.
|
|
581
|
-
var tmp_41 = tmp0.
|
|
582
|
-
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));
|
|
583
584
|
var tmp_43 = KProperty1;
|
|
584
|
-
tmp_38.
|
|
585
|
+
tmp_38.v3g_1 = tmp_42.p1n(this, getPropertyCallableRef('versionRegex', 1, tmp_43, CalculateVersion$_get_versionRegex_$ref_f466m5(), null));
|
|
585
586
|
}
|
|
586
|
-
protoOf(CalculateVersion).
|
|
587
|
-
return 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 ');
|
|
588
589
|
};
|
|
589
|
-
protoOf(CalculateVersion).
|
|
590
|
+
protoOf(CalculateVersion).e1e = function () {
|
|
590
591
|
var deprecationWarnings = disableDetachedDeprecationWarning(this);
|
|
591
592
|
var tmp = new TaggerCore(new GitAdapter(_get_workingDirectory__eyfbj(this)));
|
|
592
593
|
var tmp_0 = _get_implicitPatch__bjk4pa(this);
|
|
@@ -597,21 +598,21 @@
|
|
|
597
598
|
// Inline function 'kotlin.run' call
|
|
598
599
|
var $this$run = calculateNextVersion(tmp, tmp_0, tmp_1, tmp_2, tmp_3, tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs);
|
|
599
600
|
if ($this$run instanceof Success) {
|
|
600
|
-
var allWarnings = plus($this$run.
|
|
601
|
+
var allWarnings = plus($this$run.uo_1, deprecationWarnings);
|
|
601
602
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
602
603
|
var hasWarnings = !allWarnings.p();
|
|
603
604
|
var shouldEscalate = _get_warningsAsErrors__7mpwfd(this) && hasWarnings;
|
|
604
605
|
switch (_get_format__qlarck(this).y2_1) {
|
|
605
606
|
case 1:
|
|
606
607
|
if (shouldEscalate) {
|
|
607
|
-
this.
|
|
608
|
+
this.r1c(errorResponse('Warnings escalated to errors: ' + joinToString(allWarnings, '; '), 'WARNINGS_AS_ERRORS'));
|
|
608
609
|
} else {
|
|
609
|
-
outputJson(this, $this$run.
|
|
610
|
+
outputJson(this, $this$run.so_1, $this$run.to_1, allWarnings);
|
|
610
611
|
}
|
|
611
612
|
|
|
612
613
|
break;
|
|
613
614
|
case 0:
|
|
614
|
-
output(this, $this$run.
|
|
615
|
+
output(this, $this$run.so_1, $this$run.to_1, allWarnings);
|
|
615
616
|
break;
|
|
616
617
|
default:
|
|
617
618
|
noWhenBranchMatchedException();
|
|
@@ -625,7 +626,7 @@
|
|
|
625
626
|
switch (_get_format__qlarck(this).y2_1) {
|
|
626
627
|
case 1:
|
|
627
628
|
run$outputDeprecationWarnings(deprecationWarnings, this);
|
|
628
|
-
this.
|
|
629
|
+
this.r1c(errorResponse($this$run.ba(), 'CONFIGURATION_ERROR'));
|
|
629
630
|
throw new CliktError('', VOID, 1, false);
|
|
630
631
|
case 0:
|
|
631
632
|
run$outputDeprecationWarnings(deprecationWarnings, this);
|
|
@@ -679,12 +680,12 @@
|
|
|
679
680
|
var _iterator__ex2g4s = cursor.r();
|
|
680
681
|
while (_iterator__ex2g4s.s()) {
|
|
681
682
|
var item = _iterator__ex2g4s.t();
|
|
682
|
-
var tmp$ret$2 = Companion_instance_0.
|
|
683
|
+
var tmp$ret$2 = Companion_instance_0.h1s(get_jsonPrimitive(item).d34());
|
|
683
684
|
destination.v(tmp$ret$2);
|
|
684
685
|
}
|
|
685
686
|
tmp_0 = destination;
|
|
686
687
|
} else {
|
|
687
|
-
tmp_0 = Companion_instance_0.
|
|
688
|
+
tmp_0 = Companion_instance_0.g1s(get_jsonPrimitive(cursor).d34());
|
|
688
689
|
}
|
|
689
690
|
tmp = tmp_0;
|
|
690
691
|
} catch ($p) {
|
|
@@ -700,9 +701,9 @@
|
|
|
700
701
|
return tmp;
|
|
701
702
|
}
|
|
702
703
|
function parts($this, $receiver) {
|
|
703
|
-
var tmp0_safe_receiver = $receiver.
|
|
704
|
+
var tmp0_safe_receiver = $receiver.s1e();
|
|
704
705
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : split(tmp0_safe_receiver, ['.']);
|
|
705
|
-
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;
|
|
706
707
|
}
|
|
707
708
|
function kebabToCamelCase($this, $receiver) {
|
|
708
709
|
// Inline function 'kotlin.text.toRegex' call
|
|
@@ -712,7 +713,7 @@
|
|
|
712
713
|
return pattern.lc($receiver, transform);
|
|
713
714
|
}
|
|
714
715
|
function readConfigFileAsJsonElement($this) {
|
|
715
|
-
var pwd = $this.
|
|
716
|
+
var pwd = $this.w3g_1('PWD');
|
|
716
717
|
var tmp0_elvis_lhs = readFromFile('' + pwd + '/.tagger');
|
|
717
718
|
var tmp;
|
|
718
719
|
if (tmp0_elvis_lhs == null) {
|
|
@@ -726,11 +727,11 @@
|
|
|
726
727
|
// Inline function 'kotlinx.serialization.json.Json.decodeFromString' call
|
|
727
728
|
var this_0 = Default_getInstance();
|
|
728
729
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
729
|
-
var this_1 = this_0.
|
|
730
|
+
var this_1 = this_0.ks();
|
|
730
731
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
731
732
|
var this_2 = serializer(this_1, createKType(getKClass(TaggerConfig), arrayOf([]), false));
|
|
732
733
|
var tmp$ret$1 = isInterface(this_2, KSerializer) ? this_2 : THROW_CCE();
|
|
733
|
-
tmp_0 = this_0.
|
|
734
|
+
tmp_0 = this_0.s31(tmp$ret$1, fileContents);
|
|
734
735
|
} catch ($p) {
|
|
735
736
|
var tmp_1;
|
|
736
737
|
if ($p instanceof Exception) {
|
|
@@ -744,11 +745,11 @@
|
|
|
744
745
|
// Inline function 'kotlinx.serialization.json.encodeToJsonElement' call
|
|
745
746
|
var this_3 = Default_getInstance();
|
|
746
747
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
747
|
-
var this_4 = this_3.
|
|
748
|
+
var this_4 = this_3.ks();
|
|
748
749
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
749
750
|
var this_5 = serializer(this_4, createKType(getKClass(TaggerConfig), arrayOf([]), false));
|
|
750
751
|
var tmp$ret$4 = isInterface(this_5, KSerializer) ? this_5 : THROW_CCE();
|
|
751
|
-
var configAsElement = this_3.
|
|
752
|
+
var configAsElement = this_3.t31(tmp$ret$4, config);
|
|
752
753
|
return configAsElement;
|
|
753
754
|
}
|
|
754
755
|
function ConfigFileSource$kebabToCamelCase$lambda(it) {
|
|
@@ -759,9 +760,9 @@
|
|
|
759
760
|
return toString(this_0).toUpperCase();
|
|
760
761
|
}
|
|
761
762
|
function ConfigFileSource(envvarReader) {
|
|
762
|
-
this.
|
|
763
|
+
this.w3g_1 = envvarReader;
|
|
763
764
|
}
|
|
764
|
-
protoOf(ConfigFileSource).
|
|
765
|
+
protoOf(ConfigFileSource).r1n = function (context, option) {
|
|
765
766
|
var tmp0_elvis_lhs = readConfigFileAsJsonElement(this);
|
|
766
767
|
var tmp;
|
|
767
768
|
if (tmp0_elvis_lhs == null) {
|
|
@@ -774,11 +775,11 @@
|
|
|
774
775
|
};
|
|
775
776
|
function _get_file__d6iv67($this) {
|
|
776
777
|
var tmp = KProperty1;
|
|
777
|
-
return $this.
|
|
778
|
+
return $this.m3h_1.f1n($this, getPropertyCallableRef('file', 1, tmp, GenerateSettingsFile$_get_file_$ref_3dvoj2_0(), null));
|
|
778
779
|
}
|
|
779
780
|
function _get_merge__eb7eqv($this) {
|
|
780
781
|
var tmp = KProperty1;
|
|
781
|
-
return $this.
|
|
782
|
+
return $this.n3h_1.f1n($this, getPropertyCallableRef('merge', 1, tmp, GenerateSettingsFile$_get_merge_$ref_3aq3hk_0(), null));
|
|
782
783
|
}
|
|
783
784
|
function mergeJson($this, defaultConfig, originalData) {
|
|
784
785
|
// Inline function 'kotlinx.serialization.json.buildJsonObject' call
|
|
@@ -801,9 +802,9 @@
|
|
|
801
802
|
} else {
|
|
802
803
|
tmp = value;
|
|
803
804
|
}
|
|
804
|
-
builder.
|
|
805
|
+
builder.l34(key, tmp);
|
|
805
806
|
}
|
|
806
|
-
var mergeData = builder.
|
|
807
|
+
var mergeData = builder.e33();
|
|
807
808
|
return mergeData;
|
|
808
809
|
}
|
|
809
810
|
function GenerateSettingsFile$_get_file_$ref_3dvoj2() {
|
|
@@ -827,8 +828,8 @@
|
|
|
827
828
|
};
|
|
828
829
|
}
|
|
829
830
|
function GenerateSettingsFile$run$lambda($this$Json) {
|
|
830
|
-
$this$Json.
|
|
831
|
-
$this$Json.
|
|
831
|
+
$this$Json.p32_1 = true;
|
|
832
|
+
$this$Json.l32_1 = true;
|
|
832
833
|
return Unit_instance;
|
|
833
834
|
}
|
|
834
835
|
function GenerateSettingsFile() {
|
|
@@ -836,25 +837,25 @@
|
|
|
836
837
|
var tmp = this;
|
|
837
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');
|
|
838
839
|
var tmp_1 = KProperty1;
|
|
839
|
-
tmp.
|
|
840
|
+
tmp.m3h_1 = tmp_0.p1n(this, getPropertyCallableRef('file', 1, tmp_1, GenerateSettingsFile$_get_file_$ref_3dvoj2(), null));
|
|
840
841
|
var tmp_2 = this;
|
|
841
842
|
var tmp_3 = boolean(option(this, [], 'Merge with existing file, preserving current values and adding missing defaults.'));
|
|
842
843
|
var tmp_4 = KProperty1;
|
|
843
|
-
tmp_2.
|
|
844
|
+
tmp_2.n3h_1 = tmp_3.p1n(this, getPropertyCallableRef('merge', 1, tmp_4, GenerateSettingsFile$_get_merge_$ref_3aq3hk(), null));
|
|
844
845
|
}
|
|
845
|
-
protoOf(GenerateSettingsFile).
|
|
846
|
+
protoOf(GenerateSettingsFile).i1b = function (context) {
|
|
846
847
|
return 'Generate a .tagger configuration file with default settings. Without --file, prints to stdout.';
|
|
847
848
|
};
|
|
848
|
-
protoOf(GenerateSettingsFile).
|
|
849
|
+
protoOf(GenerateSettingsFile).e1e = function () {
|
|
849
850
|
var prettyJsonFormatter = Json(VOID, GenerateSettingsFile$run$lambda);
|
|
850
851
|
// Inline function 'kotlinx.serialization.json.encodeToJsonElement' call
|
|
851
852
|
var value = get_runtimeDefaultConfig();
|
|
852
853
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
853
|
-
var this_0 = prettyJsonFormatter.
|
|
854
|
+
var this_0 = prettyJsonFormatter.ks();
|
|
854
855
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
855
856
|
var this_1 = serializer(this_0, createKType(getKClass(TaggerConfig), arrayOf([]), false));
|
|
856
857
|
var tmp$ret$1 = isInterface(this_1, KSerializer) ? this_1 : THROW_CCE();
|
|
857
|
-
var defaultConfig = prettyJsonFormatter.
|
|
858
|
+
var defaultConfig = prettyJsonFormatter.t31(tmp$ret$1, value);
|
|
858
859
|
var writeToFile_0 = !(_get_file__d6iv67(this) == null);
|
|
859
860
|
// Inline function 'kotlin.text.orEmpty' call
|
|
860
861
|
var tmp0_elvis_lhs = _get_file__d6iv67(this);
|
|
@@ -867,14 +868,14 @@
|
|
|
867
868
|
tmp = this_2;
|
|
868
869
|
}
|
|
869
870
|
var fileName = tmp;
|
|
870
|
-
var pwd = this.
|
|
871
|
+
var pwd = this.y19().p1a_1('PWD');
|
|
871
872
|
var settingsFile = '' + pwd + '/' + fileName;
|
|
872
873
|
var existingFileData = readFromFile(settingsFile);
|
|
873
874
|
var tmp_0;
|
|
874
875
|
if (!(existingFileData == null)) {
|
|
875
876
|
var tmp_1;
|
|
876
877
|
if (_get_merge__eb7eqv(this) === true) {
|
|
877
|
-
var originalData = prettyJsonFormatter.
|
|
878
|
+
var originalData = prettyJsonFormatter.u31(existingFileData);
|
|
878
879
|
tmp_1 = mergeJson(this, defaultConfig, originalData);
|
|
879
880
|
} else {
|
|
880
881
|
throw new CliktError('File already exists.');
|
|
@@ -887,27 +888,36 @@
|
|
|
887
888
|
if (!writeToFile_0) {
|
|
888
889
|
// Inline function 'kotlinx.serialization.json.Json.encodeToString' call
|
|
889
890
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
890
|
-
var this_3 = prettyJsonFormatter.
|
|
891
|
+
var this_3 = prettyJsonFormatter.ks();
|
|
891
892
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
892
893
|
var this_4 = serializer(this_3, createKType(getKClass(JsonElement), arrayOf([]), false));
|
|
893
894
|
var tmp$ret$7 = isInterface(this_4, KSerializer) ? this_4 : THROW_CCE();
|
|
894
|
-
var tmp$ret$6 = prettyJsonFormatter.
|
|
895
|
-
this.
|
|
895
|
+
var tmp$ret$6 = prettyJsonFormatter.r31(tmp$ret$7, outputConfig);
|
|
896
|
+
this.r1c(tmp$ret$6);
|
|
896
897
|
} else {
|
|
897
898
|
// Inline function 'kotlinx.serialization.json.Json.encodeToString' call
|
|
898
899
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
899
|
-
var this_5 = prettyJsonFormatter.
|
|
900
|
+
var this_5 = prettyJsonFormatter.ks();
|
|
900
901
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
901
902
|
var this_6 = serializer(this_5, createKType(getKClass(JsonElement), arrayOf([]), false));
|
|
902
903
|
var tmp$ret$10 = isInterface(this_6, KSerializer) ? this_6 : THROW_CCE();
|
|
903
|
-
var tmp$ret$9 = prettyJsonFormatter.
|
|
904
|
+
var tmp$ret$9 = prettyJsonFormatter.r31(tmp$ret$10, outputConfig);
|
|
904
905
|
writeToFile(tmp$ret$9, settingsFile);
|
|
905
|
-
this.
|
|
906
|
+
this.r1c('Saved to ' + fileName);
|
|
906
907
|
}
|
|
907
908
|
};
|
|
909
|
+
function Guide() {
|
|
910
|
+
CliktCommand.call(this);
|
|
911
|
+
}
|
|
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
|
+
};
|
|
915
|
+
protoOf(Guide).e1e = function () {
|
|
916
|
+
this.r1c(this.y19().c1a_1.n1c());
|
|
917
|
+
};
|
|
908
918
|
function Companion() {
|
|
909
919
|
}
|
|
910
|
-
protoOf(Companion).
|
|
920
|
+
protoOf(Companion).f34 = function () {
|
|
911
921
|
return $serializer_getInstance();
|
|
912
922
|
};
|
|
913
923
|
var Companion_instance_2;
|
|
@@ -917,59 +927,59 @@
|
|
|
917
927
|
function $serializer() {
|
|
918
928
|
$serializer_instance = this;
|
|
919
929
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.zegreatrob.tools.tagger.cli.VersionSuccessResponse', this, 2);
|
|
920
|
-
tmp0_serialDesc.
|
|
921
|
-
tmp0_serialDesc.
|
|
922
|
-
this.
|
|
923
|
-
}
|
|
924
|
-
protoOf($serializer).
|
|
925
|
-
var tmp0_desc = this.
|
|
926
|
-
var tmp1_output = encoder.
|
|
927
|
-
tmp1_output.
|
|
928
|
-
tmp1_output.
|
|
929
|
-
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);
|
|
930
940
|
};
|
|
931
|
-
protoOf($serializer).
|
|
932
|
-
return this.
|
|
941
|
+
protoOf($serializer).yo = function (encoder, value) {
|
|
942
|
+
return this.e3i(encoder, value instanceof VersionSuccessResponse ? value : THROW_CCE());
|
|
933
943
|
};
|
|
934
|
-
protoOf($serializer).
|
|
935
|
-
var tmp0_desc = this.
|
|
944
|
+
protoOf($serializer).zo = function (decoder) {
|
|
945
|
+
var tmp0_desc = this.d3i_1;
|
|
936
946
|
var tmp1_flag = true;
|
|
937
947
|
var tmp2_index = 0;
|
|
938
948
|
var tmp3_bitMask0 = 0;
|
|
939
949
|
var tmp4_local0 = null;
|
|
940
950
|
var tmp5_local1 = null;
|
|
941
|
-
var tmp6_input = decoder.
|
|
942
|
-
if (tmp6_input.
|
|
943
|
-
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);
|
|
944
954
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
945
|
-
tmp5_local1 = tmp6_input.
|
|
955
|
+
tmp5_local1 = tmp6_input.hs(tmp0_desc, 1, $serializer_getInstance_0(), tmp5_local1);
|
|
946
956
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
947
957
|
} else
|
|
948
958
|
while (tmp1_flag) {
|
|
949
|
-
tmp2_index = tmp6_input.
|
|
959
|
+
tmp2_index = tmp6_input.ms(tmp0_desc);
|
|
950
960
|
switch (tmp2_index) {
|
|
951
961
|
case -1:
|
|
952
962
|
tmp1_flag = false;
|
|
953
963
|
break;
|
|
954
964
|
case 0:
|
|
955
|
-
tmp4_local0 = tmp6_input.
|
|
965
|
+
tmp4_local0 = tmp6_input.fs(tmp0_desc, 0);
|
|
956
966
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
957
967
|
break;
|
|
958
968
|
case 1:
|
|
959
|
-
tmp5_local1 = tmp6_input.
|
|
969
|
+
tmp5_local1 = tmp6_input.hs(tmp0_desc, 1, $serializer_getInstance_0(), tmp5_local1);
|
|
960
970
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
961
971
|
break;
|
|
962
972
|
default:
|
|
963
973
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
964
974
|
}
|
|
965
975
|
}
|
|
966
|
-
tmp6_input.
|
|
976
|
+
tmp6_input.wr(tmp0_desc);
|
|
967
977
|
return VersionSuccessResponse_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
968
978
|
};
|
|
969
|
-
protoOf($serializer).
|
|
970
|
-
return this.
|
|
979
|
+
protoOf($serializer).xo = function () {
|
|
980
|
+
return this.d3i_1;
|
|
971
981
|
};
|
|
972
|
-
protoOf($serializer).
|
|
982
|
+
protoOf($serializer).gz = function () {
|
|
973
983
|
// Inline function 'kotlin.arrayOf' call
|
|
974
984
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
975
985
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -983,25 +993,25 @@
|
|
|
983
993
|
}
|
|
984
994
|
function VersionSuccessResponse_init_$Init$(seen0, status, data, serializationConstructorMarker, $this) {
|
|
985
995
|
if (!(3 === (3 & seen0))) {
|
|
986
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance().
|
|
996
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance().d3i_1);
|
|
987
997
|
}
|
|
988
|
-
$this.
|
|
989
|
-
$this.
|
|
998
|
+
$this.f3i_1 = status;
|
|
999
|
+
$this.g3i_1 = data;
|
|
990
1000
|
return $this;
|
|
991
1001
|
}
|
|
992
1002
|
function VersionSuccessResponse_init_$Create$(seen0, status, data, serializationConstructorMarker) {
|
|
993
1003
|
return VersionSuccessResponse_init_$Init$(seen0, status, data, serializationConstructorMarker, objectCreate(protoOf(VersionSuccessResponse)));
|
|
994
1004
|
}
|
|
995
1005
|
function VersionSuccessResponse(status, data) {
|
|
996
|
-
this.
|
|
997
|
-
this.
|
|
1006
|
+
this.f3i_1 = status;
|
|
1007
|
+
this.g3i_1 = data;
|
|
998
1008
|
}
|
|
999
1009
|
protoOf(VersionSuccessResponse).toString = function () {
|
|
1000
|
-
return 'VersionSuccessResponse(status=' + this.
|
|
1010
|
+
return 'VersionSuccessResponse(status=' + this.f3i_1 + ', data=' + this.g3i_1.toString() + ')';
|
|
1001
1011
|
};
|
|
1002
1012
|
protoOf(VersionSuccessResponse).hashCode = function () {
|
|
1003
|
-
var result = getStringHashCode(this.
|
|
1004
|
-
result = imul(result, 31) + this.
|
|
1013
|
+
var result = getStringHashCode(this.f3i_1);
|
|
1014
|
+
result = imul(result, 31) + this.g3i_1.hashCode() | 0;
|
|
1005
1015
|
return result;
|
|
1006
1016
|
};
|
|
1007
1017
|
protoOf(VersionSuccessResponse).equals = function (other) {
|
|
@@ -1009,9 +1019,9 @@
|
|
|
1009
1019
|
return true;
|
|
1010
1020
|
if (!(other instanceof VersionSuccessResponse))
|
|
1011
1021
|
return false;
|
|
1012
|
-
if (!(this.
|
|
1022
|
+
if (!(this.f3i_1 === other.f3i_1))
|
|
1013
1023
|
return false;
|
|
1014
|
-
if (!this.
|
|
1024
|
+
if (!this.g3i_1.equals(other.g3i_1))
|
|
1015
1025
|
return false;
|
|
1016
1026
|
return true;
|
|
1017
1027
|
};
|
|
@@ -1030,7 +1040,7 @@
|
|
|
1030
1040
|
// Inline function 'kotlin.arrayOf' call
|
|
1031
1041
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1032
1042
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1033
|
-
tmp.
|
|
1043
|
+
tmp.h3i_1 = [null, null, tmp_1, lazy(tmp_2, VersionData$Companion$$childSerializers$_anonymous__gd9ivc_0)];
|
|
1034
1044
|
}
|
|
1035
1045
|
var Companion_instance_3;
|
|
1036
1046
|
function Companion_getInstance_0() {
|
|
@@ -1041,31 +1051,31 @@
|
|
|
1041
1051
|
function $serializer_0() {
|
|
1042
1052
|
$serializer_instance_0 = this;
|
|
1043
1053
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.zegreatrob.tools.tagger.cli.VersionData', this, 4);
|
|
1044
|
-
tmp0_serialDesc.
|
|
1045
|
-
tmp0_serialDesc.
|
|
1046
|
-
tmp0_serialDesc.
|
|
1047
|
-
tmp0_serialDesc.
|
|
1048
|
-
this.
|
|
1049
|
-
}
|
|
1050
|
-
protoOf($serializer_0).
|
|
1051
|
-
var tmp0_desc = this.
|
|
1052
|
-
var tmp1_output = encoder.
|
|
1053
|
-
var tmp2_cached = Companion_getInstance_0().
|
|
1054
|
-
tmp1_output.
|
|
1055
|
-
tmp1_output.
|
|
1056
|
-
if (tmp1_output.
|
|
1057
|
-
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);
|
|
1058
1068
|
}
|
|
1059
|
-
if (tmp1_output.
|
|
1060
|
-
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);
|
|
1061
1071
|
}
|
|
1062
|
-
tmp1_output.
|
|
1072
|
+
tmp1_output.wr(tmp0_desc);
|
|
1063
1073
|
};
|
|
1064
|
-
protoOf($serializer_0).
|
|
1065
|
-
return this.
|
|
1074
|
+
protoOf($serializer_0).yo = function (encoder, value) {
|
|
1075
|
+
return this.j3i(encoder, value instanceof VersionData ? value : THROW_CCE());
|
|
1066
1076
|
};
|
|
1067
|
-
protoOf($serializer_0).
|
|
1068
|
-
var tmp0_desc = this.
|
|
1077
|
+
protoOf($serializer_0).zo = function (decoder) {
|
|
1078
|
+
var tmp0_desc = this.i3i_1;
|
|
1069
1079
|
var tmp1_flag = true;
|
|
1070
1080
|
var tmp2_index = 0;
|
|
1071
1081
|
var tmp3_bitMask0 = 0;
|
|
@@ -1073,52 +1083,52 @@
|
|
|
1073
1083
|
var tmp5_local1 = false;
|
|
1074
1084
|
var tmp6_local2 = null;
|
|
1075
1085
|
var tmp7_local3 = null;
|
|
1076
|
-
var tmp8_input = decoder.
|
|
1077
|
-
var tmp9_cached = Companion_getInstance_0().
|
|
1078
|
-
if (tmp8_input.
|
|
1079
|
-
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);
|
|
1080
1090
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1081
|
-
tmp5_local1 = tmp8_input.
|
|
1091
|
+
tmp5_local1 = tmp8_input.xr(tmp0_desc, 1);
|
|
1082
1092
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1083
|
-
tmp6_local2 = tmp8_input.
|
|
1093
|
+
tmp6_local2 = tmp8_input.hs(tmp0_desc, 2, tmp9_cached[2].m1(), tmp6_local2);
|
|
1084
1094
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1085
|
-
tmp7_local3 = tmp8_input.
|
|
1095
|
+
tmp7_local3 = tmp8_input.hs(tmp0_desc, 3, tmp9_cached[3].m1(), tmp7_local3);
|
|
1086
1096
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1087
1097
|
} else
|
|
1088
1098
|
while (tmp1_flag) {
|
|
1089
|
-
tmp2_index = tmp8_input.
|
|
1099
|
+
tmp2_index = tmp8_input.ms(tmp0_desc);
|
|
1090
1100
|
switch (tmp2_index) {
|
|
1091
1101
|
case -1:
|
|
1092
1102
|
tmp1_flag = false;
|
|
1093
1103
|
break;
|
|
1094
1104
|
case 0:
|
|
1095
|
-
tmp4_local0 = tmp8_input.
|
|
1105
|
+
tmp4_local0 = tmp8_input.fs(tmp0_desc, 0);
|
|
1096
1106
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1097
1107
|
break;
|
|
1098
1108
|
case 1:
|
|
1099
|
-
tmp5_local1 = tmp8_input.
|
|
1109
|
+
tmp5_local1 = tmp8_input.xr(tmp0_desc, 1);
|
|
1100
1110
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1101
1111
|
break;
|
|
1102
1112
|
case 2:
|
|
1103
|
-
tmp6_local2 = tmp8_input.
|
|
1113
|
+
tmp6_local2 = tmp8_input.hs(tmp0_desc, 2, tmp9_cached[2].m1(), tmp6_local2);
|
|
1104
1114
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1105
1115
|
break;
|
|
1106
1116
|
case 3:
|
|
1107
|
-
tmp7_local3 = tmp8_input.
|
|
1117
|
+
tmp7_local3 = tmp8_input.hs(tmp0_desc, 3, tmp9_cached[3].m1(), tmp7_local3);
|
|
1108
1118
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1109
1119
|
break;
|
|
1110
1120
|
default:
|
|
1111
1121
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1112
1122
|
}
|
|
1113
1123
|
}
|
|
1114
|
-
tmp8_input.
|
|
1124
|
+
tmp8_input.wr(tmp0_desc);
|
|
1115
1125
|
return VersionData_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
1116
1126
|
};
|
|
1117
|
-
protoOf($serializer_0).
|
|
1118
|
-
return this.
|
|
1127
|
+
protoOf($serializer_0).xo = function () {
|
|
1128
|
+
return this.i3i_1;
|
|
1119
1129
|
};
|
|
1120
|
-
protoOf($serializer_0).
|
|
1121
|
-
var tmp0_cached = Companion_getInstance_0().
|
|
1130
|
+
protoOf($serializer_0).gz = function () {
|
|
1131
|
+
var tmp0_cached = Companion_getInstance_0().h3i_1;
|
|
1122
1132
|
// Inline function 'kotlin.arrayOf' call
|
|
1123
1133
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1124
1134
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1132,18 +1142,18 @@
|
|
|
1132
1142
|
}
|
|
1133
1143
|
function VersionData_init_$Init$(seen0, version, snapshot, snapshotReasons, warnings, serializationConstructorMarker, $this) {
|
|
1134
1144
|
if (!(3 === (3 & seen0))) {
|
|
1135
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_0().
|
|
1145
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_0().i3i_1);
|
|
1136
1146
|
}
|
|
1137
|
-
$this.
|
|
1138
|
-
$this.
|
|
1147
|
+
$this.k3i_1 = version;
|
|
1148
|
+
$this.l3i_1 = snapshot;
|
|
1139
1149
|
if (0 === (seen0 & 4))
|
|
1140
|
-
$this.
|
|
1150
|
+
$this.m3i_1 = emptyList();
|
|
1141
1151
|
else
|
|
1142
|
-
$this.
|
|
1152
|
+
$this.m3i_1 = snapshotReasons;
|
|
1143
1153
|
if (0 === (seen0 & 8))
|
|
1144
|
-
$this.
|
|
1154
|
+
$this.n3i_1 = emptyList();
|
|
1145
1155
|
else
|
|
1146
|
-
$this.
|
|
1156
|
+
$this.n3i_1 = warnings;
|
|
1147
1157
|
return $this;
|
|
1148
1158
|
}
|
|
1149
1159
|
function VersionData_init_$Create$(seen0, version, snapshot, snapshotReasons, warnings, serializationConstructorMarker) {
|
|
@@ -1153,19 +1163,19 @@
|
|
|
1153
1163
|
Companion_getInstance_0();
|
|
1154
1164
|
snapshotReasons = snapshotReasons === VOID ? emptyList() : snapshotReasons;
|
|
1155
1165
|
warnings = warnings === VOID ? emptyList() : warnings;
|
|
1156
|
-
this.
|
|
1157
|
-
this.
|
|
1158
|
-
this.
|
|
1159
|
-
this.
|
|
1166
|
+
this.k3i_1 = version;
|
|
1167
|
+
this.l3i_1 = snapshot;
|
|
1168
|
+
this.m3i_1 = snapshotReasons;
|
|
1169
|
+
this.n3i_1 = warnings;
|
|
1160
1170
|
}
|
|
1161
1171
|
protoOf(VersionData).toString = function () {
|
|
1162
|
-
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) + ')';
|
|
1163
1173
|
};
|
|
1164
1174
|
protoOf(VersionData).hashCode = function () {
|
|
1165
|
-
var result = getStringHashCode(this.
|
|
1166
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
1167
|
-
result = imul(result, 31) + hashCode(this.
|
|
1168
|
-
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;
|
|
1169
1179
|
return result;
|
|
1170
1180
|
};
|
|
1171
1181
|
protoOf(VersionData).equals = function (other) {
|
|
@@ -1173,19 +1183,19 @@
|
|
|
1173
1183
|
return true;
|
|
1174
1184
|
if (!(other instanceof VersionData))
|
|
1175
1185
|
return false;
|
|
1176
|
-
if (!(this.
|
|
1186
|
+
if (!(this.k3i_1 === other.k3i_1))
|
|
1177
1187
|
return false;
|
|
1178
|
-
if (!(this.
|
|
1188
|
+
if (!(this.l3i_1 === other.l3i_1))
|
|
1179
1189
|
return false;
|
|
1180
|
-
if (!equals(this.
|
|
1190
|
+
if (!equals(this.m3i_1, other.m3i_1))
|
|
1181
1191
|
return false;
|
|
1182
|
-
if (!equals(this.
|
|
1192
|
+
if (!equals(this.n3i_1, other.n3i_1))
|
|
1183
1193
|
return false;
|
|
1184
1194
|
return true;
|
|
1185
1195
|
};
|
|
1186
1196
|
function Companion_1() {
|
|
1187
1197
|
}
|
|
1188
|
-
protoOf(Companion_1).
|
|
1198
|
+
protoOf(Companion_1).f34 = function () {
|
|
1189
1199
|
return $serializer_getInstance_1();
|
|
1190
1200
|
};
|
|
1191
1201
|
var Companion_instance_4;
|
|
@@ -1195,68 +1205,68 @@
|
|
|
1195
1205
|
function $serializer_1() {
|
|
1196
1206
|
$serializer_instance_1 = this;
|
|
1197
1207
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.zegreatrob.tools.tagger.cli.ErrorResponse', this, 3);
|
|
1198
|
-
tmp0_serialDesc.
|
|
1199
|
-
tmp0_serialDesc.
|
|
1200
|
-
tmp0_serialDesc.
|
|
1201
|
-
this.
|
|
1202
|
-
}
|
|
1203
|
-
protoOf($serializer_1).
|
|
1204
|
-
var tmp0_desc = this.
|
|
1205
|
-
var tmp1_output = encoder.
|
|
1206
|
-
tmp1_output.
|
|
1207
|
-
tmp1_output.
|
|
1208
|
-
tmp1_output.
|
|
1209
|
-
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);
|
|
1210
1220
|
};
|
|
1211
|
-
protoOf($serializer_1).
|
|
1212
|
-
return this.
|
|
1221
|
+
protoOf($serializer_1).yo = function (encoder, value) {
|
|
1222
|
+
return this.p3i(encoder, value instanceof ErrorResponse ? value : THROW_CCE());
|
|
1213
1223
|
};
|
|
1214
|
-
protoOf($serializer_1).
|
|
1215
|
-
var tmp0_desc = this.
|
|
1224
|
+
protoOf($serializer_1).zo = function (decoder) {
|
|
1225
|
+
var tmp0_desc = this.o3i_1;
|
|
1216
1226
|
var tmp1_flag = true;
|
|
1217
1227
|
var tmp2_index = 0;
|
|
1218
1228
|
var tmp3_bitMask0 = 0;
|
|
1219
1229
|
var tmp4_local0 = null;
|
|
1220
1230
|
var tmp5_local1 = null;
|
|
1221
1231
|
var tmp6_local2 = null;
|
|
1222
|
-
var tmp7_input = decoder.
|
|
1223
|
-
if (tmp7_input.
|
|
1224
|
-
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);
|
|
1225
1235
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1226
|
-
tmp5_local1 = tmp7_input.
|
|
1236
|
+
tmp5_local1 = tmp7_input.fs(tmp0_desc, 1);
|
|
1227
1237
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1228
|
-
tmp6_local2 = tmp7_input.
|
|
1238
|
+
tmp6_local2 = tmp7_input.fs(tmp0_desc, 2);
|
|
1229
1239
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1230
1240
|
} else
|
|
1231
1241
|
while (tmp1_flag) {
|
|
1232
|
-
tmp2_index = tmp7_input.
|
|
1242
|
+
tmp2_index = tmp7_input.ms(tmp0_desc);
|
|
1233
1243
|
switch (tmp2_index) {
|
|
1234
1244
|
case -1:
|
|
1235
1245
|
tmp1_flag = false;
|
|
1236
1246
|
break;
|
|
1237
1247
|
case 0:
|
|
1238
|
-
tmp4_local0 = tmp7_input.
|
|
1248
|
+
tmp4_local0 = tmp7_input.fs(tmp0_desc, 0);
|
|
1239
1249
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1240
1250
|
break;
|
|
1241
1251
|
case 1:
|
|
1242
|
-
tmp5_local1 = tmp7_input.
|
|
1252
|
+
tmp5_local1 = tmp7_input.fs(tmp0_desc, 1);
|
|
1243
1253
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1244
1254
|
break;
|
|
1245
1255
|
case 2:
|
|
1246
|
-
tmp6_local2 = tmp7_input.
|
|
1256
|
+
tmp6_local2 = tmp7_input.fs(tmp0_desc, 2);
|
|
1247
1257
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1248
1258
|
break;
|
|
1249
1259
|
default:
|
|
1250
1260
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1251
1261
|
}
|
|
1252
1262
|
}
|
|
1253
|
-
tmp7_input.
|
|
1263
|
+
tmp7_input.wr(tmp0_desc);
|
|
1254
1264
|
return ErrorResponse_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
1255
1265
|
};
|
|
1256
|
-
protoOf($serializer_1).
|
|
1257
|
-
return this.
|
|
1266
|
+
protoOf($serializer_1).xo = function () {
|
|
1267
|
+
return this.o3i_1;
|
|
1258
1268
|
};
|
|
1259
|
-
protoOf($serializer_1).
|
|
1269
|
+
protoOf($serializer_1).gz = function () {
|
|
1260
1270
|
// Inline function 'kotlin.arrayOf' call
|
|
1261
1271
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1262
1272
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1270,28 +1280,28 @@
|
|
|
1270
1280
|
}
|
|
1271
1281
|
function ErrorResponse_init_$Init$(seen0, status, error, code, serializationConstructorMarker, $this) {
|
|
1272
1282
|
if (!(7 === (7 & seen0))) {
|
|
1273
|
-
throwMissingFieldException(seen0, 7, $serializer_getInstance_1().
|
|
1283
|
+
throwMissingFieldException(seen0, 7, $serializer_getInstance_1().o3i_1);
|
|
1274
1284
|
}
|
|
1275
|
-
$this.
|
|
1276
|
-
$this.
|
|
1277
|
-
$this.
|
|
1285
|
+
$this.q3i_1 = status;
|
|
1286
|
+
$this.r3i_1 = error;
|
|
1287
|
+
$this.s3i_1 = code;
|
|
1278
1288
|
return $this;
|
|
1279
1289
|
}
|
|
1280
1290
|
function ErrorResponse_init_$Create$(seen0, status, error, code, serializationConstructorMarker) {
|
|
1281
1291
|
return ErrorResponse_init_$Init$(seen0, status, error, code, serializationConstructorMarker, objectCreate(protoOf(ErrorResponse)));
|
|
1282
1292
|
}
|
|
1283
1293
|
function ErrorResponse(status, error, code) {
|
|
1284
|
-
this.
|
|
1285
|
-
this.
|
|
1286
|
-
this.
|
|
1294
|
+
this.q3i_1 = status;
|
|
1295
|
+
this.r3i_1 = error;
|
|
1296
|
+
this.s3i_1 = code;
|
|
1287
1297
|
}
|
|
1288
1298
|
protoOf(ErrorResponse).toString = function () {
|
|
1289
|
-
return 'ErrorResponse(status=' + this.
|
|
1299
|
+
return 'ErrorResponse(status=' + this.q3i_1 + ', error=' + this.r3i_1 + ', code=' + this.s3i_1 + ')';
|
|
1290
1300
|
};
|
|
1291
1301
|
protoOf(ErrorResponse).hashCode = function () {
|
|
1292
|
-
var result = getStringHashCode(this.
|
|
1293
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1294
|
-
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;
|
|
1295
1305
|
return result;
|
|
1296
1306
|
};
|
|
1297
1307
|
protoOf(ErrorResponse).equals = function (other) {
|
|
@@ -1299,17 +1309,17 @@
|
|
|
1299
1309
|
return true;
|
|
1300
1310
|
if (!(other instanceof ErrorResponse))
|
|
1301
1311
|
return false;
|
|
1302
|
-
if (!(this.
|
|
1312
|
+
if (!(this.q3i_1 === other.q3i_1))
|
|
1303
1313
|
return false;
|
|
1304
|
-
if (!(this.
|
|
1314
|
+
if (!(this.r3i_1 === other.r3i_1))
|
|
1305
1315
|
return false;
|
|
1306
|
-
if (!(this.
|
|
1316
|
+
if (!(this.s3i_1 === other.s3i_1))
|
|
1307
1317
|
return false;
|
|
1308
1318
|
return true;
|
|
1309
1319
|
};
|
|
1310
1320
|
function Companion_2() {
|
|
1311
1321
|
}
|
|
1312
|
-
protoOf(Companion_2).
|
|
1322
|
+
protoOf(Companion_2).f34 = function () {
|
|
1313
1323
|
return $serializer_getInstance_2();
|
|
1314
1324
|
};
|
|
1315
1325
|
var Companion_instance_5;
|
|
@@ -1319,59 +1329,59 @@
|
|
|
1319
1329
|
function $serializer_2() {
|
|
1320
1330
|
$serializer_instance_2 = this;
|
|
1321
1331
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.zegreatrob.tools.tagger.cli.TagSuccessResponse', this, 2);
|
|
1322
|
-
tmp0_serialDesc.
|
|
1323
|
-
tmp0_serialDesc.
|
|
1324
|
-
this.
|
|
1325
|
-
}
|
|
1326
|
-
protoOf($serializer_2).
|
|
1327
|
-
var tmp0_desc = this.
|
|
1328
|
-
var tmp1_output = encoder.
|
|
1329
|
-
tmp1_output.
|
|
1330
|
-
tmp1_output.
|
|
1331
|
-
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);
|
|
1332
1342
|
};
|
|
1333
|
-
protoOf($serializer_2).
|
|
1334
|
-
return this.
|
|
1343
|
+
protoOf($serializer_2).yo = function (encoder, value) {
|
|
1344
|
+
return this.u3i(encoder, value instanceof TagSuccessResponse ? value : THROW_CCE());
|
|
1335
1345
|
};
|
|
1336
|
-
protoOf($serializer_2).
|
|
1337
|
-
var tmp0_desc = this.
|
|
1346
|
+
protoOf($serializer_2).zo = function (decoder) {
|
|
1347
|
+
var tmp0_desc = this.t3i_1;
|
|
1338
1348
|
var tmp1_flag = true;
|
|
1339
1349
|
var tmp2_index = 0;
|
|
1340
1350
|
var tmp3_bitMask0 = 0;
|
|
1341
1351
|
var tmp4_local0 = null;
|
|
1342
1352
|
var tmp5_local1 = null;
|
|
1343
|
-
var tmp6_input = decoder.
|
|
1344
|
-
if (tmp6_input.
|
|
1345
|
-
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);
|
|
1346
1356
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1347
|
-
tmp5_local1 = tmp6_input.
|
|
1357
|
+
tmp5_local1 = tmp6_input.hs(tmp0_desc, 1, $serializer_getInstance_3(), tmp5_local1);
|
|
1348
1358
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1349
1359
|
} else
|
|
1350
1360
|
while (tmp1_flag) {
|
|
1351
|
-
tmp2_index = tmp6_input.
|
|
1361
|
+
tmp2_index = tmp6_input.ms(tmp0_desc);
|
|
1352
1362
|
switch (tmp2_index) {
|
|
1353
1363
|
case -1:
|
|
1354
1364
|
tmp1_flag = false;
|
|
1355
1365
|
break;
|
|
1356
1366
|
case 0:
|
|
1357
|
-
tmp4_local0 = tmp6_input.
|
|
1367
|
+
tmp4_local0 = tmp6_input.fs(tmp0_desc, 0);
|
|
1358
1368
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1359
1369
|
break;
|
|
1360
1370
|
case 1:
|
|
1361
|
-
tmp5_local1 = tmp6_input.
|
|
1371
|
+
tmp5_local1 = tmp6_input.hs(tmp0_desc, 1, $serializer_getInstance_3(), tmp5_local1);
|
|
1362
1372
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1363
1373
|
break;
|
|
1364
1374
|
default:
|
|
1365
1375
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1366
1376
|
}
|
|
1367
1377
|
}
|
|
1368
|
-
tmp6_input.
|
|
1378
|
+
tmp6_input.wr(tmp0_desc);
|
|
1369
1379
|
return TagSuccessResponse_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
1370
1380
|
};
|
|
1371
|
-
protoOf($serializer_2).
|
|
1372
|
-
return this.
|
|
1381
|
+
protoOf($serializer_2).xo = function () {
|
|
1382
|
+
return this.t3i_1;
|
|
1373
1383
|
};
|
|
1374
|
-
protoOf($serializer_2).
|
|
1384
|
+
protoOf($serializer_2).gz = function () {
|
|
1375
1385
|
// Inline function 'kotlin.arrayOf' call
|
|
1376
1386
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1377
1387
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1385,25 +1395,25 @@
|
|
|
1385
1395
|
}
|
|
1386
1396
|
function TagSuccessResponse_init_$Init$(seen0, status, data, serializationConstructorMarker, $this) {
|
|
1387
1397
|
if (!(3 === (3 & seen0))) {
|
|
1388
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_2().
|
|
1398
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_2().t3i_1);
|
|
1389
1399
|
}
|
|
1390
|
-
$this.
|
|
1391
|
-
$this.
|
|
1400
|
+
$this.v3i_1 = status;
|
|
1401
|
+
$this.w3i_1 = data;
|
|
1392
1402
|
return $this;
|
|
1393
1403
|
}
|
|
1394
1404
|
function TagSuccessResponse_init_$Create$(seen0, status, data, serializationConstructorMarker) {
|
|
1395
1405
|
return TagSuccessResponse_init_$Init$(seen0, status, data, serializationConstructorMarker, objectCreate(protoOf(TagSuccessResponse)));
|
|
1396
1406
|
}
|
|
1397
1407
|
function TagSuccessResponse(status, data) {
|
|
1398
|
-
this.
|
|
1399
|
-
this.
|
|
1408
|
+
this.v3i_1 = status;
|
|
1409
|
+
this.w3i_1 = data;
|
|
1400
1410
|
}
|
|
1401
1411
|
protoOf(TagSuccessResponse).toString = function () {
|
|
1402
|
-
return 'TagSuccessResponse(status=' + this.
|
|
1412
|
+
return 'TagSuccessResponse(status=' + this.v3i_1 + ', data=' + this.w3i_1.toString() + ')';
|
|
1403
1413
|
};
|
|
1404
1414
|
protoOf(TagSuccessResponse).hashCode = function () {
|
|
1405
|
-
var result = getStringHashCode(this.
|
|
1406
|
-
result = imul(result, 31) + this.
|
|
1415
|
+
var result = getStringHashCode(this.v3i_1);
|
|
1416
|
+
result = imul(result, 31) + this.w3i_1.hashCode() | 0;
|
|
1407
1417
|
return result;
|
|
1408
1418
|
};
|
|
1409
1419
|
protoOf(TagSuccessResponse).equals = function (other) {
|
|
@@ -1411,9 +1421,9 @@
|
|
|
1411
1421
|
return true;
|
|
1412
1422
|
if (!(other instanceof TagSuccessResponse))
|
|
1413
1423
|
return false;
|
|
1414
|
-
if (!(this.
|
|
1424
|
+
if (!(this.v3i_1 === other.v3i_1))
|
|
1415
1425
|
return false;
|
|
1416
|
-
if (!this.
|
|
1426
|
+
if (!this.w3i_1.equals(other.w3i_1))
|
|
1417
1427
|
return false;
|
|
1418
1428
|
return true;
|
|
1419
1429
|
};
|
|
@@ -1426,50 +1436,50 @@
|
|
|
1426
1436
|
function $serializer_3() {
|
|
1427
1437
|
$serializer_instance_3 = this;
|
|
1428
1438
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.zegreatrob.tools.tagger.cli.TagData', this, 1);
|
|
1429
|
-
tmp0_serialDesc.
|
|
1430
|
-
this.
|
|
1431
|
-
}
|
|
1432
|
-
protoOf($serializer_3).
|
|
1433
|
-
var tmp0_desc = this.
|
|
1434
|
-
var tmp1_output = encoder.
|
|
1435
|
-
tmp1_output.
|
|
1436
|
-
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);
|
|
1437
1447
|
};
|
|
1438
|
-
protoOf($serializer_3).
|
|
1439
|
-
return this.
|
|
1448
|
+
protoOf($serializer_3).yo = function (encoder, value) {
|
|
1449
|
+
return this.y3i(encoder, value instanceof TagData ? value : THROW_CCE());
|
|
1440
1450
|
};
|
|
1441
|
-
protoOf($serializer_3).
|
|
1442
|
-
var tmp0_desc = this.
|
|
1451
|
+
protoOf($serializer_3).zo = function (decoder) {
|
|
1452
|
+
var tmp0_desc = this.x3i_1;
|
|
1443
1453
|
var tmp1_flag = true;
|
|
1444
1454
|
var tmp2_index = 0;
|
|
1445
1455
|
var tmp3_bitMask0 = 0;
|
|
1446
1456
|
var tmp4_local0 = null;
|
|
1447
|
-
var tmp5_input = decoder.
|
|
1448
|
-
if (tmp5_input.
|
|
1449
|
-
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);
|
|
1450
1460
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1451
1461
|
} else
|
|
1452
1462
|
while (tmp1_flag) {
|
|
1453
|
-
tmp2_index = tmp5_input.
|
|
1463
|
+
tmp2_index = tmp5_input.ms(tmp0_desc);
|
|
1454
1464
|
switch (tmp2_index) {
|
|
1455
1465
|
case -1:
|
|
1456
1466
|
tmp1_flag = false;
|
|
1457
1467
|
break;
|
|
1458
1468
|
case 0:
|
|
1459
|
-
tmp4_local0 = tmp5_input.
|
|
1469
|
+
tmp4_local0 = tmp5_input.fs(tmp0_desc, 0);
|
|
1460
1470
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1461
1471
|
break;
|
|
1462
1472
|
default:
|
|
1463
1473
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1464
1474
|
}
|
|
1465
1475
|
}
|
|
1466
|
-
tmp5_input.
|
|
1476
|
+
tmp5_input.wr(tmp0_desc);
|
|
1467
1477
|
return TagData_init_$Create$(tmp3_bitMask0, tmp4_local0, null);
|
|
1468
1478
|
};
|
|
1469
|
-
protoOf($serializer_3).
|
|
1470
|
-
return this.
|
|
1479
|
+
protoOf($serializer_3).xo = function () {
|
|
1480
|
+
return this.x3i_1;
|
|
1471
1481
|
};
|
|
1472
|
-
protoOf($serializer_3).
|
|
1482
|
+
protoOf($serializer_3).gz = function () {
|
|
1473
1483
|
// Inline function 'kotlin.arrayOf' call
|
|
1474
1484
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1475
1485
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1483,40 +1493,40 @@
|
|
|
1483
1493
|
}
|
|
1484
1494
|
function TagData_init_$Init$(seen0, tag, serializationConstructorMarker, $this) {
|
|
1485
1495
|
if (!(1 === (1 & seen0))) {
|
|
1486
|
-
throwMissingFieldException(seen0, 1, $serializer_getInstance_3().
|
|
1496
|
+
throwMissingFieldException(seen0, 1, $serializer_getInstance_3().x3i_1);
|
|
1487
1497
|
}
|
|
1488
|
-
$this.
|
|
1498
|
+
$this.z3i_1 = tag;
|
|
1489
1499
|
return $this;
|
|
1490
1500
|
}
|
|
1491
1501
|
function TagData_init_$Create$(seen0, tag, serializationConstructorMarker) {
|
|
1492
1502
|
return TagData_init_$Init$(seen0, tag, serializationConstructorMarker, objectCreate(protoOf(TagData)));
|
|
1493
1503
|
}
|
|
1494
1504
|
function TagData(tag) {
|
|
1495
|
-
this.
|
|
1505
|
+
this.z3i_1 = tag;
|
|
1496
1506
|
}
|
|
1497
1507
|
protoOf(TagData).toString = function () {
|
|
1498
|
-
return 'TagData(tag=' + this.
|
|
1508
|
+
return 'TagData(tag=' + this.z3i_1 + ')';
|
|
1499
1509
|
};
|
|
1500
1510
|
protoOf(TagData).hashCode = function () {
|
|
1501
|
-
return getStringHashCode(this.
|
|
1511
|
+
return getStringHashCode(this.z3i_1);
|
|
1502
1512
|
};
|
|
1503
1513
|
protoOf(TagData).equals = function (other) {
|
|
1504
1514
|
if (this === other)
|
|
1505
1515
|
return true;
|
|
1506
1516
|
if (!(other instanceof TagData))
|
|
1507
1517
|
return false;
|
|
1508
|
-
if (!(this.
|
|
1518
|
+
if (!(this.z3i_1 === other.z3i_1))
|
|
1509
1519
|
return false;
|
|
1510
1520
|
return true;
|
|
1511
1521
|
};
|
|
1512
1522
|
function versionSuccessResponse(data) {
|
|
1513
|
-
return Default_getInstance().
|
|
1523
|
+
return Default_getInstance().r31(Companion_instance_2.f34(), new VersionSuccessResponse('success', data));
|
|
1514
1524
|
}
|
|
1515
1525
|
function tagSuccessResponse(data) {
|
|
1516
|
-
return Default_getInstance().
|
|
1526
|
+
return Default_getInstance().r31(Companion_instance_5.f34(), new TagSuccessResponse('success', data));
|
|
1517
1527
|
}
|
|
1518
1528
|
function errorResponse(message, code) {
|
|
1519
|
-
return Default_getInstance().
|
|
1529
|
+
return Default_getInstance().r31(Companion_instance_4.f34(), new ErrorResponse('error', message, code));
|
|
1520
1530
|
}
|
|
1521
1531
|
function configFileHelpSuffix() {
|
|
1522
1532
|
return 'Options can be configured in a .tagger file. See: tagger generate-settings-file --help';
|
|
@@ -1525,18 +1535,18 @@
|
|
|
1525
1535
|
return main(cli(), platformArgCorrection(args));
|
|
1526
1536
|
}
|
|
1527
1537
|
function cli() {
|
|
1528
|
-
return subcommands(subcommands(subcommands(new Tagger(), [new CalculateVersion()]), [new Tag()]), [new GenerateSettingsFile()]);
|
|
1538
|
+
return subcommands(subcommands(subcommands(subcommands(new Tagger(), [new CalculateVersion()]), [new Tag()]), [new Guide()]), [new GenerateSettingsFile()]);
|
|
1529
1539
|
}
|
|
1530
1540
|
function mainWrapper() {
|
|
1531
1541
|
main_0([]);
|
|
1532
1542
|
}
|
|
1533
1543
|
function _get_gitRepoArgument__zxde8_0($this) {
|
|
1534
1544
|
var tmp = KProperty1;
|
|
1535
|
-
return $this.
|
|
1545
|
+
return $this.p3j_1.f1n($this, getPropertyCallableRef('gitRepoArgument', 1, tmp, Tag$_get_gitRepoArgument_$ref_dketaj_0(), null));
|
|
1536
1546
|
}
|
|
1537
1547
|
function _get_gitRepoOption__rk7ta0_0($this) {
|
|
1538
1548
|
var tmp = KProperty1;
|
|
1539
|
-
return $this.
|
|
1549
|
+
return $this.q3j_1.f1n($this, getPropertyCallableRef('gitRepoOption', 1, tmp, Tag$_get_gitRepoOption_$ref_10iywz_0(), null));
|
|
1540
1550
|
}
|
|
1541
1551
|
function _get_workingDirectory__eyfbj_0($this) {
|
|
1542
1552
|
var tmp0_elvis_lhs = _get_gitRepoArgument__zxde8_0($this);
|
|
@@ -1551,38 +1561,38 @@
|
|
|
1551
1561
|
}
|
|
1552
1562
|
function _get_releaseBranch__pqrgbs_0($this) {
|
|
1553
1563
|
var tmp = KProperty1;
|
|
1554
|
-
return $this.
|
|
1564
|
+
return $this.r3j_1.f1n($this, getPropertyCallableRef('releaseBranch', 1, tmp, Tag$_get_releaseBranch_$ref_rq8rmb_0(), null));
|
|
1555
1565
|
}
|
|
1556
1566
|
function _get_version__2bx7w9($this) {
|
|
1557
1567
|
var tmp = KProperty1;
|
|
1558
|
-
return $this.
|
|
1568
|
+
return $this.s3j_1.f1n($this, getPropertyCallableRef('version', 1, tmp, Tag$_get_version_$ref_p7wb9e_0(), null));
|
|
1559
1569
|
}
|
|
1560
1570
|
function _get_userName__tupjmd($this) {
|
|
1561
1571
|
var tmp = KProperty1;
|
|
1562
|
-
return $this.
|
|
1572
|
+
return $this.t3j_1.f1n($this, getPropertyCallableRef('userName', 1, tmp, Tag$_get_userName_$ref_kslo5u_0(), null));
|
|
1563
1573
|
}
|
|
1564
1574
|
function _get_userEmail__21hfkw($this) {
|
|
1565
1575
|
var tmp = KProperty1;
|
|
1566
|
-
return $this.
|
|
1576
|
+
return $this.u3j_1.f1n($this, getPropertyCallableRef('userEmail', 1, tmp, Tag$_get_userEmail_$ref_vl09cr_0(), null));
|
|
1567
1577
|
}
|
|
1568
1578
|
function _get_allowDetachedHead__iyebhm_0($this) {
|
|
1569
1579
|
var tmp = KProperty1;
|
|
1570
|
-
return $this.
|
|
1580
|
+
return $this.v3j_1.f1n($this, getPropertyCallableRef('allowDetachedHead', 1, tmp, Tag$_get_allowDetachedHead_$ref_qujqxn_0(), null));
|
|
1571
1581
|
}
|
|
1572
1582
|
function _get_dryRun__18z7px($this) {
|
|
1573
1583
|
var tmp = KProperty1;
|
|
1574
|
-
return $this.
|
|
1584
|
+
return $this.w3j_1.f1n($this, getPropertyCallableRef('dryRun', 1, tmp, Tag$_get_dryRun_$ref_agy9vo_0(), null));
|
|
1575
1585
|
}
|
|
1576
1586
|
function _get_warningsAsErrors__7mpwfd_0($this) {
|
|
1577
1587
|
var tmp = KProperty1;
|
|
1578
|
-
return $this.
|
|
1588
|
+
return $this.x3j_1.f1n($this, getPropertyCallableRef('warningsAsErrors', 1, tmp, Tag$_get_warningsAsErrors_$ref_gj8a6o_0(), null));
|
|
1579
1589
|
}
|
|
1580
1590
|
function _get_format__qlarck_0($this) {
|
|
1581
1591
|
var tmp = KProperty1;
|
|
1582
|
-
return $this.
|
|
1592
|
+
return $this.y3j_1.f1n($this, getPropertyCallableRef('format', 1, tmp, Tag$_get_format_$ref_i96vgt_0(), null));
|
|
1583
1593
|
}
|
|
1584
1594
|
function Tag$lambda($this$context) {
|
|
1585
|
-
$this$context.
|
|
1595
|
+
$this$context.l1d([new ConfigFileSource($this$context.h1d_1)]);
|
|
1586
1596
|
return Unit_instance;
|
|
1587
1597
|
}
|
|
1588
1598
|
function Tag$_get_gitRepoArgument_$ref_dketaj() {
|
|
@@ -1691,39 +1701,39 @@
|
|
|
1691
1701
|
var tmp = this;
|
|
1692
1702
|
var tmp_0 = optional(argument(this, 'git-repo'));
|
|
1693
1703
|
var tmp_1 = KProperty1;
|
|
1694
|
-
tmp.
|
|
1704
|
+
tmp.p3j_1 = tmp_0.l1m(this, getPropertyCallableRef('gitRepoArgument', 1, tmp_1, Tag$_get_gitRepoArgument_$ref_dketaj(), null));
|
|
1695
1705
|
var tmp_2 = this;
|
|
1696
1706
|
var tmp_3 = option(this, ['--git-repo'], VOID, VOID, VOID, 'PWD');
|
|
1697
1707
|
var tmp_4 = KProperty1;
|
|
1698
|
-
tmp_2.
|
|
1708
|
+
tmp_2.q3j_1 = tmp_3.p1n(this, getPropertyCallableRef('gitRepoOption', 1, tmp_4, Tag$_get_gitRepoOption_$ref_10iywz(), null));
|
|
1699
1709
|
var tmp_5 = this;
|
|
1700
1710
|
var tmp_6 = required(option(this, [], 'Release branch name. Required unless provided in .tagger config file.'));
|
|
1701
1711
|
var tmp_7 = KProperty1;
|
|
1702
|
-
tmp_5.
|
|
1712
|
+
tmp_5.r3j_1 = tmp_6.p1n(this, getPropertyCallableRef('releaseBranch', 1, tmp_7, Tag$_get_releaseBranch_$ref_rq8rmb(), null));
|
|
1703
1713
|
var tmp_8 = this;
|
|
1704
1714
|
var tmp_9 = required(option(this, ['--version'], 'Version to tag (required)'));
|
|
1705
1715
|
var tmp_10 = KProperty1;
|
|
1706
|
-
tmp_8.
|
|
1716
|
+
tmp_8.s3j_1 = tmp_9.p1n(this, getPropertyCallableRef('version', 1, tmp_10, Tag$_get_version_$ref_p7wb9e(), null));
|
|
1707
1717
|
var tmp_11 = this;
|
|
1708
1718
|
var tmp_12 = option(this, []);
|
|
1709
1719
|
var tmp_13 = KProperty1;
|
|
1710
|
-
tmp_11.
|
|
1720
|
+
tmp_11.t3j_1 = tmp_12.p1n(this, getPropertyCallableRef('userName', 1, tmp_13, Tag$_get_userName_$ref_kslo5u(), null));
|
|
1711
1721
|
var tmp_14 = this;
|
|
1712
1722
|
var tmp_15 = option(this, []);
|
|
1713
1723
|
var tmp_16 = KProperty1;
|
|
1714
|
-
tmp_14.
|
|
1724
|
+
tmp_14.u3j_1 = tmp_15.p1n(this, getPropertyCallableRef('userEmail', 1, tmp_16, Tag$_get_userEmail_$ref_vl09cr(), null));
|
|
1715
1725
|
var tmp_17 = this;
|
|
1716
1726
|
var tmp_18 = default_0(boolean(option(this, ['--allow-detached-head'])), false);
|
|
1717
1727
|
var tmp_19 = KProperty1;
|
|
1718
|
-
tmp_17.
|
|
1728
|
+
tmp_17.v3j_1 = tmp_18.p1n(this, getPropertyCallableRef('allowDetachedHead', 1, tmp_19, Tag$_get_allowDetachedHead_$ref_qujqxn(), null));
|
|
1719
1729
|
var tmp_20 = this;
|
|
1720
1730
|
var tmp_21 = default_0(boolean(option(this, ['--dry-run'])), false);
|
|
1721
1731
|
var tmp_22 = KProperty1;
|
|
1722
|
-
tmp_20.
|
|
1732
|
+
tmp_20.w3j_1 = tmp_21.p1n(this, getPropertyCallableRef('dryRun', 1, tmp_22, Tag$_get_dryRun_$ref_agy9vo(), null));
|
|
1723
1733
|
var tmp_23 = this;
|
|
1724
1734
|
var tmp_24 = default_0(boolean(option(this, [])), false);
|
|
1725
1735
|
var tmp_25 = KProperty1;
|
|
1726
|
-
tmp_23.
|
|
1736
|
+
tmp_23.x3j_1 = tmp_24.p1n(this, getPropertyCallableRef('warningsAsErrors', 1, tmp_25, Tag$_get_warningsAsErrors_$ref_gj8a6o(), null));
|
|
1727
1737
|
var tmp_26 = this;
|
|
1728
1738
|
// Inline function 'com.github.ajalt.clikt.parameters.types.enum' call
|
|
1729
1739
|
var this_0 = option(this, ['--format'], 'Output format for result');
|
|
@@ -1746,29 +1756,29 @@
|
|
|
1746
1756
|
var tmp$ret$0 = choice(this_0, destination, VOID, true);
|
|
1747
1757
|
var tmp_27 = default_0(tmp$ret$0, OutputFormat_TEXT_getInstance(), 'text');
|
|
1748
1758
|
var tmp_28 = KProperty1;
|
|
1749
|
-
tmp_26.
|
|
1759
|
+
tmp_26.y3j_1 = tmp_27.p1n(this, getPropertyCallableRef('format', 1, tmp_28, Tag$_get_format_$ref_i96vgt(), null));
|
|
1750
1760
|
}
|
|
1751
|
-
protoOf(Tag).
|
|
1752
|
-
return 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 ');
|
|
1753
1763
|
};
|
|
1754
|
-
protoOf(Tag).
|
|
1764
|
+
protoOf(Tag).e1e = function () {
|
|
1755
1765
|
var gitAdapter = new GitAdapter(_get_workingDirectory__eyfbj_0(this));
|
|
1756
1766
|
if (_get_dryRun__18z7px(this)) {
|
|
1757
|
-
var headCommit = gitAdapter.
|
|
1758
|
-
var headBranch = gitAdapter.
|
|
1759
|
-
this.
|
|
1760
|
-
this.
|
|
1761
|
-
this.
|
|
1767
|
+
var headCommit = gitAdapter.ll();
|
|
1768
|
+
var headBranch = gitAdapter.rl().wl_1;
|
|
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)');
|
|
1762
1772
|
} else {
|
|
1763
1773
|
// Inline function 'kotlin.let' call
|
|
1764
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));
|
|
1765
1775
|
if (equals(it, Success_getInstance())) {
|
|
1766
1776
|
switch (_get_format__qlarck_0(this).y2_1) {
|
|
1767
1777
|
case 1:
|
|
1768
|
-
this.
|
|
1778
|
+
this.r1c(tagSuccessResponse(new TagData(_get_version__2bx7w9(this))));
|
|
1769
1779
|
break;
|
|
1770
1780
|
case 0:
|
|
1771
|
-
this.
|
|
1781
|
+
this.r1c('Success!');
|
|
1772
1782
|
break;
|
|
1773
1783
|
default:
|
|
1774
1784
|
noWhenBranchMatchedException();
|
|
@@ -1778,14 +1788,14 @@
|
|
|
1778
1788
|
if (it instanceof Warning) {
|
|
1779
1789
|
switch (_get_format__qlarck_0(this).y2_1) {
|
|
1780
1790
|
case 1:
|
|
1781
|
-
this.
|
|
1791
|
+
this.r1c(errorResponse(it.lo_1, 'TAG_ERROR'));
|
|
1782
1792
|
var tmp3_statusCode = _get_warningsAsErrors__7mpwfd_0(this) ? 1 : 0;
|
|
1783
1793
|
throw new CliktError('', VOID, tmp3_statusCode, false);
|
|
1784
1794
|
case 0:
|
|
1785
1795
|
if (_get_warningsAsErrors__7mpwfd_0(this)) {
|
|
1786
|
-
throw new CliktError(it.
|
|
1796
|
+
throw new CliktError(it.lo_1);
|
|
1787
1797
|
} else {
|
|
1788
|
-
this.
|
|
1798
|
+
this.r1c(it.lo_1, VOID, true);
|
|
1789
1799
|
}
|
|
1790
1800
|
|
|
1791
1801
|
break;
|
|
@@ -1799,31 +1809,22 @@
|
|
|
1799
1809
|
}
|
|
1800
1810
|
}
|
|
1801
1811
|
};
|
|
1802
|
-
function configurationSection($this) {
|
|
1803
|
-
return 'Configuration:\n Settings can be stored in a .tagger JSON file at the repository root.\n This eliminates the need to pass common options on every invocation.\n\n Generate a template: tagger generate-settings-file\n Edit the file to set defaults for options like release-branch, regex patterns, etc.\n\n Command-line options override .tagger file settings.';
|
|
1804
|
-
}
|
|
1805
|
-
function outputSection($this) {
|
|
1806
|
-
return "Output:\n Text format writes version to stdout, diagnostics to stderr.\n Command substitution captures only stdout: VERSION=$$(tagger -q calculate-version ...)\n\n -SNAPSHOT suffix indicates unmet conditions for release.\n Snapshot versions should not be used in releases or tags.\n After 'tagger tag', subsequent calculate-version returns the bare version.\n\n Snapshot reasons (on stderr) describe conditions that must be resolved:\n DIRTY - uncommitted changes in working directory\n AHEAD - local branch ahead of remote\n BEHIND - local branch behind remote\n NOT_RELEASE_BRANCH - not on configured release branch\n NO_NEW_VERSION - no new commits since last tag\n FORCED - --force-snapshot=true was used";
|
|
1807
|
-
}
|
|
1808
|
-
function automationSection($this) {
|
|
1809
|
-
return "Automation & AI Agents:\n Use --format=json for structured data with machine-readable fields:\n - 'snapshot' boolean indicating tagging readiness\n - 'snapshotReasons' array listing specific conditions\n - 'version' string for consistent parsing\n\n Example: tagger calculate-version --format=json\n\n See subcommand help for details: tagger calculate-version --help";
|
|
1810
|
-
}
|
|
1811
1812
|
function _get_quiet__c6dzoj($this) {
|
|
1812
1813
|
var tmp = KProperty1;
|
|
1813
|
-
return $this.
|
|
1814
|
+
return $this.o3k_1.f1n($this, getPropertyCallableRef('quiet', 1, tmp, Tagger$_get_quiet_$ref_s522ri_0(), null));
|
|
1814
1815
|
}
|
|
1815
1816
|
function Tagger$lambda($this$context) {
|
|
1816
1817
|
var tmp = $this$context;
|
|
1817
|
-
tmp.
|
|
1818
|
+
tmp.z1c_1 = Tagger$lambda$lambda;
|
|
1818
1819
|
return Unit_instance;
|
|
1819
1820
|
}
|
|
1820
1821
|
function Tagger$lambda$lambda(it) {
|
|
1821
|
-
return new
|
|
1822
|
+
return new MordantMarkdownHelpFormatter(it, VOID, true);
|
|
1822
1823
|
}
|
|
1823
1824
|
function Tagger$lambda_0($version, $this) {
|
|
1824
1825
|
return function ($this$eagerOption) {
|
|
1825
1826
|
var it = $version;
|
|
1826
|
-
var tmp$ret$0 = $this.
|
|
1827
|
+
var tmp$ret$0 = $this.j19_1 + ' version ' + it;
|
|
1827
1828
|
throw new PrintMessage(tmp$ret$0);
|
|
1828
1829
|
};
|
|
1829
1830
|
}
|
|
@@ -1841,29 +1842,29 @@
|
|
|
1841
1842
|
CliktCommand.call(this);
|
|
1842
1843
|
context(this, Tagger$lambda);
|
|
1843
1844
|
// Inline function 'com.github.ajalt.clikt.parameters.options.versionOption' call
|
|
1844
|
-
var version = Versions_instance.
|
|
1845
|
+
var version = Versions_instance.s3f_1;
|
|
1845
1846
|
var help = 'Show the version and exit';
|
|
1846
1847
|
var names = setOf('--version');
|
|
1847
1848
|
eagerOption(this, names, help, VOID, VOID, VOID, Tagger$lambda_0(version, this));
|
|
1848
1849
|
var tmp = this;
|
|
1849
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);
|
|
1850
1851
|
var tmp_1 = KProperty1;
|
|
1851
|
-
tmp.
|
|
1852
|
+
tmp.o3k_1 = tmp_0.p1n(this, getPropertyCallableRef('quiet', 1, tmp_1, Tagger$_get_quiet_$ref_s522ri(), null));
|
|
1852
1853
|
}
|
|
1853
|
-
protoOf(Tagger).
|
|
1854
|
-
return
|
|
1854
|
+
protoOf(Tagger).i1b = function (context) {
|
|
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';
|
|
1855
1856
|
};
|
|
1856
|
-
protoOf(Tagger).
|
|
1857
|
-
if (!_get_quiet__c6dzoj(this) && this.
|
|
1858
|
-
this.
|
|
1857
|
+
protoOf(Tagger).e1e = function () {
|
|
1858
|
+
if (!_get_quiet__c6dzoj(this) && this.y19().m1d() == null) {
|
|
1859
|
+
this.r1c('Welcome to Tagger CLI.');
|
|
1859
1860
|
}
|
|
1860
1861
|
};
|
|
1861
1862
|
//region block: post-declaration
|
|
1862
|
-
protoOf($serializer).
|
|
1863
|
-
protoOf($serializer_0).
|
|
1864
|
-
protoOf($serializer_1).
|
|
1865
|
-
protoOf($serializer_2).
|
|
1866
|
-
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;
|
|
1867
1868
|
//endregion
|
|
1868
1869
|
//region block: init
|
|
1869
1870
|
Versions_instance = new Versions();
|
|
@@ -1874,6 +1875,6 @@
|
|
|
1874
1875
|
//endregion
|
|
1875
1876
|
mainWrapper();
|
|
1876
1877
|
return _;
|
|
1877
|
-
}(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./clikt-clikt.js'), require('./tools-cli-tools.js'), require('./kotlinx-serialization-kotlinx-serialization-json.js'), require('./tools-tagger-json.js'), require('./kotlinx-serialization-kotlinx-serialization-core.js'), require('./tools-tagger-core.js'), require('./clikt-clikt-mordant.js'), require('./tools-git-adapter.js')));
|
|
1878
|
+
}(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./clikt-clikt.js'), require('./tools-cli-tools.js'), require('./kotlinx-serialization-kotlinx-serialization-json.js'), require('./tools-tagger-json.js'), require('./kotlinx-serialization-kotlinx-serialization-core.js'), require('./tools-tagger-core.js'), require('./clikt-clikt-mordant.js'), require('./tools-git-adapter.js'), require('./clikt-clikt-mordant-markdown.js')));
|
|
1878
1879
|
|
|
1879
1880
|
//# sourceMappingURL=command-line-tools-tagger-cli.js.map
|