git-semver-tagger 1.9.20 → 1.9.21

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.
@@ -1,13 +1,24 @@
1
1
  (function (_, kotlin_kotlin, kotlin_clikt_clikt, kotlin_com_zegreatrob_tools_tagger_core, kotlin_clikt_clikt_mordant, kotlin_com_zegreatrob_tools_git_adapter, kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json, kotlin_com_zegreatrob_tools_cli_tools, kotlin_com_zegreatrob_tools_tagger_json, kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core) {
2
2
  'use strict';
3
3
  //region block: imports
4
+ var imul = Math.imul;
4
5
  var protoOf = kotlin_kotlin.$_$.da;
5
6
  var initMetadataForObject = kotlin_kotlin.$_$.k9;
7
+ var VOID = kotlin_kotlin.$_$.c;
8
+ var joinToString = kotlin_kotlin.$_$.v5;
9
+ var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.t1;
10
+ var initMetadataForCompanion = kotlin_kotlin.$_$.g9;
11
+ var enumEntries = kotlin_kotlin.$_$.s7;
12
+ var Unit_instance = kotlin_kotlin.$_$.v;
13
+ var Enum = kotlin_kotlin.$_$.td;
14
+ var initMetadataForClass = kotlin_kotlin.$_$.f9;
6
15
  var KProperty1 = kotlin_kotlin.$_$.xa;
7
16
  var getPropertyCallableRef = kotlin_kotlin.$_$.c9;
8
17
  var CliktError = kotlin_clikt_clikt.$_$.a;
9
- var VOID = kotlin_kotlin.$_$.c;
10
- var Unit_instance = kotlin_kotlin.$_$.v;
18
+ var IllegalArgumentException = kotlin_kotlin.$_$.vd;
19
+ var endsWith = kotlin_kotlin.$_$.sb;
20
+ var collectionSizeOrDefault = kotlin_kotlin.$_$.t4;
21
+ var ArrayList_init_$Create$ = kotlin_kotlin.$_$.y;
11
22
  var RegexOption_IGNORE_CASE_getInstance = kotlin_kotlin.$_$.w;
12
23
  var Regex_init_$Create$ = kotlin_kotlin.$_$.n1;
13
24
  var VersionRegex = kotlin_com_zegreatrob_tools_tagger_core.$_$.c;
@@ -26,15 +37,11 @@
26
37
  var noWhenBranchMatchedException = kotlin_kotlin.$_$.xe;
27
38
  var Failure = kotlin_com_zegreatrob_tools_tagger_core.$_$.d;
28
39
  var Success = kotlin_com_zegreatrob_tools_tagger_core.$_$.e;
29
- var initMetadataForClass = kotlin_kotlin.$_$.f9;
30
40
  var emptyList = kotlin_kotlin.$_$.j5;
31
41
  var JsonObject = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.e;
32
- var collectionSizeOrDefault = kotlin_kotlin.$_$.t4;
33
- var ArrayList_init_$Create$ = kotlin_kotlin.$_$.y;
34
42
  var Companion_instance_0 = kotlin_clikt_clikt.$_$.s;
35
43
  var get_jsonPrimitive = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.i;
36
44
  var JsonArray = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.b;
37
- var IllegalArgumentException = kotlin_kotlin.$_$.vd;
38
45
  var split = kotlin_kotlin.$_$.mc;
39
46
  var Companion_instance_1 = kotlin_clikt_clikt.$_$.r;
40
47
  var listOf = kotlin_kotlin.$_$.f6;
@@ -45,9 +52,9 @@
45
52
  var getKClass = kotlin_kotlin.$_$.ua;
46
53
  var arrayOf = kotlin_kotlin.$_$.ne;
47
54
  var createKType = kotlin_kotlin.$_$.sa;
48
- var serializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.h2;
55
+ var serializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.i2;
49
56
  var THROW_CCE = kotlin_kotlin.$_$.be;
50
- var KSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.z1;
57
+ var KSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.a2;
51
58
  var isInterface = kotlin_kotlin.$_$.t9;
52
59
  var last = kotlin_kotlin.$_$.dc;
53
60
  var toString = kotlin_kotlin.$_$.g2;
@@ -59,6 +66,23 @@
59
66
  var isBlank = kotlin_kotlin.$_$.yb;
60
67
  var JsonElement = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.c;
61
68
  var writeToFile = kotlin_com_zegreatrob_tools_cli_tools.$_$.c;
69
+ var PluginGeneratedSerialDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.s1;
70
+ var UnknownFieldException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.l;
71
+ var StringSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.j;
72
+ var typeParametersSerializers = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.n1;
73
+ var GeneratedSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.o1;
74
+ var throwMissingFieldException = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.v1;
75
+ var objectCreate = kotlin_kotlin.$_$.ca;
76
+ var getStringHashCode = kotlin_kotlin.$_$.d9;
77
+ var ArrayListSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.l1;
78
+ var LazyThreadSafetyMode_PUBLICATION_getInstance = kotlin_kotlin.$_$.x;
79
+ var lazy = kotlin_kotlin.$_$.ve;
80
+ var equals = kotlin_kotlin.$_$.z8;
81
+ var BooleanSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.i;
82
+ var toString_0 = kotlin_kotlin.$_$.fa;
83
+ var getBooleanHashCode = kotlin_kotlin.$_$.a9;
84
+ var hashCode = kotlin_kotlin.$_$.e9;
85
+ var SerializableWith = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.d2;
62
86
  var platformArgCorrection = kotlin_com_zegreatrob_tools_cli_tools.$_$.a;
63
87
  var main = kotlin_clikt_clikt.$_$.f;
64
88
  var subcommands = kotlin_clikt_clikt.$_$.h;
@@ -66,7 +90,6 @@
66
90
  var tag = kotlin_com_zegreatrob_tools_tagger_core.$_$.g;
67
91
  var Error_0 = kotlin_com_zegreatrob_tools_tagger_core.$_$.a;
68
92
  var Success_getInstance = kotlin_com_zegreatrob_tools_tagger_core.$_$.h;
69
- var equals = kotlin_kotlin.$_$.z8;
70
93
  var PrintMessage = kotlin_clikt_clikt.$_$.d;
71
94
  var setOf = kotlin_kotlin.$_$.u6;
72
95
  var eagerOption = kotlin_clikt_clikt.$_$.m;
@@ -74,26 +97,87 @@
74
97
  //endregion
75
98
  //region block: pre-declaration
76
99
  initMetadataForObject(Versions, 'Versions');
100
+ initMetadataForCompanion(Companion);
101
+ initMetadataForClass(OutputFormat, 'OutputFormat', VOID, Enum);
77
102
  initMetadataForClass(CalculateVersion, 'CalculateVersion', CalculateVersion, CliktCommand);
78
103
  initMetadataForClass(ConfigFileSource, 'ConfigFileSource');
79
104
  initMetadataForClass(GenerateSettingsFile, 'GenerateSettingsFile', GenerateSettingsFile, CliktCommand);
105
+ initMetadataForCompanion(Companion_0);
106
+ initMetadataForObject($serializer, '$serializer', VOID, VOID, [GeneratedSerializer]);
107
+ initMetadataForClass(VersionSuccessResponse, 'VersionSuccessResponse', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance});
108
+ initMetadataForCompanion(Companion_1);
109
+ initMetadataForObject($serializer_0, '$serializer', VOID, VOID, [GeneratedSerializer]);
110
+ initMetadataForClass(VersionData, 'VersionData', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_0});
111
+ initMetadataForCompanion(Companion_2);
112
+ initMetadataForObject($serializer_1, '$serializer', VOID, VOID, [GeneratedSerializer]);
113
+ initMetadataForClass(ErrorResponse, 'ErrorResponse', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_1});
80
114
  initMetadataForClass(Tag, 'Tag', Tag, CliktCommand);
81
115
  initMetadataForClass(Tagger, 'Tagger', Tagger, CliktCommand);
82
116
  //endregion
83
117
  function Versions() {
84
- this.p2n_1 = '1.9.20';
118
+ this.p2n_1 = '1.9.21';
85
119
  }
86
120
  var Versions_instance;
87
121
  function Versions_getInstance() {
88
122
  return Versions_instance;
89
123
  }
124
+ function OutputFormat$Companion$fromString$lambda(it) {
125
+ // Inline function 'kotlin.text.lowercase' call
126
+ // Inline function 'kotlin.js.asDynamic' call
127
+ return it.x2_1.toLowerCase();
128
+ }
129
+ var OutputFormat_TEXT_instance;
130
+ var OutputFormat_JSON_instance;
131
+ function Companion() {
132
+ }
133
+ protoOf(Companion).q2n = function (value) {
134
+ // Inline function 'kotlin.text.lowercase' call
135
+ // Inline function 'kotlin.js.asDynamic' call
136
+ var tmp;
137
+ switch (value.toLowerCase()) {
138
+ case 'text':
139
+ tmp = OutputFormat_TEXT_getInstance();
140
+ break;
141
+ case 'json':
142
+ tmp = OutputFormat_JSON_getInstance();
143
+ break;
144
+ default:
145
+ var tmp_0 = get_entries();
146
+ throw IllegalArgumentException_init_$Create$("Invalid format '" + value + "'. Must be one of: " + joinToString(tmp_0, ', ', VOID, VOID, VOID, VOID, OutputFormat$Companion$fromString$lambda));
147
+ }
148
+ return tmp;
149
+ };
150
+ var Companion_instance_2;
151
+ function Companion_getInstance() {
152
+ return Companion_instance_2;
153
+ }
154
+ function values() {
155
+ return [OutputFormat_TEXT_getInstance(), OutputFormat_JSON_getInstance()];
156
+ }
157
+ function get_entries() {
158
+ if ($ENTRIES == null)
159
+ $ENTRIES = enumEntries(values());
160
+ return $ENTRIES;
161
+ }
162
+ var OutputFormat_entriesInitialized;
163
+ function OutputFormat_initEntries() {
164
+ if (OutputFormat_entriesInitialized)
165
+ return Unit_instance;
166
+ OutputFormat_entriesInitialized = true;
167
+ OutputFormat_TEXT_instance = new OutputFormat('TEXT', 0);
168
+ OutputFormat_JSON_instance = new OutputFormat('JSON', 1);
169
+ }
170
+ var $ENTRIES;
171
+ function OutputFormat(name, ordinal) {
172
+ Enum.call(this, name, ordinal);
173
+ }
90
174
  function _get_gitRepoArgument__zxde8($this) {
91
175
  var tmp = KProperty1;
92
- return $this.f2o_1.j1m($this, getPropertyCallableRef('gitRepoArgument', 1, tmp, CalculateVersion$_get_gitRepoArgument_$ref_ekksr7_0(), null));
176
+ return $this.g2o_1.j1m($this, getPropertyCallableRef('gitRepoArgument', 1, tmp, CalculateVersion$_get_gitRepoArgument_$ref_ekksr7_0(), null));
93
177
  }
94
178
  function _get_gitRepoOption__rk7ta0($this) {
95
179
  var tmp = KProperty1;
96
- return $this.g2o_1.j1m($this, getPropertyCallableRef('gitRepoOption', 1, tmp, CalculateVersion$_get_gitRepoOption_$ref_ms8ohh_0(), null));
180
+ return $this.h2o_1.j1m($this, getPropertyCallableRef('gitRepoOption', 1, tmp, CalculateVersion$_get_gitRepoOption_$ref_ms8ohh_0(), null));
97
181
  }
98
182
  function _get_workingDirectory__eyfbj($this) {
99
183
  var tmp0_elvis_lhs = _get_gitRepoArgument__zxde8($this);
@@ -108,39 +192,59 @@
108
192
  }
109
193
  function _get_implicitPatch__bjk4pa($this) {
110
194
  var tmp = KProperty1;
111
- return $this.h2o_1.j1m($this, getPropertyCallableRef('implicitPatch', 1, tmp, CalculateVersion$_get_implicitPatch_$ref_8lm4hh_0(), null));
195
+ return $this.i2o_1.j1m($this, getPropertyCallableRef('implicitPatch', 1, tmp, CalculateVersion$_get_implicitPatch_$ref_8lm4hh_0(), null));
112
196
  }
113
197
  function _get_disableDetached__ys8kbb($this) {
114
198
  var tmp = KProperty1;
115
- return $this.i2o_1.j1m($this, getPropertyCallableRef('disableDetached', 1, tmp, CalculateVersion$_get_disableDetached_$ref_yxb19o_0(), null));
199
+ return $this.j2o_1.j1m($this, getPropertyCallableRef('disableDetached', 1, tmp, CalculateVersion$_get_disableDetached_$ref_yxb19o_0(), null));
116
200
  }
117
201
  function _get_forceSnapshot__vb3h7m($this) {
118
202
  var tmp = KProperty1;
119
- return $this.j2o_1.j1m($this, getPropertyCallableRef('forceSnapshot', 1, tmp, CalculateVersion$_get_forceSnapshot_$ref_8rl68v_0(), null));
203
+ return $this.k2o_1.j1m($this, getPropertyCallableRef('forceSnapshot', 1, tmp, CalculateVersion$_get_forceSnapshot_$ref_8rl68v_0(), null));
120
204
  }
121
205
  function _get_releaseBranch__pqrgbs($this) {
122
206
  var tmp = KProperty1;
123
- return $this.k2o_1.j1m($this, getPropertyCallableRef('releaseBranch', 1, tmp, CalculateVersion$_get_releaseBranch_$ref_3xh47v_0(), null));
207
+ return $this.l2o_1.j1m($this, getPropertyCallableRef('releaseBranch', 1, tmp, CalculateVersion$_get_releaseBranch_$ref_3xh47v_0(), null));
208
+ }
209
+ function _get_formatString__ciw4gt($this) {
210
+ var tmp = KProperty1;
211
+ return $this.m2o_1.j1m($this, getPropertyCallableRef('formatString', 1, tmp, CalculateVersion$_get_formatString_$ref_f69ypw_0(), null));
212
+ }
213
+ function _get_format__qlarck($this) {
214
+ var tmp;
215
+ try {
216
+ tmp = Companion_instance_2.q2n(_get_formatString__ciw4gt($this));
217
+ } catch ($p) {
218
+ var tmp_0;
219
+ if ($p instanceof IllegalArgumentException) {
220
+ var e = $p;
221
+ var tmp0_elvis_lhs = e.message;
222
+ throw new CliktError(tmp0_elvis_lhs == null ? 'Invalid format' : tmp0_elvis_lhs);
223
+ } else {
224
+ throw $p;
225
+ }
226
+ }
227
+ return tmp;
124
228
  }
125
229
  function _get_majorRegex__5j6ypp($this) {
126
230
  var tmp = KProperty1;
127
- return $this.l2o_1.j1m($this, getPropertyCallableRef('majorRegex', 1, tmp, CalculateVersion$_get_majorRegex_$ref_erugf6_0(), null));
231
+ return $this.n2o_1.j1m($this, getPropertyCallableRef('majorRegex', 1, tmp, CalculateVersion$_get_majorRegex_$ref_erugf6_0(), null));
128
232
  }
129
233
  function _get_minorRegex__20z96h($this) {
130
234
  var tmp = KProperty1;
131
- return $this.m2o_1.j1m($this, getPropertyCallableRef('minorRegex', 1, tmp, CalculateVersion$_get_minorRegex_$ref_u1fzja_0(), null));
235
+ return $this.o2o_1.j1m($this, getPropertyCallableRef('minorRegex', 1, tmp, CalculateVersion$_get_minorRegex_$ref_u1fzja_0(), null));
132
236
  }
133
237
  function _get_patchRegex__mtlu2c($this) {
134
238
  var tmp = KProperty1;
135
- return $this.n2o_1.j1m($this, getPropertyCallableRef('patchRegex', 1, tmp, CalculateVersion$_get_patchRegex_$ref_124637_0(), null));
239
+ return $this.p2o_1.j1m($this, getPropertyCallableRef('patchRegex', 1, tmp, CalculateVersion$_get_patchRegex_$ref_124637_0(), null));
136
240
  }
137
241
  function _get_noneRegex__1tdbgi($this) {
138
242
  var tmp = KProperty1;
139
- return $this.o2o_1.j1m($this, getPropertyCallableRef('noneRegex', 1, tmp, CalculateVersion$_get_noneRegex_$ref_vcaxfl_0(), null));
243
+ return $this.q2o_1.j1m($this, getPropertyCallableRef('noneRegex', 1, tmp, CalculateVersion$_get_noneRegex_$ref_vcaxfl_0(), null));
140
244
  }
141
245
  function _get_versionRegex__7su5ss($this) {
142
246
  var tmp = KProperty1;
143
- return $this.p2o_1.j1m($this, getPropertyCallableRef('versionRegex', 1, tmp, CalculateVersion$_get_versionRegex_$ref_f466m5_0(), null));
247
+ return $this.r2o_1.j1m($this, getPropertyCallableRef('versionRegex', 1, tmp, CalculateVersion$_get_versionRegex_$ref_f466m5_0(), null));
144
248
  }
145
249
  function output($this, message, errorMessage) {
146
250
  $this.x1b(message);
@@ -149,6 +253,19 @@
149
253
  $this.x1b(errorMessage, VOID, true);
150
254
  }
151
255
  }
256
+ function outputJson($this, version, snapshotReasons) {
257
+ var isSnapshot = endsWith(version, '-SNAPSHOT');
258
+ // Inline function 'kotlin.collections.map' call
259
+ // Inline function 'kotlin.collections.mapTo' call
260
+ var destination = ArrayList_init_$Create$(collectionSizeOrDefault(snapshotReasons, 10));
261
+ var _iterator__ex2g4s = snapshotReasons.r();
262
+ while (_iterator__ex2g4s.s()) {
263
+ var item = _iterator__ex2g4s.t();
264
+ var tmp$ret$2 = item.toString();
265
+ destination.v(tmp$ret$2);
266
+ }
267
+ $this.x1b(versionSuccessResponse(new VersionData(version, isSnapshot, destination)));
268
+ }
152
269
  function versionRegex($this) {
153
270
  var tmp = Regex_init_$Create$(_get_noneRegex__1tdbgi($this), RegexOption_IGNORE_CASE_getInstance());
154
271
  var tmp_0 = Regex_init_$Create$(_get_patchRegex__mtlu2c($this), RegexOption_IGNORE_CASE_getInstance());
@@ -228,6 +345,16 @@
228
345
  return _get_releaseBranch__pqrgbs(p0);
229
346
  };
230
347
  }
348
+ function CalculateVersion$_get_formatString_$ref_f69ypw() {
349
+ return function (p0) {
350
+ return _get_formatString__ciw4gt(p0);
351
+ };
352
+ }
353
+ function CalculateVersion$_get_formatString_$ref_f69ypw_0() {
354
+ return function (p0) {
355
+ return _get_formatString__ciw4gt(p0);
356
+ };
357
+ }
231
358
  function CalculateVersion$_get_majorRegex_$ref_erugf6() {
232
359
  return function (p0) {
233
360
  return _get_majorRegex__5j6ypp(p0);
@@ -298,55 +425,59 @@
298
425
  var tmp = this;
299
426
  var tmp_0 = optional(argument(this, 'git-repo'));
300
427
  var tmp_1 = KProperty1;
301
- tmp.f2o_1 = tmp_0.p1l(this, getPropertyCallableRef('gitRepoArgument', 1, tmp_1, CalculateVersion$_get_gitRepoArgument_$ref_ekksr7(), null));
428
+ tmp.g2o_1 = tmp_0.p1l(this, getPropertyCallableRef('gitRepoArgument', 1, tmp_1, CalculateVersion$_get_gitRepoArgument_$ref_ekksr7(), null));
302
429
  var tmp_2 = this;
303
430
  var tmp_3 = option(this, ['--git-repo'], VOID, VOID, VOID, 'PWD');
304
431
  var tmp_4 = KProperty1;
305
- tmp_2.g2o_1 = tmp_3.t1m(this, getPropertyCallableRef('gitRepoOption', 1, tmp_4, CalculateVersion$_get_gitRepoOption_$ref_ms8ohh(), null));
432
+ tmp_2.h2o_1 = tmp_3.t1m(this, getPropertyCallableRef('gitRepoOption', 1, tmp_4, CalculateVersion$_get_gitRepoOption_$ref_ms8ohh(), null));
306
433
  var tmp_5 = this;
307
434
  var tmp_6 = default_0(boolean(option(this, [])), true);
308
435
  var tmp_7 = KProperty1;
309
- tmp_5.h2o_1 = tmp_6.t1m(this, getPropertyCallableRef('implicitPatch', 1, tmp_7, CalculateVersion$_get_implicitPatch_$ref_8lm4hh(), null));
436
+ tmp_5.i2o_1 = tmp_6.t1m(this, getPropertyCallableRef('implicitPatch', 1, tmp_7, CalculateVersion$_get_implicitPatch_$ref_8lm4hh(), null));
310
437
  var tmp_8 = this;
311
438
  var tmp_9 = default_0(boolean(option(this, [])), true);
312
439
  var tmp_10 = KProperty1;
313
- tmp_8.i2o_1 = tmp_9.t1m(this, getPropertyCallableRef('disableDetached', 1, tmp_10, CalculateVersion$_get_disableDetached_$ref_yxb19o(), null));
440
+ tmp_8.j2o_1 = tmp_9.t1m(this, getPropertyCallableRef('disableDetached', 1, tmp_10, CalculateVersion$_get_disableDetached_$ref_yxb19o(), null));
314
441
  var tmp_11 = this;
315
442
  var tmp_12 = default_0(boolean(option(this, [])), false);
316
443
  var tmp_13 = KProperty1;
317
- tmp_11.j2o_1 = tmp_12.t1m(this, getPropertyCallableRef('forceSnapshot', 1, tmp_13, CalculateVersion$_get_forceSnapshot_$ref_8rl68v(), null));
444
+ tmp_11.k2o_1 = tmp_12.t1m(this, getPropertyCallableRef('forceSnapshot', 1, tmp_13, CalculateVersion$_get_forceSnapshot_$ref_8rl68v(), null));
318
445
  var tmp_14 = this;
319
446
  var tmp_15 = option(this, []);
320
447
  var tmp_16 = KProperty1;
321
- tmp_14.k2o_1 = tmp_15.t1m(this, getPropertyCallableRef('releaseBranch', 1, tmp_16, CalculateVersion$_get_releaseBranch_$ref_3xh47v(), null));
448
+ tmp_14.l2o_1 = tmp_15.t1m(this, getPropertyCallableRef('releaseBranch', 1, tmp_16, CalculateVersion$_get_releaseBranch_$ref_3xh47v(), null));
322
449
  var tmp_17 = this;
323
- var tmp_18 = default_0(option(this, []), Defaults_getInstance().ao_1.tb_1);
450
+ var tmp_18 = default_0(option(this, ['--format']), 'text');
324
451
  var tmp_19 = KProperty1;
325
- tmp_17.l2o_1 = tmp_18.t1m(this, getPropertyCallableRef('majorRegex', 1, tmp_19, CalculateVersion$_get_majorRegex_$ref_erugf6(), null));
452
+ tmp_17.m2o_1 = tmp_18.t1m(this, getPropertyCallableRef('formatString', 1, tmp_19, CalculateVersion$_get_formatString_$ref_f69ypw(), null));
326
453
  var tmp_20 = this;
327
- var tmp_21 = default_0(option(this, []), Defaults_getInstance().zn_1.tb_1);
454
+ var tmp_21 = default_0(option(this, []), Defaults_getInstance().ao_1.tb_1);
328
455
  var tmp_22 = KProperty1;
329
- tmp_20.m2o_1 = tmp_21.t1m(this, getPropertyCallableRef('minorRegex', 1, tmp_22, CalculateVersion$_get_minorRegex_$ref_u1fzja(), null));
456
+ tmp_20.n2o_1 = tmp_21.t1m(this, getPropertyCallableRef('majorRegex', 1, tmp_22, CalculateVersion$_get_majorRegex_$ref_erugf6(), null));
330
457
  var tmp_23 = this;
331
- var tmp_24 = default_0(option(this, []), Defaults_getInstance().yn_1.tb_1);
458
+ var tmp_24 = default_0(option(this, []), Defaults_getInstance().zn_1.tb_1);
332
459
  var tmp_25 = KProperty1;
333
- tmp_23.n2o_1 = tmp_24.t1m(this, getPropertyCallableRef('patchRegex', 1, tmp_25, CalculateVersion$_get_patchRegex_$ref_124637(), null));
460
+ tmp_23.o2o_1 = tmp_24.t1m(this, getPropertyCallableRef('minorRegex', 1, tmp_25, CalculateVersion$_get_minorRegex_$ref_u1fzja(), null));
334
461
  var tmp_26 = this;
335
- var tmp_27 = default_0(option(this, []), Defaults_getInstance().xn_1.tb_1);
462
+ var tmp_27 = default_0(option(this, []), Defaults_getInstance().yn_1.tb_1);
336
463
  var tmp_28 = KProperty1;
337
- tmp_26.o2o_1 = tmp_27.t1m(this, getPropertyCallableRef('noneRegex', 1, tmp_28, CalculateVersion$_get_noneRegex_$ref_vcaxfl(), null));
464
+ tmp_26.p2o_1 = tmp_27.t1m(this, getPropertyCallableRef('patchRegex', 1, tmp_28, CalculateVersion$_get_patchRegex_$ref_124637(), null));
338
465
  var tmp_29 = this;
466
+ var tmp_30 = default_0(option(this, []), Defaults_getInstance().xn_1.tb_1);
467
+ var tmp_31 = KProperty1;
468
+ tmp_29.q2o_1 = tmp_30.t1m(this, getPropertyCallableRef('noneRegex', 1, tmp_31, CalculateVersion$_get_noneRegex_$ref_vcaxfl(), null));
469
+ var tmp_32 = this;
339
470
  var tmp0 = option(this, []);
340
471
  // Inline function 'com.github.ajalt.clikt.parameters.options.check' call
341
472
  var message = "version regex must include groups named 'major', 'minor', 'patch', and 'none'.";
342
473
  // Inline function 'com.github.ajalt.clikt.parameters.options.check' call
343
474
  // Inline function 'com.github.ajalt.clikt.parameters.options.validate' call
344
- var tmp_30 = tmp0.k1l();
345
- var tmp_31 = tmp0.m1m();
346
- var tmp_32 = tmp0.l1l();
347
- var tmp_33 = tmp0.n1m(tmp_30, tmp_31, tmp_32, CalculateVersion$versionRegex$delegate$lambda(Companion_instance, message));
348
- var tmp_34 = KProperty1;
349
- tmp_29.p2o_1 = tmp_33.t1m(this, getPropertyCallableRef('versionRegex', 1, tmp_34, CalculateVersion$_get_versionRegex_$ref_f466m5(), null));
475
+ var tmp_33 = tmp0.k1l();
476
+ var tmp_34 = tmp0.m1m();
477
+ var tmp_35 = tmp0.l1l();
478
+ var tmp_36 = tmp0.n1m(tmp_33, tmp_34, tmp_35, CalculateVersion$versionRegex$delegate$lambda(Companion_instance, message));
479
+ var tmp_37 = KProperty1;
480
+ tmp_32.r2o_1 = tmp_36.t1m(this, getPropertyCallableRef('versionRegex', 1, tmp_37, CalculateVersion$_get_versionRegex_$ref_f466m5(), null));
350
481
  }
351
482
  protoOf(CalculateVersion).j1d = function () {
352
483
  var tmp = new TaggerCore(new GitAdapter(_get_workingDirectory__eyfbj(this)));
@@ -358,15 +489,42 @@
358
489
  // Inline function 'kotlin.run' call
359
490
  var $this$run = calculateNextVersion(tmp, tmp_0, tmp_1, tmp_2, tmp_3, tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs);
360
491
  if ($this$run instanceof Success) {
361
- output(this, $this$run.do_1, $this$run.eo_1);
492
+ switch (_get_format__qlarck(this).y2_1) {
493
+ case 1:
494
+ outputJson(this, $this$run.do_1, $this$run.eo_1);
495
+ break;
496
+ case 0:
497
+ output(this, $this$run.do_1, $this$run.eo_1);
498
+ break;
499
+ default:
500
+ noWhenBranchMatchedException();
501
+ break;
502
+ }
362
503
  } else {
363
- if ($this$run instanceof Failure)
364
- throw new CliktError($this$run.ba());
365
- else {
504
+ if ($this$run instanceof Failure) {
505
+ switch (_get_format__qlarck(this).y2_1) {
506
+ case 1:
507
+ this.x1b(errorResponse($this$run.ba(), 'CONFIGURATION_ERROR'));
508
+ throw new CliktError('', VOID, 1, false);
509
+ case 0:
510
+ throw new CliktError($this$run.ba());
511
+ default:
512
+ noWhenBranchMatchedException();
513
+ break;
514
+ }
515
+ } else {
366
516
  noWhenBranchMatchedException();
367
517
  }
368
518
  }
369
519
  };
520
+ function OutputFormat_TEXT_getInstance() {
521
+ OutputFormat_initEntries();
522
+ return OutputFormat_TEXT_instance;
523
+ }
524
+ function OutputFormat_JSON_getInstance() {
525
+ OutputFormat_initEntries();
526
+ return OutputFormat_JSON_instance;
527
+ }
370
528
  function findInvocations($this, configAsElement, option) {
371
529
  var cursor = configAsElement;
372
530
  var parts_0 = parts($this, option);
@@ -416,7 +574,7 @@
416
574
  return pattern.lc($receiver, transform);
417
575
  }
418
576
  function readConfigFileAsJsonElement($this) {
419
- var pwd = $this.q2o_1('PWD');
577
+ var pwd = $this.s2o_1('PWD');
420
578
  var tmp0_elvis_lhs = readFromFile('' + pwd + '/.tagger');
421
579
  var tmp;
422
580
  if (tmp0_elvis_lhs == null) {
@@ -451,7 +609,7 @@
451
609
  return toString(this_0).toUpperCase();
452
610
  }
453
611
  function ConfigFileSource(envvarReader) {
454
- this.q2o_1 = envvarReader;
612
+ this.s2o_1 = envvarReader;
455
613
  }
456
614
  protoOf(ConfigFileSource).v1m = function (context, option) {
457
615
  var tmp0_elvis_lhs = readConfigFileAsJsonElement(this);
@@ -466,11 +624,11 @@
466
624
  };
467
625
  function _get_file__d6iv67($this) {
468
626
  var tmp = KProperty1;
469
- return $this.g2p_1.j1m($this, getPropertyCallableRef('file', 1, tmp, GenerateSettingsFile$_get_file_$ref_3dvoj2_0(), null));
627
+ return $this.i2p_1.j1m($this, getPropertyCallableRef('file', 1, tmp, GenerateSettingsFile$_get_file_$ref_3dvoj2_0(), null));
470
628
  }
471
629
  function _get_merge__eb7eqv($this) {
472
630
  var tmp = KProperty1;
473
- return $this.h2p_1.j1m($this, getPropertyCallableRef('merge', 1, tmp, GenerateSettingsFile$_get_merge_$ref_3aq3hk_0(), null));
631
+ return $this.j2p_1.j1m($this, getPropertyCallableRef('merge', 1, tmp, GenerateSettingsFile$_get_merge_$ref_3aq3hk_0(), null));
474
632
  }
475
633
  function mergeJson($this, defaultConfig, originalData) {
476
634
  // Inline function 'kotlinx.serialization.json.buildJsonObject' call
@@ -528,11 +686,11 @@
528
686
  var tmp = this;
529
687
  var tmp_0 = option(this, []);
530
688
  var tmp_1 = KProperty1;
531
- tmp.g2p_1 = tmp_0.t1m(this, getPropertyCallableRef('file', 1, tmp_1, GenerateSettingsFile$_get_file_$ref_3dvoj2(), null));
689
+ tmp.i2p_1 = tmp_0.t1m(this, getPropertyCallableRef('file', 1, tmp_1, GenerateSettingsFile$_get_file_$ref_3dvoj2(), null));
532
690
  var tmp_2 = this;
533
691
  var tmp_3 = boolean(option(this, []));
534
692
  var tmp_4 = KProperty1;
535
- tmp_2.h2p_1 = tmp_3.t1m(this, getPropertyCallableRef('merge', 1, tmp_4, GenerateSettingsFile$_get_merge_$ref_3aq3hk(), null));
693
+ tmp_2.j2p_1 = tmp_3.t1m(this, getPropertyCallableRef('merge', 1, tmp_4, GenerateSettingsFile$_get_merge_$ref_3aq3hk(), null));
536
694
  }
537
695
  protoOf(GenerateSettingsFile).j1d = function () {
538
696
  var prettyJsonFormatter = Json(VOID, GenerateSettingsFile$run$lambda);
@@ -593,6 +751,389 @@
593
751
  this.x1b('Saved to ' + fileName);
594
752
  }
595
753
  };
754
+ function Companion_0() {
755
+ }
756
+ protoOf(Companion_0).p2c = function () {
757
+ return $serializer_getInstance();
758
+ };
759
+ var Companion_instance_3;
760
+ function Companion_getInstance_0() {
761
+ return Companion_instance_3;
762
+ }
763
+ function $serializer() {
764
+ $serializer_instance = this;
765
+ var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.zegreatrob.tools.tagger.cli.VersionSuccessResponse', this, 2);
766
+ tmp0_serialDesc.my('status', false);
767
+ tmp0_serialDesc.my('data', false);
768
+ this.k2p_1 = tmp0_serialDesc;
769
+ }
770
+ protoOf($serializer).l2p = function (encoder, value) {
771
+ var tmp0_desc = this.k2p_1;
772
+ var tmp1_output = encoder.dr(tmp0_desc);
773
+ tmp1_output.rs(tmp0_desc, 0, value.m2p_1);
774
+ tmp1_output.ts(tmp0_desc, 1, $serializer_getInstance_0(), value.n2p_1);
775
+ tmp1_output.er(tmp0_desc);
776
+ };
777
+ protoOf($serializer).ho = function (encoder, value) {
778
+ return this.l2p(encoder, value instanceof VersionSuccessResponse ? value : THROW_CCE());
779
+ };
780
+ protoOf($serializer).io = function (decoder) {
781
+ var tmp0_desc = this.k2p_1;
782
+ var tmp1_flag = true;
783
+ var tmp2_index = 0;
784
+ var tmp3_bitMask0 = 0;
785
+ var tmp4_local0 = null;
786
+ var tmp5_local1 = null;
787
+ var tmp6_input = decoder.dr(tmp0_desc);
788
+ if (tmp6_input.tr()) {
789
+ tmp4_local0 = tmp6_input.nr(tmp0_desc, 0);
790
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
791
+ tmp5_local1 = tmp6_input.pr(tmp0_desc, 1, $serializer_getInstance_0(), tmp5_local1);
792
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
793
+ } else
794
+ while (tmp1_flag) {
795
+ tmp2_index = tmp6_input.ur(tmp0_desc);
796
+ switch (tmp2_index) {
797
+ case -1:
798
+ tmp1_flag = false;
799
+ break;
800
+ case 0:
801
+ tmp4_local0 = tmp6_input.nr(tmp0_desc, 0);
802
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
803
+ break;
804
+ case 1:
805
+ tmp5_local1 = tmp6_input.pr(tmp0_desc, 1, $serializer_getInstance_0(), tmp5_local1);
806
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
807
+ break;
808
+ default:
809
+ throw UnknownFieldException_init_$Create$(tmp2_index);
810
+ }
811
+ }
812
+ tmp6_input.er(tmp0_desc);
813
+ return VersionSuccessResponse_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
814
+ };
815
+ protoOf($serializer).go = function () {
816
+ return this.k2p_1;
817
+ };
818
+ protoOf($serializer).oy = function () {
819
+ // Inline function 'kotlin.arrayOf' call
820
+ // Inline function 'kotlin.js.unsafeCast' call
821
+ // Inline function 'kotlin.js.asDynamic' call
822
+ return [StringSerializer_getInstance(), $serializer_getInstance_0()];
823
+ };
824
+ var $serializer_instance;
825
+ function $serializer_getInstance() {
826
+ if ($serializer_instance == null)
827
+ new $serializer();
828
+ return $serializer_instance;
829
+ }
830
+ function VersionSuccessResponse_init_$Init$(seen0, status, data, serializationConstructorMarker, $this) {
831
+ if (!(3 === (3 & seen0))) {
832
+ throwMissingFieldException(seen0, 3, $serializer_getInstance().k2p_1);
833
+ }
834
+ $this.m2p_1 = status;
835
+ $this.n2p_1 = data;
836
+ return $this;
837
+ }
838
+ function VersionSuccessResponse_init_$Create$(seen0, status, data, serializationConstructorMarker) {
839
+ return VersionSuccessResponse_init_$Init$(seen0, status, data, serializationConstructorMarker, objectCreate(protoOf(VersionSuccessResponse)));
840
+ }
841
+ function VersionSuccessResponse(status, data) {
842
+ this.m2p_1 = status;
843
+ this.n2p_1 = data;
844
+ }
845
+ protoOf(VersionSuccessResponse).toString = function () {
846
+ return 'VersionSuccessResponse(status=' + this.m2p_1 + ', data=' + this.n2p_1.toString() + ')';
847
+ };
848
+ protoOf(VersionSuccessResponse).hashCode = function () {
849
+ var result = getStringHashCode(this.m2p_1);
850
+ result = imul(result, 31) + this.n2p_1.hashCode() | 0;
851
+ return result;
852
+ };
853
+ protoOf(VersionSuccessResponse).equals = function (other) {
854
+ if (this === other)
855
+ return true;
856
+ if (!(other instanceof VersionSuccessResponse))
857
+ return false;
858
+ if (!(this.m2p_1 === other.m2p_1))
859
+ return false;
860
+ if (!this.n2p_1.equals(other.n2p_1))
861
+ return false;
862
+ return true;
863
+ };
864
+ function VersionData$Companion$$childSerializers$_anonymous__gd9ivc() {
865
+ return new ArrayListSerializer(StringSerializer_getInstance());
866
+ }
867
+ function Companion_1() {
868
+ Companion_instance_4 = this;
869
+ var tmp = this;
870
+ var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
871
+ // Inline function 'kotlin.arrayOf' call
872
+ // Inline function 'kotlin.js.unsafeCast' call
873
+ // Inline function 'kotlin.js.asDynamic' call
874
+ tmp.o2p_1 = [null, null, lazy(tmp_0, VersionData$Companion$$childSerializers$_anonymous__gd9ivc)];
875
+ }
876
+ var Companion_instance_4;
877
+ function Companion_getInstance_1() {
878
+ if (Companion_instance_4 == null)
879
+ new Companion_1();
880
+ return Companion_instance_4;
881
+ }
882
+ function $serializer_0() {
883
+ $serializer_instance_0 = this;
884
+ var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.zegreatrob.tools.tagger.cli.VersionData', this, 3);
885
+ tmp0_serialDesc.my('version', false);
886
+ tmp0_serialDesc.my('snapshot', false);
887
+ tmp0_serialDesc.my('snapshotReasons', true);
888
+ this.p2p_1 = tmp0_serialDesc;
889
+ }
890
+ protoOf($serializer_0).q2p = function (encoder, value) {
891
+ var tmp0_desc = this.p2p_1;
892
+ var tmp1_output = encoder.dr(tmp0_desc);
893
+ var tmp2_cached = Companion_getInstance_1().o2p_1;
894
+ tmp1_output.rs(tmp0_desc, 0, value.r2p_1);
895
+ tmp1_output.js(tmp0_desc, 1, value.s2p_1);
896
+ if (tmp1_output.zs(tmp0_desc, 2) ? true : !equals(value.t2p_1, emptyList())) {
897
+ tmp1_output.ts(tmp0_desc, 2, tmp2_cached[2].m1(), value.t2p_1);
898
+ }
899
+ tmp1_output.er(tmp0_desc);
900
+ };
901
+ protoOf($serializer_0).ho = function (encoder, value) {
902
+ return this.q2p(encoder, value instanceof VersionData ? value : THROW_CCE());
903
+ };
904
+ protoOf($serializer_0).io = function (decoder) {
905
+ var tmp0_desc = this.p2p_1;
906
+ var tmp1_flag = true;
907
+ var tmp2_index = 0;
908
+ var tmp3_bitMask0 = 0;
909
+ var tmp4_local0 = null;
910
+ var tmp5_local1 = false;
911
+ var tmp6_local2 = null;
912
+ var tmp7_input = decoder.dr(tmp0_desc);
913
+ var tmp8_cached = Companion_getInstance_1().o2p_1;
914
+ if (tmp7_input.tr()) {
915
+ tmp4_local0 = tmp7_input.nr(tmp0_desc, 0);
916
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
917
+ tmp5_local1 = tmp7_input.fr(tmp0_desc, 1);
918
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
919
+ tmp6_local2 = tmp7_input.pr(tmp0_desc, 2, tmp8_cached[2].m1(), tmp6_local2);
920
+ tmp3_bitMask0 = tmp3_bitMask0 | 4;
921
+ } else
922
+ while (tmp1_flag) {
923
+ tmp2_index = tmp7_input.ur(tmp0_desc);
924
+ switch (tmp2_index) {
925
+ case -1:
926
+ tmp1_flag = false;
927
+ break;
928
+ case 0:
929
+ tmp4_local0 = tmp7_input.nr(tmp0_desc, 0);
930
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
931
+ break;
932
+ case 1:
933
+ tmp5_local1 = tmp7_input.fr(tmp0_desc, 1);
934
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
935
+ break;
936
+ case 2:
937
+ tmp6_local2 = tmp7_input.pr(tmp0_desc, 2, tmp8_cached[2].m1(), tmp6_local2);
938
+ tmp3_bitMask0 = tmp3_bitMask0 | 4;
939
+ break;
940
+ default:
941
+ throw UnknownFieldException_init_$Create$(tmp2_index);
942
+ }
943
+ }
944
+ tmp7_input.er(tmp0_desc);
945
+ return VersionData_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
946
+ };
947
+ protoOf($serializer_0).go = function () {
948
+ return this.p2p_1;
949
+ };
950
+ protoOf($serializer_0).oy = function () {
951
+ var tmp0_cached = Companion_getInstance_1().o2p_1;
952
+ // Inline function 'kotlin.arrayOf' call
953
+ // Inline function 'kotlin.js.unsafeCast' call
954
+ // Inline function 'kotlin.js.asDynamic' call
955
+ return [StringSerializer_getInstance(), BooleanSerializer_getInstance(), tmp0_cached[2].m1()];
956
+ };
957
+ var $serializer_instance_0;
958
+ function $serializer_getInstance_0() {
959
+ if ($serializer_instance_0 == null)
960
+ new $serializer_0();
961
+ return $serializer_instance_0;
962
+ }
963
+ function VersionData_init_$Init$(seen0, version, snapshot, snapshotReasons, serializationConstructorMarker, $this) {
964
+ if (!(3 === (3 & seen0))) {
965
+ throwMissingFieldException(seen0, 3, $serializer_getInstance_0().p2p_1);
966
+ }
967
+ $this.r2p_1 = version;
968
+ $this.s2p_1 = snapshot;
969
+ if (0 === (seen0 & 4))
970
+ $this.t2p_1 = emptyList();
971
+ else
972
+ $this.t2p_1 = snapshotReasons;
973
+ return $this;
974
+ }
975
+ function VersionData_init_$Create$(seen0, version, snapshot, snapshotReasons, serializationConstructorMarker) {
976
+ return VersionData_init_$Init$(seen0, version, snapshot, snapshotReasons, serializationConstructorMarker, objectCreate(protoOf(VersionData)));
977
+ }
978
+ function VersionData(version, snapshot, snapshotReasons) {
979
+ Companion_getInstance_1();
980
+ snapshotReasons = snapshotReasons === VOID ? emptyList() : snapshotReasons;
981
+ this.r2p_1 = version;
982
+ this.s2p_1 = snapshot;
983
+ this.t2p_1 = snapshotReasons;
984
+ }
985
+ protoOf(VersionData).toString = function () {
986
+ return 'VersionData(version=' + this.r2p_1 + ', snapshot=' + this.s2p_1 + ', snapshotReasons=' + toString_0(this.t2p_1) + ')';
987
+ };
988
+ protoOf(VersionData).hashCode = function () {
989
+ var result = getStringHashCode(this.r2p_1);
990
+ result = imul(result, 31) + getBooleanHashCode(this.s2p_1) | 0;
991
+ result = imul(result, 31) + hashCode(this.t2p_1) | 0;
992
+ return result;
993
+ };
994
+ protoOf(VersionData).equals = function (other) {
995
+ if (this === other)
996
+ return true;
997
+ if (!(other instanceof VersionData))
998
+ return false;
999
+ if (!(this.r2p_1 === other.r2p_1))
1000
+ return false;
1001
+ if (!(this.s2p_1 === other.s2p_1))
1002
+ return false;
1003
+ if (!equals(this.t2p_1, other.t2p_1))
1004
+ return false;
1005
+ return true;
1006
+ };
1007
+ function Companion_2() {
1008
+ }
1009
+ protoOf(Companion_2).p2c = function () {
1010
+ return $serializer_getInstance_1();
1011
+ };
1012
+ var Companion_instance_5;
1013
+ function Companion_getInstance_2() {
1014
+ return Companion_instance_5;
1015
+ }
1016
+ function $serializer_1() {
1017
+ $serializer_instance_1 = this;
1018
+ var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.zegreatrob.tools.tagger.cli.ErrorResponse', this, 3);
1019
+ tmp0_serialDesc.my('status', false);
1020
+ tmp0_serialDesc.my('error', false);
1021
+ tmp0_serialDesc.my('code', false);
1022
+ this.u2p_1 = tmp0_serialDesc;
1023
+ }
1024
+ protoOf($serializer_1).v2p = function (encoder, value) {
1025
+ var tmp0_desc = this.u2p_1;
1026
+ var tmp1_output = encoder.dr(tmp0_desc);
1027
+ tmp1_output.rs(tmp0_desc, 0, value.w2p_1);
1028
+ tmp1_output.rs(tmp0_desc, 1, value.x2p_1);
1029
+ tmp1_output.rs(tmp0_desc, 2, value.y2p_1);
1030
+ tmp1_output.er(tmp0_desc);
1031
+ };
1032
+ protoOf($serializer_1).ho = function (encoder, value) {
1033
+ return this.v2p(encoder, value instanceof ErrorResponse ? value : THROW_CCE());
1034
+ };
1035
+ protoOf($serializer_1).io = function (decoder) {
1036
+ var tmp0_desc = this.u2p_1;
1037
+ var tmp1_flag = true;
1038
+ var tmp2_index = 0;
1039
+ var tmp3_bitMask0 = 0;
1040
+ var tmp4_local0 = null;
1041
+ var tmp5_local1 = null;
1042
+ var tmp6_local2 = null;
1043
+ var tmp7_input = decoder.dr(tmp0_desc);
1044
+ if (tmp7_input.tr()) {
1045
+ tmp4_local0 = tmp7_input.nr(tmp0_desc, 0);
1046
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
1047
+ tmp5_local1 = tmp7_input.nr(tmp0_desc, 1);
1048
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
1049
+ tmp6_local2 = tmp7_input.nr(tmp0_desc, 2);
1050
+ tmp3_bitMask0 = tmp3_bitMask0 | 4;
1051
+ } else
1052
+ while (tmp1_flag) {
1053
+ tmp2_index = tmp7_input.ur(tmp0_desc);
1054
+ switch (tmp2_index) {
1055
+ case -1:
1056
+ tmp1_flag = false;
1057
+ break;
1058
+ case 0:
1059
+ tmp4_local0 = tmp7_input.nr(tmp0_desc, 0);
1060
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
1061
+ break;
1062
+ case 1:
1063
+ tmp5_local1 = tmp7_input.nr(tmp0_desc, 1);
1064
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
1065
+ break;
1066
+ case 2:
1067
+ tmp6_local2 = tmp7_input.nr(tmp0_desc, 2);
1068
+ tmp3_bitMask0 = tmp3_bitMask0 | 4;
1069
+ break;
1070
+ default:
1071
+ throw UnknownFieldException_init_$Create$(tmp2_index);
1072
+ }
1073
+ }
1074
+ tmp7_input.er(tmp0_desc);
1075
+ return ErrorResponse_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
1076
+ };
1077
+ protoOf($serializer_1).go = function () {
1078
+ return this.u2p_1;
1079
+ };
1080
+ protoOf($serializer_1).oy = function () {
1081
+ // Inline function 'kotlin.arrayOf' call
1082
+ // Inline function 'kotlin.js.unsafeCast' call
1083
+ // Inline function 'kotlin.js.asDynamic' call
1084
+ return [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()];
1085
+ };
1086
+ var $serializer_instance_1;
1087
+ function $serializer_getInstance_1() {
1088
+ if ($serializer_instance_1 == null)
1089
+ new $serializer_1();
1090
+ return $serializer_instance_1;
1091
+ }
1092
+ function ErrorResponse_init_$Init$(seen0, status, error, code, serializationConstructorMarker, $this) {
1093
+ if (!(7 === (7 & seen0))) {
1094
+ throwMissingFieldException(seen0, 7, $serializer_getInstance_1().u2p_1);
1095
+ }
1096
+ $this.w2p_1 = status;
1097
+ $this.x2p_1 = error;
1098
+ $this.y2p_1 = code;
1099
+ return $this;
1100
+ }
1101
+ function ErrorResponse_init_$Create$(seen0, status, error, code, serializationConstructorMarker) {
1102
+ return ErrorResponse_init_$Init$(seen0, status, error, code, serializationConstructorMarker, objectCreate(protoOf(ErrorResponse)));
1103
+ }
1104
+ function ErrorResponse(status, error, code) {
1105
+ this.w2p_1 = status;
1106
+ this.x2p_1 = error;
1107
+ this.y2p_1 = code;
1108
+ }
1109
+ protoOf(ErrorResponse).toString = function () {
1110
+ return 'ErrorResponse(status=' + this.w2p_1 + ', error=' + this.x2p_1 + ', code=' + this.y2p_1 + ')';
1111
+ };
1112
+ protoOf(ErrorResponse).hashCode = function () {
1113
+ var result = getStringHashCode(this.w2p_1);
1114
+ result = imul(result, 31) + getStringHashCode(this.x2p_1) | 0;
1115
+ result = imul(result, 31) + getStringHashCode(this.y2p_1) | 0;
1116
+ return result;
1117
+ };
1118
+ protoOf(ErrorResponse).equals = function (other) {
1119
+ if (this === other)
1120
+ return true;
1121
+ if (!(other instanceof ErrorResponse))
1122
+ return false;
1123
+ if (!(this.w2p_1 === other.w2p_1))
1124
+ return false;
1125
+ if (!(this.x2p_1 === other.x2p_1))
1126
+ return false;
1127
+ if (!(this.y2p_1 === other.y2p_1))
1128
+ return false;
1129
+ return true;
1130
+ };
1131
+ function versionSuccessResponse(data) {
1132
+ return Default_getInstance().e2a(Companion_instance_3.p2c(), new VersionSuccessResponse('success', data));
1133
+ }
1134
+ function errorResponse(message, code) {
1135
+ return Default_getInstance().e2a(Companion_instance_5.p2c(), new ErrorResponse('error', message, code));
1136
+ }
596
1137
  function main_0(args) {
597
1138
  return main(cli(), platformArgCorrection(args));
598
1139
  }
@@ -604,11 +1145,11 @@
604
1145
  }
605
1146
  function _get_gitRepoArgument__zxde8_0($this) {
606
1147
  var tmp = KProperty1;
607
- return $this.x2p_1.j1m($this, getPropertyCallableRef('gitRepoArgument', 1, tmp, Tag$_get_gitRepoArgument_$ref_dketaj_0(), null));
1148
+ return $this.o2q_1.j1m($this, getPropertyCallableRef('gitRepoArgument', 1, tmp, Tag$_get_gitRepoArgument_$ref_dketaj_0(), null));
608
1149
  }
609
1150
  function _get_gitRepoOption__rk7ta0_0($this) {
610
1151
  var tmp = KProperty1;
611
- return $this.y2p_1.j1m($this, getPropertyCallableRef('gitRepoOption', 1, tmp, Tag$_get_gitRepoOption_$ref_10iywz_0(), null));
1152
+ return $this.p2q_1.j1m($this, getPropertyCallableRef('gitRepoOption', 1, tmp, Tag$_get_gitRepoOption_$ref_10iywz_0(), null));
612
1153
  }
613
1154
  function _get_workingDirectory__eyfbj_0($this) {
614
1155
  var tmp0_elvis_lhs = _get_gitRepoArgument__zxde8_0($this);
@@ -623,23 +1164,23 @@
623
1164
  }
624
1165
  function _get_releaseBranch__pqrgbs_0($this) {
625
1166
  var tmp = KProperty1;
626
- return $this.z2p_1.j1m($this, getPropertyCallableRef('releaseBranch', 1, tmp, Tag$_get_releaseBranch_$ref_rq8rmb_0(), null));
1167
+ return $this.q2q_1.j1m($this, getPropertyCallableRef('releaseBranch', 1, tmp, Tag$_get_releaseBranch_$ref_rq8rmb_0(), null));
627
1168
  }
628
1169
  function _get_version__2bx7w9($this) {
629
1170
  var tmp = KProperty1;
630
- return $this.a2q_1.j1m($this, getPropertyCallableRef('version', 1, tmp, Tag$_get_version_$ref_p7wb9e_0(), null));
1171
+ return $this.r2q_1.j1m($this, getPropertyCallableRef('version', 1, tmp, Tag$_get_version_$ref_p7wb9e_0(), null));
631
1172
  }
632
1173
  function _get_userName__tupjmd($this) {
633
1174
  var tmp = KProperty1;
634
- return $this.b2q_1.j1m($this, getPropertyCallableRef('userName', 1, tmp, Tag$_get_userName_$ref_kslo5u_0(), null));
1175
+ return $this.s2q_1.j1m($this, getPropertyCallableRef('userName', 1, tmp, Tag$_get_userName_$ref_kslo5u_0(), null));
635
1176
  }
636
1177
  function _get_userEmail__21hfkw($this) {
637
1178
  var tmp = KProperty1;
638
- return $this.c2q_1.j1m($this, getPropertyCallableRef('userEmail', 1, tmp, Tag$_get_userEmail_$ref_vl09cr_0(), null));
1179
+ return $this.t2q_1.j1m($this, getPropertyCallableRef('userEmail', 1, tmp, Tag$_get_userEmail_$ref_vl09cr_0(), null));
639
1180
  }
640
1181
  function _get_warningsAsErrors__7mpwfd($this) {
641
1182
  var tmp = KProperty1;
642
- return $this.d2q_1.j1m($this, getPropertyCallableRef('warningsAsErrors', 1, tmp, Tag$_get_warningsAsErrors_$ref_gj8a6o_0(), null));
1183
+ return $this.u2q_1.j1m($this, getPropertyCallableRef('warningsAsErrors', 1, tmp, Tag$_get_warningsAsErrors_$ref_gj8a6o_0(), null));
643
1184
  }
644
1185
  function Tag$lambda($this$context) {
645
1186
  $this$context.r1c([new ConfigFileSource($this$context.n1c_1)]);
@@ -721,31 +1262,31 @@
721
1262
  var tmp = this;
722
1263
  var tmp_0 = optional(argument(this, 'git-repo'));
723
1264
  var tmp_1 = KProperty1;
724
- tmp.x2p_1 = tmp_0.p1l(this, getPropertyCallableRef('gitRepoArgument', 1, tmp_1, Tag$_get_gitRepoArgument_$ref_dketaj(), null));
1265
+ tmp.o2q_1 = tmp_0.p1l(this, getPropertyCallableRef('gitRepoArgument', 1, tmp_1, Tag$_get_gitRepoArgument_$ref_dketaj(), null));
725
1266
  var tmp_2 = this;
726
1267
  var tmp_3 = option(this, ['--git-repo'], VOID, VOID, VOID, 'PWD');
727
1268
  var tmp_4 = KProperty1;
728
- tmp_2.y2p_1 = tmp_3.t1m(this, getPropertyCallableRef('gitRepoOption', 1, tmp_4, Tag$_get_gitRepoOption_$ref_10iywz(), null));
1269
+ tmp_2.p2q_1 = tmp_3.t1m(this, getPropertyCallableRef('gitRepoOption', 1, tmp_4, Tag$_get_gitRepoOption_$ref_10iywz(), null));
729
1270
  var tmp_5 = this;
730
1271
  var tmp_6 = required(option(this, []));
731
1272
  var tmp_7 = KProperty1;
732
- tmp_5.z2p_1 = tmp_6.t1m(this, getPropertyCallableRef('releaseBranch', 1, tmp_7, Tag$_get_releaseBranch_$ref_rq8rmb(), null));
1273
+ tmp_5.q2q_1 = tmp_6.t1m(this, getPropertyCallableRef('releaseBranch', 1, tmp_7, Tag$_get_releaseBranch_$ref_rq8rmb(), null));
733
1274
  var tmp_8 = this;
734
1275
  var tmp_9 = required(option(this, []));
735
1276
  var tmp_10 = KProperty1;
736
- tmp_8.a2q_1 = tmp_9.t1m(this, getPropertyCallableRef('version', 1, tmp_10, Tag$_get_version_$ref_p7wb9e(), null));
1277
+ tmp_8.r2q_1 = tmp_9.t1m(this, getPropertyCallableRef('version', 1, tmp_10, Tag$_get_version_$ref_p7wb9e(), null));
737
1278
  var tmp_11 = this;
738
1279
  var tmp_12 = option(this, []);
739
1280
  var tmp_13 = KProperty1;
740
- tmp_11.b2q_1 = tmp_12.t1m(this, getPropertyCallableRef('userName', 1, tmp_13, Tag$_get_userName_$ref_kslo5u(), null));
1281
+ tmp_11.s2q_1 = tmp_12.t1m(this, getPropertyCallableRef('userName', 1, tmp_13, Tag$_get_userName_$ref_kslo5u(), null));
741
1282
  var tmp_14 = this;
742
1283
  var tmp_15 = option(this, []);
743
1284
  var tmp_16 = KProperty1;
744
- tmp_14.c2q_1 = tmp_15.t1m(this, getPropertyCallableRef('userEmail', 1, tmp_16, Tag$_get_userEmail_$ref_vl09cr(), null));
1285
+ tmp_14.t2q_1 = tmp_15.t1m(this, getPropertyCallableRef('userEmail', 1, tmp_16, Tag$_get_userEmail_$ref_vl09cr(), null));
745
1286
  var tmp_17 = this;
746
1287
  var tmp_18 = default_0(boolean(option(this, [])), false);
747
1288
  var tmp_19 = KProperty1;
748
- tmp_17.d2q_1 = tmp_18.t1m(this, getPropertyCallableRef('warningsAsErrors', 1, tmp_19, Tag$_get_warningsAsErrors_$ref_gj8a6o(), null));
1289
+ tmp_17.u2q_1 = tmp_18.t1m(this, getPropertyCallableRef('warningsAsErrors', 1, tmp_19, Tag$_get_warningsAsErrors_$ref_gj8a6o(), null));
749
1290
  }
750
1291
  protoOf(Tag).j1d = function () {
751
1292
  // Inline function 'kotlin.let' call
@@ -766,7 +1307,7 @@
766
1307
  };
767
1308
  function _get_quiet__c6dzoj($this) {
768
1309
  var tmp = KProperty1;
769
- return $this.t2q_1.j1m($this, getPropertyCallableRef('quiet', 1, tmp, Tagger$_get_quiet_$ref_s522ri_0(), null));
1310
+ return $this.k2r_1.j1m($this, getPropertyCallableRef('quiet', 1, tmp, Tagger$_get_quiet_$ref_s522ri_0(), null));
770
1311
  }
771
1312
  function Tagger$lambda($version, $this) {
772
1313
  return function ($this$eagerOption) {
@@ -795,15 +1336,23 @@
795
1336
  var tmp = this;
796
1337
  var tmp_0 = flag(option(this, ['--quiet', '-q']), [], false);
797
1338
  var tmp_1 = KProperty1;
798
- tmp.t2q_1 = tmp_0.t1m(this, getPropertyCallableRef('quiet', 1, tmp_1, Tagger$_get_quiet_$ref_s522ri(), null));
1339
+ tmp.k2r_1 = tmp_0.t1m(this, getPropertyCallableRef('quiet', 1, tmp_1, Tagger$_get_quiet_$ref_s522ri(), null));
799
1340
  }
800
1341
  protoOf(Tagger).j1d = function () {
801
1342
  if (!_get_quiet__c6dzoj(this)) {
802
1343
  this.x1b('Welcome to Tagger CLI.');
803
1344
  }
804
1345
  };
1346
+ //region block: post-declaration
1347
+ protoOf($serializer).py = typeParametersSerializers;
1348
+ protoOf($serializer_0).py = typeParametersSerializers;
1349
+ protoOf($serializer_1).py = typeParametersSerializers;
1350
+ //endregion
805
1351
  //region block: init
806
1352
  Versions_instance = new Versions();
1353
+ Companion_instance_2 = new Companion();
1354
+ Companion_instance_3 = new Companion_0();
1355
+ Companion_instance_5 = new Companion_2();
807
1356
  //endregion
808
1357
  mainWrapper();
809
1358
  return _;