git-semver-tagger 1.9.20 → 1.9.22

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,93 @@
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});
114
+ initMetadataForCompanion(Companion_3);
115
+ initMetadataForObject($serializer_2, '$serializer', VOID, VOID, [GeneratedSerializer]);
116
+ initMetadataForClass(TagSuccessResponse, 'TagSuccessResponse', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_2});
117
+ initMetadataForCompanion(Companion_4);
118
+ initMetadataForObject($serializer_3, '$serializer', VOID, VOID, [GeneratedSerializer]);
119
+ initMetadataForClass(TagData, 'TagData', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_3});
80
120
  initMetadataForClass(Tag, 'Tag', Tag, CliktCommand);
81
121
  initMetadataForClass(Tagger, 'Tagger', Tagger, CliktCommand);
82
122
  //endregion
83
123
  function Versions() {
84
- this.p2n_1 = '1.9.20';
124
+ this.q2n_1 = '1.9.22';
85
125
  }
86
126
  var Versions_instance;
87
127
  function Versions_getInstance() {
88
128
  return Versions_instance;
89
129
  }
130
+ function OutputFormat$Companion$fromString$lambda(it) {
131
+ // Inline function 'kotlin.text.lowercase' call
132
+ // Inline function 'kotlin.js.asDynamic' call
133
+ return it.x2_1.toLowerCase();
134
+ }
135
+ var OutputFormat_TEXT_instance;
136
+ var OutputFormat_JSON_instance;
137
+ function Companion() {
138
+ }
139
+ protoOf(Companion).r2n = function (value) {
140
+ // Inline function 'kotlin.text.lowercase' call
141
+ // Inline function 'kotlin.js.asDynamic' call
142
+ var tmp;
143
+ switch (value.toLowerCase()) {
144
+ case 'text':
145
+ tmp = OutputFormat_TEXT_getInstance();
146
+ break;
147
+ case 'json':
148
+ tmp = OutputFormat_JSON_getInstance();
149
+ break;
150
+ default:
151
+ var tmp_0 = get_entries();
152
+ throw IllegalArgumentException_init_$Create$("Invalid format '" + value + "'. Must be one of: " + joinToString(tmp_0, ', ', VOID, VOID, VOID, VOID, OutputFormat$Companion$fromString$lambda));
153
+ }
154
+ return tmp;
155
+ };
156
+ var Companion_instance_2;
157
+ function Companion_getInstance() {
158
+ return Companion_instance_2;
159
+ }
160
+ function values() {
161
+ return [OutputFormat_TEXT_getInstance(), OutputFormat_JSON_getInstance()];
162
+ }
163
+ function get_entries() {
164
+ if ($ENTRIES == null)
165
+ $ENTRIES = enumEntries(values());
166
+ return $ENTRIES;
167
+ }
168
+ var OutputFormat_entriesInitialized;
169
+ function OutputFormat_initEntries() {
170
+ if (OutputFormat_entriesInitialized)
171
+ return Unit_instance;
172
+ OutputFormat_entriesInitialized = true;
173
+ OutputFormat_TEXT_instance = new OutputFormat('TEXT', 0);
174
+ OutputFormat_JSON_instance = new OutputFormat('JSON', 1);
175
+ }
176
+ var $ENTRIES;
177
+ function OutputFormat(name, ordinal) {
178
+ Enum.call(this, name, ordinal);
179
+ }
90
180
  function _get_gitRepoArgument__zxde8($this) {
91
181
  var tmp = KProperty1;
92
- return $this.f2o_1.j1m($this, getPropertyCallableRef('gitRepoArgument', 1, tmp, CalculateVersion$_get_gitRepoArgument_$ref_ekksr7_0(), null));
182
+ return $this.h2o_1.k1m($this, getPropertyCallableRef('gitRepoArgument', 1, tmp, CalculateVersion$_get_gitRepoArgument_$ref_ekksr7_0(), null));
93
183
  }
94
184
  function _get_gitRepoOption__rk7ta0($this) {
95
185
  var tmp = KProperty1;
96
- return $this.g2o_1.j1m($this, getPropertyCallableRef('gitRepoOption', 1, tmp, CalculateVersion$_get_gitRepoOption_$ref_ms8ohh_0(), null));
186
+ return $this.i2o_1.k1m($this, getPropertyCallableRef('gitRepoOption', 1, tmp, CalculateVersion$_get_gitRepoOption_$ref_ms8ohh_0(), null));
97
187
  }
98
188
  function _get_workingDirectory__eyfbj($this) {
99
189
  var tmp0_elvis_lhs = _get_gitRepoArgument__zxde8($this);
@@ -108,39 +198,59 @@
108
198
  }
109
199
  function _get_implicitPatch__bjk4pa($this) {
110
200
  var tmp = KProperty1;
111
- return $this.h2o_1.j1m($this, getPropertyCallableRef('implicitPatch', 1, tmp, CalculateVersion$_get_implicitPatch_$ref_8lm4hh_0(), null));
201
+ return $this.j2o_1.k1m($this, getPropertyCallableRef('implicitPatch', 1, tmp, CalculateVersion$_get_implicitPatch_$ref_8lm4hh_0(), null));
112
202
  }
113
203
  function _get_disableDetached__ys8kbb($this) {
114
204
  var tmp = KProperty1;
115
- return $this.i2o_1.j1m($this, getPropertyCallableRef('disableDetached', 1, tmp, CalculateVersion$_get_disableDetached_$ref_yxb19o_0(), null));
205
+ return $this.k2o_1.k1m($this, getPropertyCallableRef('disableDetached', 1, tmp, CalculateVersion$_get_disableDetached_$ref_yxb19o_0(), null));
116
206
  }
117
207
  function _get_forceSnapshot__vb3h7m($this) {
118
208
  var tmp = KProperty1;
119
- return $this.j2o_1.j1m($this, getPropertyCallableRef('forceSnapshot', 1, tmp, CalculateVersion$_get_forceSnapshot_$ref_8rl68v_0(), null));
209
+ return $this.l2o_1.k1m($this, getPropertyCallableRef('forceSnapshot', 1, tmp, CalculateVersion$_get_forceSnapshot_$ref_8rl68v_0(), null));
120
210
  }
121
211
  function _get_releaseBranch__pqrgbs($this) {
122
212
  var tmp = KProperty1;
123
- return $this.k2o_1.j1m($this, getPropertyCallableRef('releaseBranch', 1, tmp, CalculateVersion$_get_releaseBranch_$ref_3xh47v_0(), null));
213
+ return $this.m2o_1.k1m($this, getPropertyCallableRef('releaseBranch', 1, tmp, CalculateVersion$_get_releaseBranch_$ref_3xh47v_0(), null));
214
+ }
215
+ function _get_formatString__ciw4gt($this) {
216
+ var tmp = KProperty1;
217
+ return $this.n2o_1.k1m($this, getPropertyCallableRef('formatString', 1, tmp, CalculateVersion$_get_formatString_$ref_f69ypw_0(), null));
218
+ }
219
+ function _get_format__qlarck($this) {
220
+ var tmp;
221
+ try {
222
+ tmp = Companion_instance_2.r2n(_get_formatString__ciw4gt($this));
223
+ } catch ($p) {
224
+ var tmp_0;
225
+ if ($p instanceof IllegalArgumentException) {
226
+ var e = $p;
227
+ var tmp0_elvis_lhs = e.message;
228
+ throw new CliktError(tmp0_elvis_lhs == null ? 'Invalid format' : tmp0_elvis_lhs);
229
+ } else {
230
+ throw $p;
231
+ }
232
+ }
233
+ return tmp;
124
234
  }
125
235
  function _get_majorRegex__5j6ypp($this) {
126
236
  var tmp = KProperty1;
127
- return $this.l2o_1.j1m($this, getPropertyCallableRef('majorRegex', 1, tmp, CalculateVersion$_get_majorRegex_$ref_erugf6_0(), null));
237
+ return $this.o2o_1.k1m($this, getPropertyCallableRef('majorRegex', 1, tmp, CalculateVersion$_get_majorRegex_$ref_erugf6_0(), null));
128
238
  }
129
239
  function _get_minorRegex__20z96h($this) {
130
240
  var tmp = KProperty1;
131
- return $this.m2o_1.j1m($this, getPropertyCallableRef('minorRegex', 1, tmp, CalculateVersion$_get_minorRegex_$ref_u1fzja_0(), null));
241
+ return $this.p2o_1.k1m($this, getPropertyCallableRef('minorRegex', 1, tmp, CalculateVersion$_get_minorRegex_$ref_u1fzja_0(), null));
132
242
  }
133
243
  function _get_patchRegex__mtlu2c($this) {
134
244
  var tmp = KProperty1;
135
- return $this.n2o_1.j1m($this, getPropertyCallableRef('patchRegex', 1, tmp, CalculateVersion$_get_patchRegex_$ref_124637_0(), null));
245
+ return $this.q2o_1.k1m($this, getPropertyCallableRef('patchRegex', 1, tmp, CalculateVersion$_get_patchRegex_$ref_124637_0(), null));
136
246
  }
137
247
  function _get_noneRegex__1tdbgi($this) {
138
248
  var tmp = KProperty1;
139
- return $this.o2o_1.j1m($this, getPropertyCallableRef('noneRegex', 1, tmp, CalculateVersion$_get_noneRegex_$ref_vcaxfl_0(), null));
249
+ return $this.r2o_1.k1m($this, getPropertyCallableRef('noneRegex', 1, tmp, CalculateVersion$_get_noneRegex_$ref_vcaxfl_0(), null));
140
250
  }
141
251
  function _get_versionRegex__7su5ss($this) {
142
252
  var tmp = KProperty1;
143
- return $this.p2o_1.j1m($this, getPropertyCallableRef('versionRegex', 1, tmp, CalculateVersion$_get_versionRegex_$ref_f466m5_0(), null));
253
+ return $this.s2o_1.k1m($this, getPropertyCallableRef('versionRegex', 1, tmp, CalculateVersion$_get_versionRegex_$ref_f466m5_0(), null));
144
254
  }
145
255
  function output($this, message, errorMessage) {
146
256
  $this.x1b(message);
@@ -149,6 +259,19 @@
149
259
  $this.x1b(errorMessage, VOID, true);
150
260
  }
151
261
  }
262
+ function outputJson($this, version, snapshotReasons) {
263
+ var isSnapshot = endsWith(version, '-SNAPSHOT');
264
+ // Inline function 'kotlin.collections.map' call
265
+ // Inline function 'kotlin.collections.mapTo' call
266
+ var destination = ArrayList_init_$Create$(collectionSizeOrDefault(snapshotReasons, 10));
267
+ var _iterator__ex2g4s = snapshotReasons.r();
268
+ while (_iterator__ex2g4s.s()) {
269
+ var item = _iterator__ex2g4s.t();
270
+ var tmp$ret$2 = item.toString();
271
+ destination.v(tmp$ret$2);
272
+ }
273
+ $this.x1b(versionSuccessResponse(new VersionData(version, isSnapshot, destination)));
274
+ }
152
275
  function versionRegex($this) {
153
276
  var tmp = Regex_init_$Create$(_get_noneRegex__1tdbgi($this), RegexOption_IGNORE_CASE_getInstance());
154
277
  var tmp_0 = Regex_init_$Create$(_get_patchRegex__mtlu2c($this), RegexOption_IGNORE_CASE_getInstance());
@@ -228,6 +351,16 @@
228
351
  return _get_releaseBranch__pqrgbs(p0);
229
352
  };
230
353
  }
354
+ function CalculateVersion$_get_formatString_$ref_f69ypw() {
355
+ return function (p0) {
356
+ return _get_formatString__ciw4gt(p0);
357
+ };
358
+ }
359
+ function CalculateVersion$_get_formatString_$ref_f69ypw_0() {
360
+ return function (p0) {
361
+ return _get_formatString__ciw4gt(p0);
362
+ };
363
+ }
231
364
  function CalculateVersion$_get_majorRegex_$ref_erugf6() {
232
365
  return function (p0) {
233
366
  return _get_majorRegex__5j6ypp(p0);
@@ -275,7 +408,7 @@
275
408
  // Inline function 'com.github.ajalt.clikt.parameters.options.OptionTransformContext.require' call
276
409
  if (!$tmp4_check_this.co(it)) {
277
410
  var tmp$ret$3 = $message;
278
- $this$copy.s1l(tmp$ret$3);
411
+ $this$copy.t1l(tmp$ret$3);
279
412
  }
280
413
  tmp = Unit_instance;
281
414
  }
@@ -298,57 +431,61 @@
298
431
  var tmp = this;
299
432
  var tmp_0 = optional(argument(this, 'git-repo'));
300
433
  var tmp_1 = KProperty1;
301
- tmp.f2o_1 = tmp_0.p1l(this, getPropertyCallableRef('gitRepoArgument', 1, tmp_1, CalculateVersion$_get_gitRepoArgument_$ref_ekksr7(), null));
434
+ tmp.h2o_1 = tmp_0.q1l(this, getPropertyCallableRef('gitRepoArgument', 1, tmp_1, CalculateVersion$_get_gitRepoArgument_$ref_ekksr7(), null));
302
435
  var tmp_2 = this;
303
436
  var tmp_3 = option(this, ['--git-repo'], VOID, VOID, VOID, 'PWD');
304
437
  var tmp_4 = KProperty1;
305
- tmp_2.g2o_1 = tmp_3.t1m(this, getPropertyCallableRef('gitRepoOption', 1, tmp_4, CalculateVersion$_get_gitRepoOption_$ref_ms8ohh(), null));
438
+ tmp_2.i2o_1 = tmp_3.u1m(this, getPropertyCallableRef('gitRepoOption', 1, tmp_4, CalculateVersion$_get_gitRepoOption_$ref_ms8ohh(), null));
306
439
  var tmp_5 = this;
307
440
  var tmp_6 = default_0(boolean(option(this, [])), true);
308
441
  var tmp_7 = KProperty1;
309
- tmp_5.h2o_1 = tmp_6.t1m(this, getPropertyCallableRef('implicitPatch', 1, tmp_7, CalculateVersion$_get_implicitPatch_$ref_8lm4hh(), null));
442
+ tmp_5.j2o_1 = tmp_6.u1m(this, getPropertyCallableRef('implicitPatch', 1, tmp_7, CalculateVersion$_get_implicitPatch_$ref_8lm4hh(), null));
310
443
  var tmp_8 = this;
311
444
  var tmp_9 = default_0(boolean(option(this, [])), true);
312
445
  var tmp_10 = KProperty1;
313
- tmp_8.i2o_1 = tmp_9.t1m(this, getPropertyCallableRef('disableDetached', 1, tmp_10, CalculateVersion$_get_disableDetached_$ref_yxb19o(), null));
446
+ tmp_8.k2o_1 = tmp_9.u1m(this, getPropertyCallableRef('disableDetached', 1, tmp_10, CalculateVersion$_get_disableDetached_$ref_yxb19o(), null));
314
447
  var tmp_11 = this;
315
448
  var tmp_12 = default_0(boolean(option(this, [])), false);
316
449
  var tmp_13 = KProperty1;
317
- tmp_11.j2o_1 = tmp_12.t1m(this, getPropertyCallableRef('forceSnapshot', 1, tmp_13, CalculateVersion$_get_forceSnapshot_$ref_8rl68v(), null));
450
+ tmp_11.l2o_1 = tmp_12.u1m(this, getPropertyCallableRef('forceSnapshot', 1, tmp_13, CalculateVersion$_get_forceSnapshot_$ref_8rl68v(), null));
318
451
  var tmp_14 = this;
319
452
  var tmp_15 = option(this, []);
320
453
  var tmp_16 = KProperty1;
321
- tmp_14.k2o_1 = tmp_15.t1m(this, getPropertyCallableRef('releaseBranch', 1, tmp_16, CalculateVersion$_get_releaseBranch_$ref_3xh47v(), null));
454
+ tmp_14.m2o_1 = tmp_15.u1m(this, getPropertyCallableRef('releaseBranch', 1, tmp_16, CalculateVersion$_get_releaseBranch_$ref_3xh47v(), null));
322
455
  var tmp_17 = this;
323
- var tmp_18 = default_0(option(this, []), Defaults_getInstance().ao_1.tb_1);
456
+ var tmp_18 = default_0(option(this, ['--format']), 'text');
324
457
  var tmp_19 = KProperty1;
325
- tmp_17.l2o_1 = tmp_18.t1m(this, getPropertyCallableRef('majorRegex', 1, tmp_19, CalculateVersion$_get_majorRegex_$ref_erugf6(), null));
458
+ tmp_17.n2o_1 = tmp_18.u1m(this, getPropertyCallableRef('formatString', 1, tmp_19, CalculateVersion$_get_formatString_$ref_f69ypw(), null));
326
459
  var tmp_20 = this;
327
- var tmp_21 = default_0(option(this, []), Defaults_getInstance().zn_1.tb_1);
460
+ var tmp_21 = default_0(option(this, []), Defaults_getInstance().ao_1.tb_1);
328
461
  var tmp_22 = KProperty1;
329
- tmp_20.m2o_1 = tmp_21.t1m(this, getPropertyCallableRef('minorRegex', 1, tmp_22, CalculateVersion$_get_minorRegex_$ref_u1fzja(), null));
462
+ tmp_20.o2o_1 = tmp_21.u1m(this, getPropertyCallableRef('majorRegex', 1, tmp_22, CalculateVersion$_get_majorRegex_$ref_erugf6(), null));
330
463
  var tmp_23 = this;
331
- var tmp_24 = default_0(option(this, []), Defaults_getInstance().yn_1.tb_1);
464
+ var tmp_24 = default_0(option(this, []), Defaults_getInstance().zn_1.tb_1);
332
465
  var tmp_25 = KProperty1;
333
- tmp_23.n2o_1 = tmp_24.t1m(this, getPropertyCallableRef('patchRegex', 1, tmp_25, CalculateVersion$_get_patchRegex_$ref_124637(), null));
466
+ tmp_23.p2o_1 = tmp_24.u1m(this, getPropertyCallableRef('minorRegex', 1, tmp_25, CalculateVersion$_get_minorRegex_$ref_u1fzja(), null));
334
467
  var tmp_26 = this;
335
- var tmp_27 = default_0(option(this, []), Defaults_getInstance().xn_1.tb_1);
468
+ var tmp_27 = default_0(option(this, []), Defaults_getInstance().yn_1.tb_1);
336
469
  var tmp_28 = KProperty1;
337
- tmp_26.o2o_1 = tmp_27.t1m(this, getPropertyCallableRef('noneRegex', 1, tmp_28, CalculateVersion$_get_noneRegex_$ref_vcaxfl(), null));
470
+ tmp_26.q2o_1 = tmp_27.u1m(this, getPropertyCallableRef('patchRegex', 1, tmp_28, CalculateVersion$_get_patchRegex_$ref_124637(), null));
338
471
  var tmp_29 = this;
472
+ var tmp_30 = default_0(option(this, []), Defaults_getInstance().xn_1.tb_1);
473
+ var tmp_31 = KProperty1;
474
+ tmp_29.r2o_1 = tmp_30.u1m(this, getPropertyCallableRef('noneRegex', 1, tmp_31, CalculateVersion$_get_noneRegex_$ref_vcaxfl(), null));
475
+ var tmp_32 = this;
339
476
  var tmp0 = option(this, []);
340
477
  // Inline function 'com.github.ajalt.clikt.parameters.options.check' call
341
478
  var message = "version regex must include groups named 'major', 'minor', 'patch', and 'none'.";
342
479
  // Inline function 'com.github.ajalt.clikt.parameters.options.check' call
343
480
  // 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));
350
- }
351
- protoOf(CalculateVersion).j1d = function () {
481
+ var tmp_33 = tmp0.l1l();
482
+ var tmp_34 = tmp0.n1m();
483
+ var tmp_35 = tmp0.m1l();
484
+ var tmp_36 = tmp0.o1m(tmp_33, tmp_34, tmp_35, CalculateVersion$versionRegex$delegate$lambda(Companion_instance, message));
485
+ var tmp_37 = KProperty1;
486
+ tmp_32.s2o_1 = tmp_36.u1m(this, getPropertyCallableRef('versionRegex', 1, tmp_37, CalculateVersion$_get_versionRegex_$ref_f466m5(), null));
487
+ }
488
+ protoOf(CalculateVersion).k1d = function () {
352
489
  var tmp = new TaggerCore(new GitAdapter(_get_workingDirectory__eyfbj(this)));
353
490
  var tmp_0 = _get_implicitPatch__bjk4pa(this);
354
491
  var tmp_1 = _get_disableDetached__ys8kbb(this);
@@ -358,15 +495,42 @@
358
495
  // Inline function 'kotlin.run' call
359
496
  var $this$run = calculateNextVersion(tmp, tmp_0, tmp_1, tmp_2, tmp_3, tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs);
360
497
  if ($this$run instanceof Success) {
361
- output(this, $this$run.do_1, $this$run.eo_1);
498
+ switch (_get_format__qlarck(this).y2_1) {
499
+ case 1:
500
+ outputJson(this, $this$run.do_1, $this$run.eo_1);
501
+ break;
502
+ case 0:
503
+ output(this, $this$run.do_1, $this$run.eo_1);
504
+ break;
505
+ default:
506
+ noWhenBranchMatchedException();
507
+ break;
508
+ }
362
509
  } else {
363
- if ($this$run instanceof Failure)
364
- throw new CliktError($this$run.ba());
365
- else {
510
+ if ($this$run instanceof Failure) {
511
+ switch (_get_format__qlarck(this).y2_1) {
512
+ case 1:
513
+ this.x1b(errorResponse($this$run.ba(), 'CONFIGURATION_ERROR'));
514
+ throw new CliktError('', VOID, 1, false);
515
+ case 0:
516
+ throw new CliktError($this$run.ba());
517
+ default:
518
+ noWhenBranchMatchedException();
519
+ break;
520
+ }
521
+ } else {
366
522
  noWhenBranchMatchedException();
367
523
  }
368
524
  }
369
525
  };
526
+ function OutputFormat_TEXT_getInstance() {
527
+ OutputFormat_initEntries();
528
+ return OutputFormat_TEXT_instance;
529
+ }
530
+ function OutputFormat_JSON_getInstance() {
531
+ OutputFormat_initEntries();
532
+ return OutputFormat_JSON_instance;
533
+ }
370
534
  function findInvocations($this, configAsElement, option) {
371
535
  var cursor = configAsElement;
372
536
  var parts_0 = parts($this, option);
@@ -388,12 +552,12 @@
388
552
  var _iterator__ex2g4s_0 = this_0.r();
389
553
  while (_iterator__ex2g4s_0.s()) {
390
554
  var item = _iterator__ex2g4s_0.t();
391
- var tmp$ret$2 = Companion_instance_0.l1r(get_jsonPrimitive(item).n2c());
555
+ var tmp$ret$2 = Companion_instance_0.m1r(get_jsonPrimitive(item).o2c());
392
556
  destination.v(tmp$ret$2);
393
557
  }
394
558
  return destination;
395
559
  }
396
- return Companion_instance_0.k1r(get_jsonPrimitive(cursor).n2c());
560
+ return Companion_instance_0.l1r(get_jsonPrimitive(cursor).o2c());
397
561
  } catch ($p) {
398
562
  if ($p instanceof IllegalArgumentException) {
399
563
  var _unused_var__etf5q3 = $p;
@@ -404,9 +568,9 @@
404
568
  }
405
569
  }
406
570
  function parts($this, $receiver) {
407
- var tmp0_safe_receiver = $receiver.x1d();
571
+ var tmp0_safe_receiver = $receiver.y1d();
408
572
  var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : split(tmp0_safe_receiver, ['.']);
409
- return tmp1_elvis_lhs == null ? listOf(kebabToCamelCase($this, Companion_instance_1.m1r($receiver))) : tmp1_elvis_lhs;
573
+ return tmp1_elvis_lhs == null ? listOf(kebabToCamelCase($this, Companion_instance_1.n1r($receiver))) : tmp1_elvis_lhs;
410
574
  }
411
575
  function kebabToCamelCase($this, $receiver) {
412
576
  // Inline function 'kotlin.text.toRegex' call
@@ -416,7 +580,7 @@
416
580
  return pattern.lc($receiver, transform);
417
581
  }
418
582
  function readConfigFileAsJsonElement($this) {
419
- var pwd = $this.q2o_1('PWD');
583
+ var pwd = $this.t2o_1('PWD');
420
584
  var tmp0_elvis_lhs = readFromFile('' + pwd + '/.tagger');
421
585
  var tmp;
422
586
  if (tmp0_elvis_lhs == null) {
@@ -432,7 +596,7 @@
432
596
  // Inline function 'kotlinx.serialization.internal.cast' call
433
597
  var this_2 = serializer(this_1, createKType(getKClass(TaggerConfig), arrayOf([]), false));
434
598
  var tmp$ret$1 = isInterface(this_2, KSerializer) ? this_2 : THROW_CCE();
435
- var config = this_0.f2a(tmp$ret$1, fileContents);
599
+ var config = this_0.g2a(tmp$ret$1, fileContents);
436
600
  // Inline function 'kotlinx.serialization.json.encodeToJsonElement' call
437
601
  var this_3 = Default_getInstance();
438
602
  // Inline function 'kotlinx.serialization.serializer' call
@@ -440,7 +604,7 @@
440
604
  // Inline function 'kotlinx.serialization.internal.cast' call
441
605
  var this_5 = serializer(this_4, createKType(getKClass(TaggerConfig), arrayOf([]), false));
442
606
  var tmp$ret$4 = isInterface(this_5, KSerializer) ? this_5 : THROW_CCE();
443
- var configAsElement = this_3.g2a(tmp$ret$4, config);
607
+ var configAsElement = this_3.h2a(tmp$ret$4, config);
444
608
  return configAsElement;
445
609
  }
446
610
  function ConfigFileSource$kebabToCamelCase$lambda(it) {
@@ -451,9 +615,9 @@
451
615
  return toString(this_0).toUpperCase();
452
616
  }
453
617
  function ConfigFileSource(envvarReader) {
454
- this.q2o_1 = envvarReader;
618
+ this.t2o_1 = envvarReader;
455
619
  }
456
- protoOf(ConfigFileSource).v1m = function (context, option) {
620
+ protoOf(ConfigFileSource).w1m = function (context, option) {
457
621
  var tmp0_elvis_lhs = readConfigFileAsJsonElement(this);
458
622
  var tmp;
459
623
  if (tmp0_elvis_lhs == null) {
@@ -466,11 +630,11 @@
466
630
  };
467
631
  function _get_file__d6iv67($this) {
468
632
  var tmp = KProperty1;
469
- return $this.g2p_1.j1m($this, getPropertyCallableRef('file', 1, tmp, GenerateSettingsFile$_get_file_$ref_3dvoj2_0(), null));
633
+ return $this.j2p_1.k1m($this, getPropertyCallableRef('file', 1, tmp, GenerateSettingsFile$_get_file_$ref_3dvoj2_0(), null));
470
634
  }
471
635
  function _get_merge__eb7eqv($this) {
472
636
  var tmp = KProperty1;
473
- return $this.h2p_1.j1m($this, getPropertyCallableRef('merge', 1, tmp, GenerateSettingsFile$_get_merge_$ref_3aq3hk_0(), null));
637
+ return $this.k2p_1.k1m($this, getPropertyCallableRef('merge', 1, tmp, GenerateSettingsFile$_get_merge_$ref_3aq3hk_0(), null));
474
638
  }
475
639
  function mergeJson($this, defaultConfig, originalData) {
476
640
  // Inline function 'kotlinx.serialization.json.buildJsonObject' call
@@ -493,9 +657,9 @@
493
657
  } else {
494
658
  tmp = value;
495
659
  }
496
- builder.v2c(key, tmp);
660
+ builder.w2c(key, tmp);
497
661
  }
498
- var mergeData = builder.p2b();
662
+ var mergeData = builder.q2b();
499
663
  return mergeData;
500
664
  }
501
665
  function GenerateSettingsFile$_get_file_$ref_3dvoj2() {
@@ -519,8 +683,8 @@
519
683
  };
520
684
  }
521
685
  function GenerateSettingsFile$run$lambda($this$Json) {
522
- $this$Json.b2b_1 = true;
523
- $this$Json.x2a_1 = true;
686
+ $this$Json.c2b_1 = true;
687
+ $this$Json.y2a_1 = true;
524
688
  return Unit_instance;
525
689
  }
526
690
  function GenerateSettingsFile() {
@@ -528,13 +692,13 @@
528
692
  var tmp = this;
529
693
  var tmp_0 = option(this, []);
530
694
  var tmp_1 = KProperty1;
531
- tmp.g2p_1 = tmp_0.t1m(this, getPropertyCallableRef('file', 1, tmp_1, GenerateSettingsFile$_get_file_$ref_3dvoj2(), null));
695
+ tmp.j2p_1 = tmp_0.u1m(this, getPropertyCallableRef('file', 1, tmp_1, GenerateSettingsFile$_get_file_$ref_3dvoj2(), null));
532
696
  var tmp_2 = this;
533
697
  var tmp_3 = boolean(option(this, []));
534
698
  var tmp_4 = KProperty1;
535
- tmp_2.h2p_1 = tmp_3.t1m(this, getPropertyCallableRef('merge', 1, tmp_4, GenerateSettingsFile$_get_merge_$ref_3aq3hk(), null));
699
+ tmp_2.k2p_1 = tmp_3.u1m(this, getPropertyCallableRef('merge', 1, tmp_4, GenerateSettingsFile$_get_merge_$ref_3aq3hk(), null));
536
700
  }
537
- protoOf(GenerateSettingsFile).j1d = function () {
701
+ protoOf(GenerateSettingsFile).k1d = function () {
538
702
  var prettyJsonFormatter = Json(VOID, GenerateSettingsFile$run$lambda);
539
703
  // Inline function 'kotlinx.serialization.json.encodeToJsonElement' call
540
704
  var value = get_runtimeDefaultConfig();
@@ -543,7 +707,7 @@
543
707
  // Inline function 'kotlinx.serialization.internal.cast' call
544
708
  var this_1 = serializer(this_0, createKType(getKClass(TaggerConfig), arrayOf([]), false));
545
709
  var tmp$ret$1 = isInterface(this_1, KSerializer) ? this_1 : THROW_CCE();
546
- var defaultConfig = prettyJsonFormatter.g2a(tmp$ret$1, value);
710
+ var defaultConfig = prettyJsonFormatter.h2a(tmp$ret$1, value);
547
711
  // Inline function 'kotlin.text.orEmpty' call
548
712
  var tmp0_elvis_lhs = _get_file__d6iv67(this);
549
713
  // Inline function 'kotlin.text.ifBlank' call
@@ -562,7 +726,7 @@
562
726
  if (!(existingFileData == null)) {
563
727
  var tmp_1;
564
728
  if (_get_merge__eb7eqv(this) === true) {
565
- var originalData = prettyJsonFormatter.h2a(existingFileData);
729
+ var originalData = prettyJsonFormatter.i2a(existingFileData);
566
730
  tmp_1 = mergeJson(this, defaultConfig, originalData);
567
731
  } else {
568
732
  throw new CliktError('File already exists.');
@@ -579,7 +743,7 @@
579
743
  // Inline function 'kotlinx.serialization.internal.cast' call
580
744
  var this_4 = serializer(this_3, createKType(getKClass(JsonElement), arrayOf([]), false));
581
745
  var tmp$ret$7 = isInterface(this_4, KSerializer) ? this_4 : THROW_CCE();
582
- var tmp$ret$6 = prettyJsonFormatter.e2a(tmp$ret$7, outputConfig);
746
+ var tmp$ret$6 = prettyJsonFormatter.f2a(tmp$ret$7, outputConfig);
583
747
  this.x1b(tmp$ret$6);
584
748
  } else {
585
749
  // Inline function 'kotlinx.serialization.json.Json.encodeToString' call
@@ -588,11 +752,599 @@
588
752
  // Inline function 'kotlinx.serialization.internal.cast' call
589
753
  var this_6 = serializer(this_5, createKType(getKClass(JsonElement), arrayOf([]), false));
590
754
  var tmp$ret$10 = isInterface(this_6, KSerializer) ? this_6 : THROW_CCE();
591
- var tmp$ret$9 = prettyJsonFormatter.e2a(tmp$ret$10, outputConfig);
755
+ var tmp$ret$9 = prettyJsonFormatter.f2a(tmp$ret$10, outputConfig);
592
756
  writeToFile(tmp$ret$9, settingsFile);
593
757
  this.x1b('Saved to ' + fileName);
594
758
  }
595
759
  };
760
+ function Companion_0() {
761
+ }
762
+ protoOf(Companion_0).q2c = function () {
763
+ return $serializer_getInstance();
764
+ };
765
+ var Companion_instance_3;
766
+ function Companion_getInstance_0() {
767
+ return Companion_instance_3;
768
+ }
769
+ function $serializer() {
770
+ $serializer_instance = this;
771
+ var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.zegreatrob.tools.tagger.cli.VersionSuccessResponse', this, 2);
772
+ tmp0_serialDesc.my('status', false);
773
+ tmp0_serialDesc.my('data', false);
774
+ this.l2p_1 = tmp0_serialDesc;
775
+ }
776
+ protoOf($serializer).m2p = function (encoder, value) {
777
+ var tmp0_desc = this.l2p_1;
778
+ var tmp1_output = encoder.dr(tmp0_desc);
779
+ tmp1_output.rs(tmp0_desc, 0, value.n2p_1);
780
+ tmp1_output.ts(tmp0_desc, 1, $serializer_getInstance_0(), value.o2p_1);
781
+ tmp1_output.er(tmp0_desc);
782
+ };
783
+ protoOf($serializer).ho = function (encoder, value) {
784
+ return this.m2p(encoder, value instanceof VersionSuccessResponse ? value : THROW_CCE());
785
+ };
786
+ protoOf($serializer).io = function (decoder) {
787
+ var tmp0_desc = this.l2p_1;
788
+ var tmp1_flag = true;
789
+ var tmp2_index = 0;
790
+ var tmp3_bitMask0 = 0;
791
+ var tmp4_local0 = null;
792
+ var tmp5_local1 = null;
793
+ var tmp6_input = decoder.dr(tmp0_desc);
794
+ if (tmp6_input.tr()) {
795
+ tmp4_local0 = tmp6_input.nr(tmp0_desc, 0);
796
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
797
+ tmp5_local1 = tmp6_input.pr(tmp0_desc, 1, $serializer_getInstance_0(), tmp5_local1);
798
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
799
+ } else
800
+ while (tmp1_flag) {
801
+ tmp2_index = tmp6_input.ur(tmp0_desc);
802
+ switch (tmp2_index) {
803
+ case -1:
804
+ tmp1_flag = false;
805
+ break;
806
+ case 0:
807
+ tmp4_local0 = tmp6_input.nr(tmp0_desc, 0);
808
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
809
+ break;
810
+ case 1:
811
+ tmp5_local1 = tmp6_input.pr(tmp0_desc, 1, $serializer_getInstance_0(), tmp5_local1);
812
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
813
+ break;
814
+ default:
815
+ throw UnknownFieldException_init_$Create$(tmp2_index);
816
+ }
817
+ }
818
+ tmp6_input.er(tmp0_desc);
819
+ return VersionSuccessResponse_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
820
+ };
821
+ protoOf($serializer).go = function () {
822
+ return this.l2p_1;
823
+ };
824
+ protoOf($serializer).oy = function () {
825
+ // Inline function 'kotlin.arrayOf' call
826
+ // Inline function 'kotlin.js.unsafeCast' call
827
+ // Inline function 'kotlin.js.asDynamic' call
828
+ return [StringSerializer_getInstance(), $serializer_getInstance_0()];
829
+ };
830
+ var $serializer_instance;
831
+ function $serializer_getInstance() {
832
+ if ($serializer_instance == null)
833
+ new $serializer();
834
+ return $serializer_instance;
835
+ }
836
+ function VersionSuccessResponse_init_$Init$(seen0, status, data, serializationConstructorMarker, $this) {
837
+ if (!(3 === (3 & seen0))) {
838
+ throwMissingFieldException(seen0, 3, $serializer_getInstance().l2p_1);
839
+ }
840
+ $this.n2p_1 = status;
841
+ $this.o2p_1 = data;
842
+ return $this;
843
+ }
844
+ function VersionSuccessResponse_init_$Create$(seen0, status, data, serializationConstructorMarker) {
845
+ return VersionSuccessResponse_init_$Init$(seen0, status, data, serializationConstructorMarker, objectCreate(protoOf(VersionSuccessResponse)));
846
+ }
847
+ function VersionSuccessResponse(status, data) {
848
+ this.n2p_1 = status;
849
+ this.o2p_1 = data;
850
+ }
851
+ protoOf(VersionSuccessResponse).toString = function () {
852
+ return 'VersionSuccessResponse(status=' + this.n2p_1 + ', data=' + this.o2p_1.toString() + ')';
853
+ };
854
+ protoOf(VersionSuccessResponse).hashCode = function () {
855
+ var result = getStringHashCode(this.n2p_1);
856
+ result = imul(result, 31) + this.o2p_1.hashCode() | 0;
857
+ return result;
858
+ };
859
+ protoOf(VersionSuccessResponse).equals = function (other) {
860
+ if (this === other)
861
+ return true;
862
+ if (!(other instanceof VersionSuccessResponse))
863
+ return false;
864
+ if (!(this.n2p_1 === other.n2p_1))
865
+ return false;
866
+ if (!this.o2p_1.equals(other.o2p_1))
867
+ return false;
868
+ return true;
869
+ };
870
+ function VersionData$Companion$$childSerializers$_anonymous__gd9ivc() {
871
+ return new ArrayListSerializer(StringSerializer_getInstance());
872
+ }
873
+ function Companion_1() {
874
+ Companion_instance_4 = this;
875
+ var tmp = this;
876
+ var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
877
+ // Inline function 'kotlin.arrayOf' call
878
+ // Inline function 'kotlin.js.unsafeCast' call
879
+ // Inline function 'kotlin.js.asDynamic' call
880
+ tmp.p2p_1 = [null, null, lazy(tmp_0, VersionData$Companion$$childSerializers$_anonymous__gd9ivc)];
881
+ }
882
+ var Companion_instance_4;
883
+ function Companion_getInstance_1() {
884
+ if (Companion_instance_4 == null)
885
+ new Companion_1();
886
+ return Companion_instance_4;
887
+ }
888
+ function $serializer_0() {
889
+ $serializer_instance_0 = this;
890
+ var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.zegreatrob.tools.tagger.cli.VersionData', this, 3);
891
+ tmp0_serialDesc.my('version', false);
892
+ tmp0_serialDesc.my('snapshot', false);
893
+ tmp0_serialDesc.my('snapshotReasons', true);
894
+ this.q2p_1 = tmp0_serialDesc;
895
+ }
896
+ protoOf($serializer_0).r2p = function (encoder, value) {
897
+ var tmp0_desc = this.q2p_1;
898
+ var tmp1_output = encoder.dr(tmp0_desc);
899
+ var tmp2_cached = Companion_getInstance_1().p2p_1;
900
+ tmp1_output.rs(tmp0_desc, 0, value.s2p_1);
901
+ tmp1_output.js(tmp0_desc, 1, value.t2p_1);
902
+ if (tmp1_output.zs(tmp0_desc, 2) ? true : !equals(value.u2p_1, emptyList())) {
903
+ tmp1_output.ts(tmp0_desc, 2, tmp2_cached[2].m1(), value.u2p_1);
904
+ }
905
+ tmp1_output.er(tmp0_desc);
906
+ };
907
+ protoOf($serializer_0).ho = function (encoder, value) {
908
+ return this.r2p(encoder, value instanceof VersionData ? value : THROW_CCE());
909
+ };
910
+ protoOf($serializer_0).io = function (decoder) {
911
+ var tmp0_desc = this.q2p_1;
912
+ var tmp1_flag = true;
913
+ var tmp2_index = 0;
914
+ var tmp3_bitMask0 = 0;
915
+ var tmp4_local0 = null;
916
+ var tmp5_local1 = false;
917
+ var tmp6_local2 = null;
918
+ var tmp7_input = decoder.dr(tmp0_desc);
919
+ var tmp8_cached = Companion_getInstance_1().p2p_1;
920
+ if (tmp7_input.tr()) {
921
+ tmp4_local0 = tmp7_input.nr(tmp0_desc, 0);
922
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
923
+ tmp5_local1 = tmp7_input.fr(tmp0_desc, 1);
924
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
925
+ tmp6_local2 = tmp7_input.pr(tmp0_desc, 2, tmp8_cached[2].m1(), tmp6_local2);
926
+ tmp3_bitMask0 = tmp3_bitMask0 | 4;
927
+ } else
928
+ while (tmp1_flag) {
929
+ tmp2_index = tmp7_input.ur(tmp0_desc);
930
+ switch (tmp2_index) {
931
+ case -1:
932
+ tmp1_flag = false;
933
+ break;
934
+ case 0:
935
+ tmp4_local0 = tmp7_input.nr(tmp0_desc, 0);
936
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
937
+ break;
938
+ case 1:
939
+ tmp5_local1 = tmp7_input.fr(tmp0_desc, 1);
940
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
941
+ break;
942
+ case 2:
943
+ tmp6_local2 = tmp7_input.pr(tmp0_desc, 2, tmp8_cached[2].m1(), tmp6_local2);
944
+ tmp3_bitMask0 = tmp3_bitMask0 | 4;
945
+ break;
946
+ default:
947
+ throw UnknownFieldException_init_$Create$(tmp2_index);
948
+ }
949
+ }
950
+ tmp7_input.er(tmp0_desc);
951
+ return VersionData_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
952
+ };
953
+ protoOf($serializer_0).go = function () {
954
+ return this.q2p_1;
955
+ };
956
+ protoOf($serializer_0).oy = function () {
957
+ var tmp0_cached = Companion_getInstance_1().p2p_1;
958
+ // Inline function 'kotlin.arrayOf' call
959
+ // Inline function 'kotlin.js.unsafeCast' call
960
+ // Inline function 'kotlin.js.asDynamic' call
961
+ return [StringSerializer_getInstance(), BooleanSerializer_getInstance(), tmp0_cached[2].m1()];
962
+ };
963
+ var $serializer_instance_0;
964
+ function $serializer_getInstance_0() {
965
+ if ($serializer_instance_0 == null)
966
+ new $serializer_0();
967
+ return $serializer_instance_0;
968
+ }
969
+ function VersionData_init_$Init$(seen0, version, snapshot, snapshotReasons, serializationConstructorMarker, $this) {
970
+ if (!(3 === (3 & seen0))) {
971
+ throwMissingFieldException(seen0, 3, $serializer_getInstance_0().q2p_1);
972
+ }
973
+ $this.s2p_1 = version;
974
+ $this.t2p_1 = snapshot;
975
+ if (0 === (seen0 & 4))
976
+ $this.u2p_1 = emptyList();
977
+ else
978
+ $this.u2p_1 = snapshotReasons;
979
+ return $this;
980
+ }
981
+ function VersionData_init_$Create$(seen0, version, snapshot, snapshotReasons, serializationConstructorMarker) {
982
+ return VersionData_init_$Init$(seen0, version, snapshot, snapshotReasons, serializationConstructorMarker, objectCreate(protoOf(VersionData)));
983
+ }
984
+ function VersionData(version, snapshot, snapshotReasons) {
985
+ Companion_getInstance_1();
986
+ snapshotReasons = snapshotReasons === VOID ? emptyList() : snapshotReasons;
987
+ this.s2p_1 = version;
988
+ this.t2p_1 = snapshot;
989
+ this.u2p_1 = snapshotReasons;
990
+ }
991
+ protoOf(VersionData).toString = function () {
992
+ return 'VersionData(version=' + this.s2p_1 + ', snapshot=' + this.t2p_1 + ', snapshotReasons=' + toString_0(this.u2p_1) + ')';
993
+ };
994
+ protoOf(VersionData).hashCode = function () {
995
+ var result = getStringHashCode(this.s2p_1);
996
+ result = imul(result, 31) + getBooleanHashCode(this.t2p_1) | 0;
997
+ result = imul(result, 31) + hashCode(this.u2p_1) | 0;
998
+ return result;
999
+ };
1000
+ protoOf(VersionData).equals = function (other) {
1001
+ if (this === other)
1002
+ return true;
1003
+ if (!(other instanceof VersionData))
1004
+ return false;
1005
+ if (!(this.s2p_1 === other.s2p_1))
1006
+ return false;
1007
+ if (!(this.t2p_1 === other.t2p_1))
1008
+ return false;
1009
+ if (!equals(this.u2p_1, other.u2p_1))
1010
+ return false;
1011
+ return true;
1012
+ };
1013
+ function Companion_2() {
1014
+ }
1015
+ protoOf(Companion_2).q2c = function () {
1016
+ return $serializer_getInstance_1();
1017
+ };
1018
+ var Companion_instance_5;
1019
+ function Companion_getInstance_2() {
1020
+ return Companion_instance_5;
1021
+ }
1022
+ function $serializer_1() {
1023
+ $serializer_instance_1 = this;
1024
+ var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.zegreatrob.tools.tagger.cli.ErrorResponse', this, 3);
1025
+ tmp0_serialDesc.my('status', false);
1026
+ tmp0_serialDesc.my('error', false);
1027
+ tmp0_serialDesc.my('code', false);
1028
+ this.v2p_1 = tmp0_serialDesc;
1029
+ }
1030
+ protoOf($serializer_1).w2p = function (encoder, value) {
1031
+ var tmp0_desc = this.v2p_1;
1032
+ var tmp1_output = encoder.dr(tmp0_desc);
1033
+ tmp1_output.rs(tmp0_desc, 0, value.x2p_1);
1034
+ tmp1_output.rs(tmp0_desc, 1, value.y2p_1);
1035
+ tmp1_output.rs(tmp0_desc, 2, value.z2p_1);
1036
+ tmp1_output.er(tmp0_desc);
1037
+ };
1038
+ protoOf($serializer_1).ho = function (encoder, value) {
1039
+ return this.w2p(encoder, value instanceof ErrorResponse ? value : THROW_CCE());
1040
+ };
1041
+ protoOf($serializer_1).io = function (decoder) {
1042
+ var tmp0_desc = this.v2p_1;
1043
+ var tmp1_flag = true;
1044
+ var tmp2_index = 0;
1045
+ var tmp3_bitMask0 = 0;
1046
+ var tmp4_local0 = null;
1047
+ var tmp5_local1 = null;
1048
+ var tmp6_local2 = null;
1049
+ var tmp7_input = decoder.dr(tmp0_desc);
1050
+ if (tmp7_input.tr()) {
1051
+ tmp4_local0 = tmp7_input.nr(tmp0_desc, 0);
1052
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
1053
+ tmp5_local1 = tmp7_input.nr(tmp0_desc, 1);
1054
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
1055
+ tmp6_local2 = tmp7_input.nr(tmp0_desc, 2);
1056
+ tmp3_bitMask0 = tmp3_bitMask0 | 4;
1057
+ } else
1058
+ while (tmp1_flag) {
1059
+ tmp2_index = tmp7_input.ur(tmp0_desc);
1060
+ switch (tmp2_index) {
1061
+ case -1:
1062
+ tmp1_flag = false;
1063
+ break;
1064
+ case 0:
1065
+ tmp4_local0 = tmp7_input.nr(tmp0_desc, 0);
1066
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
1067
+ break;
1068
+ case 1:
1069
+ tmp5_local1 = tmp7_input.nr(tmp0_desc, 1);
1070
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
1071
+ break;
1072
+ case 2:
1073
+ tmp6_local2 = tmp7_input.nr(tmp0_desc, 2);
1074
+ tmp3_bitMask0 = tmp3_bitMask0 | 4;
1075
+ break;
1076
+ default:
1077
+ throw UnknownFieldException_init_$Create$(tmp2_index);
1078
+ }
1079
+ }
1080
+ tmp7_input.er(tmp0_desc);
1081
+ return ErrorResponse_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
1082
+ };
1083
+ protoOf($serializer_1).go = function () {
1084
+ return this.v2p_1;
1085
+ };
1086
+ protoOf($serializer_1).oy = function () {
1087
+ // Inline function 'kotlin.arrayOf' call
1088
+ // Inline function 'kotlin.js.unsafeCast' call
1089
+ // Inline function 'kotlin.js.asDynamic' call
1090
+ return [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()];
1091
+ };
1092
+ var $serializer_instance_1;
1093
+ function $serializer_getInstance_1() {
1094
+ if ($serializer_instance_1 == null)
1095
+ new $serializer_1();
1096
+ return $serializer_instance_1;
1097
+ }
1098
+ function ErrorResponse_init_$Init$(seen0, status, error, code, serializationConstructorMarker, $this) {
1099
+ if (!(7 === (7 & seen0))) {
1100
+ throwMissingFieldException(seen0, 7, $serializer_getInstance_1().v2p_1);
1101
+ }
1102
+ $this.x2p_1 = status;
1103
+ $this.y2p_1 = error;
1104
+ $this.z2p_1 = code;
1105
+ return $this;
1106
+ }
1107
+ function ErrorResponse_init_$Create$(seen0, status, error, code, serializationConstructorMarker) {
1108
+ return ErrorResponse_init_$Init$(seen0, status, error, code, serializationConstructorMarker, objectCreate(protoOf(ErrorResponse)));
1109
+ }
1110
+ function ErrorResponse(status, error, code) {
1111
+ this.x2p_1 = status;
1112
+ this.y2p_1 = error;
1113
+ this.z2p_1 = code;
1114
+ }
1115
+ protoOf(ErrorResponse).toString = function () {
1116
+ return 'ErrorResponse(status=' + this.x2p_1 + ', error=' + this.y2p_1 + ', code=' + this.z2p_1 + ')';
1117
+ };
1118
+ protoOf(ErrorResponse).hashCode = function () {
1119
+ var result = getStringHashCode(this.x2p_1);
1120
+ result = imul(result, 31) + getStringHashCode(this.y2p_1) | 0;
1121
+ result = imul(result, 31) + getStringHashCode(this.z2p_1) | 0;
1122
+ return result;
1123
+ };
1124
+ protoOf(ErrorResponse).equals = function (other) {
1125
+ if (this === other)
1126
+ return true;
1127
+ if (!(other instanceof ErrorResponse))
1128
+ return false;
1129
+ if (!(this.x2p_1 === other.x2p_1))
1130
+ return false;
1131
+ if (!(this.y2p_1 === other.y2p_1))
1132
+ return false;
1133
+ if (!(this.z2p_1 === other.z2p_1))
1134
+ return false;
1135
+ return true;
1136
+ };
1137
+ function Companion_3() {
1138
+ }
1139
+ protoOf(Companion_3).q2c = function () {
1140
+ return $serializer_getInstance_2();
1141
+ };
1142
+ var Companion_instance_6;
1143
+ function Companion_getInstance_3() {
1144
+ return Companion_instance_6;
1145
+ }
1146
+ function $serializer_2() {
1147
+ $serializer_instance_2 = this;
1148
+ var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.zegreatrob.tools.tagger.cli.TagSuccessResponse', this, 2);
1149
+ tmp0_serialDesc.my('status', false);
1150
+ tmp0_serialDesc.my('data', false);
1151
+ this.a2q_1 = tmp0_serialDesc;
1152
+ }
1153
+ protoOf($serializer_2).b2q = function (encoder, value) {
1154
+ var tmp0_desc = this.a2q_1;
1155
+ var tmp1_output = encoder.dr(tmp0_desc);
1156
+ tmp1_output.rs(tmp0_desc, 0, value.c2q_1);
1157
+ tmp1_output.ts(tmp0_desc, 1, $serializer_getInstance_3(), value.d2q_1);
1158
+ tmp1_output.er(tmp0_desc);
1159
+ };
1160
+ protoOf($serializer_2).ho = function (encoder, value) {
1161
+ return this.b2q(encoder, value instanceof TagSuccessResponse ? value : THROW_CCE());
1162
+ };
1163
+ protoOf($serializer_2).io = function (decoder) {
1164
+ var tmp0_desc = this.a2q_1;
1165
+ var tmp1_flag = true;
1166
+ var tmp2_index = 0;
1167
+ var tmp3_bitMask0 = 0;
1168
+ var tmp4_local0 = null;
1169
+ var tmp5_local1 = null;
1170
+ var tmp6_input = decoder.dr(tmp0_desc);
1171
+ if (tmp6_input.tr()) {
1172
+ tmp4_local0 = tmp6_input.nr(tmp0_desc, 0);
1173
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
1174
+ tmp5_local1 = tmp6_input.pr(tmp0_desc, 1, $serializer_getInstance_3(), tmp5_local1);
1175
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
1176
+ } else
1177
+ while (tmp1_flag) {
1178
+ tmp2_index = tmp6_input.ur(tmp0_desc);
1179
+ switch (tmp2_index) {
1180
+ case -1:
1181
+ tmp1_flag = false;
1182
+ break;
1183
+ case 0:
1184
+ tmp4_local0 = tmp6_input.nr(tmp0_desc, 0);
1185
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
1186
+ break;
1187
+ case 1:
1188
+ tmp5_local1 = tmp6_input.pr(tmp0_desc, 1, $serializer_getInstance_3(), tmp5_local1);
1189
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
1190
+ break;
1191
+ default:
1192
+ throw UnknownFieldException_init_$Create$(tmp2_index);
1193
+ }
1194
+ }
1195
+ tmp6_input.er(tmp0_desc);
1196
+ return TagSuccessResponse_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
1197
+ };
1198
+ protoOf($serializer_2).go = function () {
1199
+ return this.a2q_1;
1200
+ };
1201
+ protoOf($serializer_2).oy = function () {
1202
+ // Inline function 'kotlin.arrayOf' call
1203
+ // Inline function 'kotlin.js.unsafeCast' call
1204
+ // Inline function 'kotlin.js.asDynamic' call
1205
+ return [StringSerializer_getInstance(), $serializer_getInstance_3()];
1206
+ };
1207
+ var $serializer_instance_2;
1208
+ function $serializer_getInstance_2() {
1209
+ if ($serializer_instance_2 == null)
1210
+ new $serializer_2();
1211
+ return $serializer_instance_2;
1212
+ }
1213
+ function TagSuccessResponse_init_$Init$(seen0, status, data, serializationConstructorMarker, $this) {
1214
+ if (!(3 === (3 & seen0))) {
1215
+ throwMissingFieldException(seen0, 3, $serializer_getInstance_2().a2q_1);
1216
+ }
1217
+ $this.c2q_1 = status;
1218
+ $this.d2q_1 = data;
1219
+ return $this;
1220
+ }
1221
+ function TagSuccessResponse_init_$Create$(seen0, status, data, serializationConstructorMarker) {
1222
+ return TagSuccessResponse_init_$Init$(seen0, status, data, serializationConstructorMarker, objectCreate(protoOf(TagSuccessResponse)));
1223
+ }
1224
+ function TagSuccessResponse(status, data) {
1225
+ this.c2q_1 = status;
1226
+ this.d2q_1 = data;
1227
+ }
1228
+ protoOf(TagSuccessResponse).toString = function () {
1229
+ return 'TagSuccessResponse(status=' + this.c2q_1 + ', data=' + this.d2q_1.toString() + ')';
1230
+ };
1231
+ protoOf(TagSuccessResponse).hashCode = function () {
1232
+ var result = getStringHashCode(this.c2q_1);
1233
+ result = imul(result, 31) + this.d2q_1.hashCode() | 0;
1234
+ return result;
1235
+ };
1236
+ protoOf(TagSuccessResponse).equals = function (other) {
1237
+ if (this === other)
1238
+ return true;
1239
+ if (!(other instanceof TagSuccessResponse))
1240
+ return false;
1241
+ if (!(this.c2q_1 === other.c2q_1))
1242
+ return false;
1243
+ if (!this.d2q_1.equals(other.d2q_1))
1244
+ return false;
1245
+ return true;
1246
+ };
1247
+ function Companion_4() {
1248
+ }
1249
+ var Companion_instance_7;
1250
+ function Companion_getInstance_4() {
1251
+ return Companion_instance_7;
1252
+ }
1253
+ function $serializer_3() {
1254
+ $serializer_instance_3 = this;
1255
+ var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.zegreatrob.tools.tagger.cli.TagData', this, 1);
1256
+ tmp0_serialDesc.my('tag', false);
1257
+ this.e2q_1 = tmp0_serialDesc;
1258
+ }
1259
+ protoOf($serializer_3).f2q = function (encoder, value) {
1260
+ var tmp0_desc = this.e2q_1;
1261
+ var tmp1_output = encoder.dr(tmp0_desc);
1262
+ tmp1_output.rs(tmp0_desc, 0, value.g2q_1);
1263
+ tmp1_output.er(tmp0_desc);
1264
+ };
1265
+ protoOf($serializer_3).ho = function (encoder, value) {
1266
+ return this.f2q(encoder, value instanceof TagData ? value : THROW_CCE());
1267
+ };
1268
+ protoOf($serializer_3).io = function (decoder) {
1269
+ var tmp0_desc = this.e2q_1;
1270
+ var tmp1_flag = true;
1271
+ var tmp2_index = 0;
1272
+ var tmp3_bitMask0 = 0;
1273
+ var tmp4_local0 = null;
1274
+ var tmp5_input = decoder.dr(tmp0_desc);
1275
+ if (tmp5_input.tr()) {
1276
+ tmp4_local0 = tmp5_input.nr(tmp0_desc, 0);
1277
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
1278
+ } else
1279
+ while (tmp1_flag) {
1280
+ tmp2_index = tmp5_input.ur(tmp0_desc);
1281
+ switch (tmp2_index) {
1282
+ case -1:
1283
+ tmp1_flag = false;
1284
+ break;
1285
+ case 0:
1286
+ tmp4_local0 = tmp5_input.nr(tmp0_desc, 0);
1287
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
1288
+ break;
1289
+ default:
1290
+ throw UnknownFieldException_init_$Create$(tmp2_index);
1291
+ }
1292
+ }
1293
+ tmp5_input.er(tmp0_desc);
1294
+ return TagData_init_$Create$(tmp3_bitMask0, tmp4_local0, null);
1295
+ };
1296
+ protoOf($serializer_3).go = function () {
1297
+ return this.e2q_1;
1298
+ };
1299
+ protoOf($serializer_3).oy = function () {
1300
+ // Inline function 'kotlin.arrayOf' call
1301
+ // Inline function 'kotlin.js.unsafeCast' call
1302
+ // Inline function 'kotlin.js.asDynamic' call
1303
+ return [StringSerializer_getInstance()];
1304
+ };
1305
+ var $serializer_instance_3;
1306
+ function $serializer_getInstance_3() {
1307
+ if ($serializer_instance_3 == null)
1308
+ new $serializer_3();
1309
+ return $serializer_instance_3;
1310
+ }
1311
+ function TagData_init_$Init$(seen0, tag, serializationConstructorMarker, $this) {
1312
+ if (!(1 === (1 & seen0))) {
1313
+ throwMissingFieldException(seen0, 1, $serializer_getInstance_3().e2q_1);
1314
+ }
1315
+ $this.g2q_1 = tag;
1316
+ return $this;
1317
+ }
1318
+ function TagData_init_$Create$(seen0, tag, serializationConstructorMarker) {
1319
+ return TagData_init_$Init$(seen0, tag, serializationConstructorMarker, objectCreate(protoOf(TagData)));
1320
+ }
1321
+ function TagData(tag) {
1322
+ this.g2q_1 = tag;
1323
+ }
1324
+ protoOf(TagData).toString = function () {
1325
+ return 'TagData(tag=' + this.g2q_1 + ')';
1326
+ };
1327
+ protoOf(TagData).hashCode = function () {
1328
+ return getStringHashCode(this.g2q_1);
1329
+ };
1330
+ protoOf(TagData).equals = function (other) {
1331
+ if (this === other)
1332
+ return true;
1333
+ if (!(other instanceof TagData))
1334
+ return false;
1335
+ if (!(this.g2q_1 === other.g2q_1))
1336
+ return false;
1337
+ return true;
1338
+ };
1339
+ function versionSuccessResponse(data) {
1340
+ return Default_getInstance().f2a(Companion_instance_3.q2c(), new VersionSuccessResponse('success', data));
1341
+ }
1342
+ function tagSuccessResponse(data) {
1343
+ return Default_getInstance().f2a(Companion_instance_6.q2c(), new TagSuccessResponse('success', data));
1344
+ }
1345
+ function errorResponse(message, code) {
1346
+ return Default_getInstance().f2a(Companion_instance_5.q2c(), new ErrorResponse('error', message, code));
1347
+ }
596
1348
  function main_0(args) {
597
1349
  return main(cli(), platformArgCorrection(args));
598
1350
  }
@@ -604,11 +1356,11 @@
604
1356
  }
605
1357
  function _get_gitRepoArgument__zxde8_0($this) {
606
1358
  var tmp = KProperty1;
607
- return $this.x2p_1.j1m($this, getPropertyCallableRef('gitRepoArgument', 1, tmp, Tag$_get_gitRepoArgument_$ref_dketaj_0(), null));
1359
+ return $this.w2q_1.k1m($this, getPropertyCallableRef('gitRepoArgument', 1, tmp, Tag$_get_gitRepoArgument_$ref_dketaj_0(), null));
608
1360
  }
609
1361
  function _get_gitRepoOption__rk7ta0_0($this) {
610
1362
  var tmp = KProperty1;
611
- return $this.y2p_1.j1m($this, getPropertyCallableRef('gitRepoOption', 1, tmp, Tag$_get_gitRepoOption_$ref_10iywz_0(), null));
1363
+ return $this.x2q_1.k1m($this, getPropertyCallableRef('gitRepoOption', 1, tmp, Tag$_get_gitRepoOption_$ref_10iywz_0(), null));
612
1364
  }
613
1365
  function _get_workingDirectory__eyfbj_0($this) {
614
1366
  var tmp0_elvis_lhs = _get_gitRepoArgument__zxde8_0($this);
@@ -623,23 +1375,43 @@
623
1375
  }
624
1376
  function _get_releaseBranch__pqrgbs_0($this) {
625
1377
  var tmp = KProperty1;
626
- return $this.z2p_1.j1m($this, getPropertyCallableRef('releaseBranch', 1, tmp, Tag$_get_releaseBranch_$ref_rq8rmb_0(), null));
1378
+ return $this.y2q_1.k1m($this, getPropertyCallableRef('releaseBranch', 1, tmp, Tag$_get_releaseBranch_$ref_rq8rmb_0(), null));
627
1379
  }
628
1380
  function _get_version__2bx7w9($this) {
629
1381
  var tmp = KProperty1;
630
- return $this.a2q_1.j1m($this, getPropertyCallableRef('version', 1, tmp, Tag$_get_version_$ref_p7wb9e_0(), null));
1382
+ return $this.z2q_1.k1m($this, getPropertyCallableRef('version', 1, tmp, Tag$_get_version_$ref_p7wb9e_0(), null));
631
1383
  }
632
1384
  function _get_userName__tupjmd($this) {
633
1385
  var tmp = KProperty1;
634
- return $this.b2q_1.j1m($this, getPropertyCallableRef('userName', 1, tmp, Tag$_get_userName_$ref_kslo5u_0(), null));
1386
+ return $this.a2r_1.k1m($this, getPropertyCallableRef('userName', 1, tmp, Tag$_get_userName_$ref_kslo5u_0(), null));
635
1387
  }
636
1388
  function _get_userEmail__21hfkw($this) {
637
1389
  var tmp = KProperty1;
638
- return $this.c2q_1.j1m($this, getPropertyCallableRef('userEmail', 1, tmp, Tag$_get_userEmail_$ref_vl09cr_0(), null));
1390
+ return $this.b2r_1.k1m($this, getPropertyCallableRef('userEmail', 1, tmp, Tag$_get_userEmail_$ref_vl09cr_0(), null));
639
1391
  }
640
1392
  function _get_warningsAsErrors__7mpwfd($this) {
641
1393
  var tmp = KProperty1;
642
- return $this.d2q_1.j1m($this, getPropertyCallableRef('warningsAsErrors', 1, tmp, Tag$_get_warningsAsErrors_$ref_gj8a6o_0(), null));
1394
+ return $this.c2r_1.k1m($this, getPropertyCallableRef('warningsAsErrors', 1, tmp, Tag$_get_warningsAsErrors_$ref_gj8a6o_0(), null));
1395
+ }
1396
+ function _get_formatString__ciw4gt_0($this) {
1397
+ var tmp = KProperty1;
1398
+ return $this.d2r_1.k1m($this, getPropertyCallableRef('formatString', 1, tmp, Tag$_get_formatString_$ref_izm3wc_0(), null));
1399
+ }
1400
+ function _get_format__qlarck_0($this) {
1401
+ var tmp;
1402
+ try {
1403
+ tmp = Companion_instance_2.r2n(_get_formatString__ciw4gt_0($this));
1404
+ } catch ($p) {
1405
+ var tmp_0;
1406
+ if ($p instanceof IllegalArgumentException) {
1407
+ var e = $p;
1408
+ var tmp0_elvis_lhs = e.message;
1409
+ throw new CliktError(tmp0_elvis_lhs == null ? 'Invalid format' : tmp0_elvis_lhs);
1410
+ } else {
1411
+ throw $p;
1412
+ }
1413
+ }
1414
+ return tmp;
643
1415
  }
644
1416
  function Tag$lambda($this$context) {
645
1417
  $this$context.r1c([new ConfigFileSource($this$context.n1c_1)]);
@@ -715,58 +1487,94 @@
715
1487
  return _get_warningsAsErrors__7mpwfd(p0);
716
1488
  };
717
1489
  }
1490
+ function Tag$_get_formatString_$ref_izm3wc() {
1491
+ return function (p0) {
1492
+ return _get_formatString__ciw4gt_0(p0);
1493
+ };
1494
+ }
1495
+ function Tag$_get_formatString_$ref_izm3wc_0() {
1496
+ return function (p0) {
1497
+ return _get_formatString__ciw4gt_0(p0);
1498
+ };
1499
+ }
718
1500
  function Tag() {
719
1501
  CliktCommand.call(this);
720
1502
  context(this, Tag$lambda);
721
1503
  var tmp = this;
722
1504
  var tmp_0 = optional(argument(this, 'git-repo'));
723
1505
  var tmp_1 = KProperty1;
724
- tmp.x2p_1 = tmp_0.p1l(this, getPropertyCallableRef('gitRepoArgument', 1, tmp_1, Tag$_get_gitRepoArgument_$ref_dketaj(), null));
1506
+ tmp.w2q_1 = tmp_0.q1l(this, getPropertyCallableRef('gitRepoArgument', 1, tmp_1, Tag$_get_gitRepoArgument_$ref_dketaj(), null));
725
1507
  var tmp_2 = this;
726
1508
  var tmp_3 = option(this, ['--git-repo'], VOID, VOID, VOID, 'PWD');
727
1509
  var tmp_4 = KProperty1;
728
- tmp_2.y2p_1 = tmp_3.t1m(this, getPropertyCallableRef('gitRepoOption', 1, tmp_4, Tag$_get_gitRepoOption_$ref_10iywz(), null));
1510
+ tmp_2.x2q_1 = tmp_3.u1m(this, getPropertyCallableRef('gitRepoOption', 1, tmp_4, Tag$_get_gitRepoOption_$ref_10iywz(), null));
729
1511
  var tmp_5 = this;
730
1512
  var tmp_6 = required(option(this, []));
731
1513
  var tmp_7 = KProperty1;
732
- tmp_5.z2p_1 = tmp_6.t1m(this, getPropertyCallableRef('releaseBranch', 1, tmp_7, Tag$_get_releaseBranch_$ref_rq8rmb(), null));
1514
+ tmp_5.y2q_1 = tmp_6.u1m(this, getPropertyCallableRef('releaseBranch', 1, tmp_7, Tag$_get_releaseBranch_$ref_rq8rmb(), null));
733
1515
  var tmp_8 = this;
734
1516
  var tmp_9 = required(option(this, []));
735
1517
  var tmp_10 = KProperty1;
736
- tmp_8.a2q_1 = tmp_9.t1m(this, getPropertyCallableRef('version', 1, tmp_10, Tag$_get_version_$ref_p7wb9e(), null));
1518
+ tmp_8.z2q_1 = tmp_9.u1m(this, getPropertyCallableRef('version', 1, tmp_10, Tag$_get_version_$ref_p7wb9e(), null));
737
1519
  var tmp_11 = this;
738
1520
  var tmp_12 = option(this, []);
739
1521
  var tmp_13 = KProperty1;
740
- tmp_11.b2q_1 = tmp_12.t1m(this, getPropertyCallableRef('userName', 1, tmp_13, Tag$_get_userName_$ref_kslo5u(), null));
1522
+ tmp_11.a2r_1 = tmp_12.u1m(this, getPropertyCallableRef('userName', 1, tmp_13, Tag$_get_userName_$ref_kslo5u(), null));
741
1523
  var tmp_14 = this;
742
1524
  var tmp_15 = option(this, []);
743
1525
  var tmp_16 = KProperty1;
744
- tmp_14.c2q_1 = tmp_15.t1m(this, getPropertyCallableRef('userEmail', 1, tmp_16, Tag$_get_userEmail_$ref_vl09cr(), null));
1526
+ tmp_14.b2r_1 = tmp_15.u1m(this, getPropertyCallableRef('userEmail', 1, tmp_16, Tag$_get_userEmail_$ref_vl09cr(), null));
745
1527
  var tmp_17 = this;
746
1528
  var tmp_18 = default_0(boolean(option(this, [])), false);
747
1529
  var tmp_19 = KProperty1;
748
- tmp_17.d2q_1 = tmp_18.t1m(this, getPropertyCallableRef('warningsAsErrors', 1, tmp_19, Tag$_get_warningsAsErrors_$ref_gj8a6o(), null));
1530
+ tmp_17.c2r_1 = tmp_18.u1m(this, getPropertyCallableRef('warningsAsErrors', 1, tmp_19, Tag$_get_warningsAsErrors_$ref_gj8a6o(), null));
1531
+ var tmp_20 = this;
1532
+ var tmp_21 = default_0(option(this, ['--format']), 'text');
1533
+ var tmp_22 = KProperty1;
1534
+ tmp_20.d2r_1 = tmp_21.u1m(this, getPropertyCallableRef('formatString', 1, tmp_22, Tag$_get_formatString_$ref_izm3wc(), null));
749
1535
  }
750
- protoOf(Tag).j1d = function () {
1536
+ protoOf(Tag).k1d = function () {
751
1537
  // Inline function 'kotlin.let' call
752
1538
  var it = tag(new TaggerCore(new GitAdapter(_get_workingDirectory__eyfbj_0(this))), _get_version__2bx7w9(this), _get_releaseBranch__pqrgbs_0(this), _get_userName__tupjmd(this), _get_userEmail__21hfkw(this));
753
1539
  if (equals(it, Success_getInstance())) {
754
- this.x1b('Success!');
1540
+ switch (_get_format__qlarck_0(this).y2_1) {
1541
+ case 1:
1542
+ this.x1b(tagSuccessResponse(new TagData(_get_version__2bx7w9(this))));
1543
+ break;
1544
+ case 0:
1545
+ this.x1b('Success!');
1546
+ break;
1547
+ default:
1548
+ noWhenBranchMatchedException();
1549
+ break;
1550
+ }
755
1551
  } else {
756
- if (it instanceof Error_0)
757
- if (_get_warningsAsErrors__7mpwfd(this)) {
758
- throw new CliktError(it.wn_1);
759
- } else {
760
- this.x1b(it.wn_1, VOID, true);
1552
+ if (it instanceof Error_0) {
1553
+ switch (_get_format__qlarck_0(this).y2_1) {
1554
+ case 1:
1555
+ this.x1b(errorResponse(it.wn_1, 'TAG_ERROR'));
1556
+ var tmp3_statusCode = _get_warningsAsErrors__7mpwfd(this) ? 1 : 0;
1557
+ throw new CliktError('', VOID, tmp3_statusCode, false);
1558
+ case 0:
1559
+ if (_get_warningsAsErrors__7mpwfd(this)) {
1560
+ throw new CliktError(it.wn_1);
1561
+ } else {
1562
+ this.x1b(it.wn_1, VOID, true);
1563
+ }
1564
+
1565
+ break;
1566
+ default:
1567
+ noWhenBranchMatchedException();
1568
+ break;
761
1569
  }
762
- else {
1570
+ } else {
763
1571
  noWhenBranchMatchedException();
764
1572
  }
765
1573
  }
766
1574
  };
767
1575
  function _get_quiet__c6dzoj($this) {
768
1576
  var tmp = KProperty1;
769
- return $this.t2q_1.j1m($this, getPropertyCallableRef('quiet', 1, tmp, Tagger$_get_quiet_$ref_s522ri_0(), null));
1577
+ return $this.t2r_1.k1m($this, getPropertyCallableRef('quiet', 1, tmp, Tagger$_get_quiet_$ref_s522ri_0(), null));
770
1578
  }
771
1579
  function Tagger$lambda($version, $this) {
772
1580
  return function ($this$eagerOption) {
@@ -788,22 +1596,34 @@
788
1596
  function Tagger() {
789
1597
  CliktCommand.call(this);
790
1598
  // Inline function 'com.github.ajalt.clikt.parameters.options.versionOption' call
791
- var version = Versions_instance.p2n_1;
1599
+ var version = Versions_instance.q2n_1;
792
1600
  var help = 'Show the version and exit';
793
1601
  var names = setOf('--version');
794
1602
  eagerOption(this, names, help, VOID, VOID, VOID, Tagger$lambda(version, this));
795
1603
  var tmp = this;
796
1604
  var tmp_0 = flag(option(this, ['--quiet', '-q']), [], false);
797
1605
  var tmp_1 = KProperty1;
798
- tmp.t2q_1 = tmp_0.t1m(this, getPropertyCallableRef('quiet', 1, tmp_1, Tagger$_get_quiet_$ref_s522ri(), null));
1606
+ tmp.t2r_1 = tmp_0.u1m(this, getPropertyCallableRef('quiet', 1, tmp_1, Tagger$_get_quiet_$ref_s522ri(), null));
799
1607
  }
800
- protoOf(Tagger).j1d = function () {
801
- if (!_get_quiet__c6dzoj(this)) {
1608
+ protoOf(Tagger).k1d = function () {
1609
+ if (!_get_quiet__c6dzoj(this) && this.f19().s1c() == null) {
802
1610
  this.x1b('Welcome to Tagger CLI.');
803
1611
  }
804
1612
  };
1613
+ //region block: post-declaration
1614
+ protoOf($serializer).py = typeParametersSerializers;
1615
+ protoOf($serializer_0).py = typeParametersSerializers;
1616
+ protoOf($serializer_1).py = typeParametersSerializers;
1617
+ protoOf($serializer_2).py = typeParametersSerializers;
1618
+ protoOf($serializer_3).py = typeParametersSerializers;
1619
+ //endregion
805
1620
  //region block: init
806
1621
  Versions_instance = new Versions();
1622
+ Companion_instance_2 = new Companion();
1623
+ Companion_instance_3 = new Companion_0();
1624
+ Companion_instance_5 = new Companion_2();
1625
+ Companion_instance_6 = new Companion_3();
1626
+ Companion_instance_7 = new Companion_4();
807
1627
  //endregion
808
1628
  mainWrapper();
809
1629
  return _;