git-digger 1.5.8 → 1.5.10

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,8 +1,8 @@
1
1
  (function (_, kotlin_kotlin) {
2
2
  'use strict';
3
3
  //region block: imports
4
- var until = kotlin_kotlin.$_$.l9;
5
- var slice = kotlin_kotlin.$_$.l6;
4
+ var until = kotlin_kotlin.$_$.m9;
5
+ var slice = kotlin_kotlin.$_$.m6;
6
6
  var copyToArray = kotlin_kotlin.$_$.q4;
7
7
  //endregion
8
8
  //region block: pre-declaration
@@ -1,9 +1,9 @@
1
1
  (function (_, kotlin_kotlin, kotlin_com_zegreatrob_tools_digger_core, kotlin_com_zegreatrob_tools_git_adapter, kotlin_clikt_clikt, kotlin_com_zegreatrob_tools_digger_json, kotlin_com_zegreatrob_tools_cli_tools) {
2
2
  'use strict';
3
3
  //region block: imports
4
- var split = kotlin_kotlin.$_$.hb;
4
+ var split = kotlin_kotlin.$_$.ib;
5
5
  var lastOrNull = kotlin_kotlin.$_$.n5;
6
- var isBlank = kotlin_kotlin.$_$.oa;
6
+ var isBlank = kotlin_kotlin.$_$.pa;
7
7
  var Regex_init_$Create$ = kotlin_kotlin.$_$.u;
8
8
  var Defaults_getInstance = kotlin_com_zegreatrob_tools_digger_core.$_$.c;
9
9
  var GitAdapter = kotlin_com_zegreatrob_tools_git_adapter.$_$.a;
@@ -17,12 +17,12 @@
17
17
  var toJsonString = kotlin_com_zegreatrob_tools_digger_json.$_$.b;
18
18
  var writeToFile = kotlin_com_zegreatrob_tools_cli_tools.$_$.b;
19
19
  var Unit_instance = kotlin_kotlin.$_$.l3;
20
- var protoOf = kotlin_kotlin.$_$.y8;
21
- var classMeta = kotlin_kotlin.$_$.u7;
22
- var setMetadataFor = kotlin_kotlin.$_$.z8;
20
+ var protoOf = kotlin_kotlin.$_$.z8;
21
+ var classMeta = kotlin_kotlin.$_$.v7;
22
+ var setMetadataFor = kotlin_kotlin.$_$.a9;
23
23
  var VOID = kotlin_kotlin.$_$.g;
24
- var KProperty1 = kotlin_kotlin.$_$.q9;
25
- var getPropertyCallableRef = kotlin_kotlin.$_$.a8;
24
+ var KProperty1 = kotlin_kotlin.$_$.r9;
25
+ var getPropertyCallableRef = kotlin_kotlin.$_$.b8;
26
26
  var toJsonString_0 = kotlin_com_zegreatrob_tools_digger_json.$_$.a;
27
27
  var subcommands = kotlin_clikt_clikt.$_$.b;
28
28
  var platformArgCorrection = kotlin_com_zegreatrob_tools_cli_tools.$_$.a;
@@ -33,34 +33,34 @@
33
33
  setMetadataFor(Welcome, 'Welcome', classMeta, CliktCommand, VOID, Welcome);
34
34
  //endregion
35
35
  function _get_dir__e67350($this) {
36
- return $this.e30_1.q2w($this, dir$factory_0());
36
+ return $this.f30_1.r2w($this, dir$factory_0());
37
37
  }
38
38
  function _get_outputFile__pta58u($this) {
39
- return $this.f30_1.q2w($this, outputFile$factory_0());
39
+ return $this.g30_1.r2w($this, outputFile$factory_0());
40
40
  }
41
41
  function _get_label__euqgmb($this) {
42
- return $this.g30_1.q2w($this, label$factory_0());
42
+ return $this.h30_1.r2w($this, label$factory_0());
43
43
  }
44
44
  function _get_majorRegex__5j6ypp($this) {
45
- return $this.h30_1.q2w($this, majorRegex$factory_0());
45
+ return $this.i30_1.r2w($this, majorRegex$factory_0());
46
46
  }
47
47
  function _get_minorRegex__20z96h($this) {
48
- return $this.i30_1.q2w($this, minorRegex$factory_0());
48
+ return $this.j30_1.r2w($this, minorRegex$factory_0());
49
49
  }
50
50
  function _get_patchRegex__mtlu2c($this) {
51
- return $this.j30_1.q2w($this, patchRegex$factory_0());
51
+ return $this.k30_1.r2w($this, patchRegex$factory_0());
52
52
  }
53
53
  function _get_noneRegex__1tdbgi($this) {
54
- return $this.k30_1.q2w($this, noneRegex$factory_0());
54
+ return $this.l30_1.r2w($this, noneRegex$factory_0());
55
55
  }
56
56
  function _get_storyIdRegex__auqux8($this) {
57
- return $this.l30_1.q2w($this, storyIdRegex$factory_0());
57
+ return $this.m30_1.r2w($this, storyIdRegex$factory_0());
58
58
  }
59
59
  function _get_easeRegex__pf594o($this) {
60
- return $this.m30_1.q2w($this, easeRegex$factory_0());
60
+ return $this.n30_1.r2w($this, easeRegex$factory_0());
61
61
  }
62
62
  function _get_tagRegex__ibn0wy($this) {
63
- return $this.n30_1.q2w($this, tagRegex$factory_0());
63
+ return $this.o30_1.r2w($this, tagRegex$factory_0());
64
64
  }
65
65
  function _get_core__d4zfrg($this) {
66
66
  // Inline function 'kotlin.text.ifBlank' call
@@ -83,7 +83,7 @@
83
83
  tmp_0 = Regex_init_$Create$(tmp12_safe_receiver);
84
84
  }
85
85
  var tmp13_elvis_lhs = tmp_0;
86
- var tmp15_tagRegex = tmp13_elvis_lhs == null ? Defaults_getInstance().s18_1 : tmp13_elvis_lhs;
86
+ var tmp15_tagRegex = tmp13_elvis_lhs == null ? Defaults_getInstance().t18_1 : tmp13_elvis_lhs;
87
87
  var tmp16_gitWrapper = new GitAdapter(_get_dir__e67350($this));
88
88
  var tmp0_safe_receiver = _get_majorRegex__5j6ypp($this);
89
89
  var tmp_1;
@@ -95,7 +95,7 @@
95
95
  tmp_1 = Regex_init_$Create$(tmp0_safe_receiver);
96
96
  }
97
97
  var tmp1_elvis_lhs = tmp_1;
98
- var tmp_2 = tmp1_elvis_lhs == null ? Defaults_getInstance_0().v18_1 : tmp1_elvis_lhs;
98
+ var tmp_2 = tmp1_elvis_lhs == null ? Defaults_getInstance_0().w18_1 : tmp1_elvis_lhs;
99
99
  var tmp2_safe_receiver = _get_minorRegex__20z96h($this);
100
100
  var tmp_3;
101
101
  if (tmp2_safe_receiver == null) {
@@ -106,7 +106,7 @@
106
106
  tmp_3 = Regex_init_$Create$(tmp2_safe_receiver);
107
107
  }
108
108
  var tmp3_elvis_lhs = tmp_3;
109
- var tmp_4 = tmp3_elvis_lhs == null ? Defaults_getInstance_0().w18_1 : tmp3_elvis_lhs;
109
+ var tmp_4 = tmp3_elvis_lhs == null ? Defaults_getInstance_0().x18_1 : tmp3_elvis_lhs;
110
110
  var tmp4_safe_receiver = _get_patchRegex__mtlu2c($this);
111
111
  var tmp_5;
112
112
  if (tmp4_safe_receiver == null) {
@@ -117,7 +117,7 @@
117
117
  tmp_5 = Regex_init_$Create$(tmp4_safe_receiver);
118
118
  }
119
119
  var tmp5_elvis_lhs = tmp_5;
120
- var tmp_6 = tmp5_elvis_lhs == null ? Defaults_getInstance_0().x18_1 : tmp5_elvis_lhs;
120
+ var tmp_6 = tmp5_elvis_lhs == null ? Defaults_getInstance_0().y18_1 : tmp5_elvis_lhs;
121
121
  var tmp6_safe_receiver = _get_noneRegex__1tdbgi($this);
122
122
  var tmp_7;
123
123
  if (tmp6_safe_receiver == null) {
@@ -128,7 +128,7 @@
128
128
  tmp_7 = Regex_init_$Create$(tmp6_safe_receiver);
129
129
  }
130
130
  var tmp7_elvis_lhs = tmp_7;
131
- var tmp_8 = tmp7_elvis_lhs == null ? Defaults_getInstance_0().y18_1 : tmp7_elvis_lhs;
131
+ var tmp_8 = tmp7_elvis_lhs == null ? Defaults_getInstance_0().z18_1 : tmp7_elvis_lhs;
132
132
  var tmp8_safe_receiver = _get_storyIdRegex__auqux8($this);
133
133
  var tmp_9;
134
134
  if (tmp8_safe_receiver == null) {
@@ -139,7 +139,7 @@
139
139
  tmp_9 = Regex_init_$Create$(tmp8_safe_receiver);
140
140
  }
141
141
  var tmp9_elvis_lhs = tmp_9;
142
- var tmp_10 = tmp9_elvis_lhs == null ? Defaults_getInstance_0().z18_1 : tmp9_elvis_lhs;
142
+ var tmp_10 = tmp9_elvis_lhs == null ? Defaults_getInstance_0().a19_1 : tmp9_elvis_lhs;
143
143
  var tmp10_safe_receiver = _get_easeRegex__pf594o($this);
144
144
  var tmp_11;
145
145
  if (tmp10_safe_receiver == null) {
@@ -150,28 +150,28 @@
150
150
  tmp_11 = Regex_init_$Create$(tmp10_safe_receiver);
151
151
  }
152
152
  var tmp11_elvis_lhs = tmp_11;
153
- var tmp17_messageDigger = new MessageDigger(tmp_2, tmp_4, tmp_6, tmp_8, tmp_10, tmp11_elvis_lhs == null ? Defaults_getInstance_0().a19_1 : tmp11_elvis_lhs);
153
+ var tmp17_messageDigger = new MessageDigger(tmp_2, tmp_4, tmp_6, tmp_8, tmp_10, tmp11_elvis_lhs == null ? Defaults_getInstance_0().b19_1 : tmp11_elvis_lhs);
154
154
  return new DiggerCore(tmp14_label, tmp16_gitWrapper, tmp17_messageDigger, tmp15_tagRegex);
155
155
  }
156
156
  function AllContributionData() {
157
157
  CliktCommand.call(this);
158
- this.e30_1 = argument(this, 'git-repo').s2w(this, dir$factory());
159
- this.f30_1 = default_0(option(this, []), 'allContributionData.json').d2x(this, outputFile$factory());
160
- this.g30_1 = default_0(option(this, []), '').d2x(this, label$factory());
161
- this.h30_1 = option(this, []).d2x(this, majorRegex$factory());
162
- this.i30_1 = option(this, []).d2x(this, minorRegex$factory());
163
- this.j30_1 = option(this, []).d2x(this, patchRegex$factory());
164
- this.k30_1 = option(this, []).d2x(this, noneRegex$factory());
165
- this.l30_1 = option(this, []).d2x(this, storyIdRegex$factory());
166
- this.m30_1 = option(this, []).d2x(this, easeRegex$factory());
167
- this.n30_1 = option(this, []).d2x(this, tagRegex$factory());
168
- }
169
- protoOf(AllContributionData).g2o = function () {
158
+ this.f30_1 = argument(this, 'git-repo').t2w(this, dir$factory());
159
+ this.g30_1 = default_0(option(this, []), 'allContributionData.json').e2x(this, outputFile$factory());
160
+ this.h30_1 = default_0(option(this, []), '').e2x(this, label$factory());
161
+ this.i30_1 = option(this, []).e2x(this, majorRegex$factory());
162
+ this.j30_1 = option(this, []).e2x(this, minorRegex$factory());
163
+ this.k30_1 = option(this, []).e2x(this, patchRegex$factory());
164
+ this.l30_1 = option(this, []).e2x(this, noneRegex$factory());
165
+ this.m30_1 = option(this, []).e2x(this, storyIdRegex$factory());
166
+ this.n30_1 = option(this, []).e2x(this, easeRegex$factory());
167
+ this.o30_1 = option(this, []).e2x(this, tagRegex$factory());
168
+ }
169
+ protoOf(AllContributionData).h2o = function () {
170
170
  // Inline function 'kotlin.also' call
171
- writeToFile(toJsonString(_get_core__d4zfrg(this).u18()), _get_outputFile__pta58u(this));
171
+ writeToFile(toJsonString(_get_core__d4zfrg(this).v18()), _get_outputFile__pta58u(this));
172
172
  // Inline function 'kotlin.contracts.contract' call
173
173
  // Inline function 'com.zegreatrob.tools.digger.cli.AllContributionData.run.<anonymous>' call
174
- this.z2n('Data written to ' + _get_outputFile__pta58u(this));
174
+ this.a2o('Data written to ' + _get_outputFile__pta58u(this));
175
175
  return Unit_instance;
176
176
  };
177
177
  function dir$factory() {
@@ -275,34 +275,34 @@
275
275
  }, null);
276
276
  }
277
277
  function _get_dir__e67350_0($this) {
278
- return $this.f31_1.q2w($this, dir$factory_2());
278
+ return $this.g31_1.r2w($this, dir$factory_2());
279
279
  }
280
280
  function _get_outputFile__pta58u_0($this) {
281
- return $this.g31_1.q2w($this, outputFile$factory_2());
281
+ return $this.h31_1.r2w($this, outputFile$factory_2());
282
282
  }
283
283
  function _get_label__euqgmb_0($this) {
284
- return $this.h31_1.q2w($this, label$factory_2());
284
+ return $this.i31_1.r2w($this, label$factory_2());
285
285
  }
286
286
  function _get_majorRegex__5j6ypp_0($this) {
287
- return $this.i31_1.q2w($this, majorRegex$factory_2());
287
+ return $this.j31_1.r2w($this, majorRegex$factory_2());
288
288
  }
289
289
  function _get_minorRegex__20z96h_0($this) {
290
- return $this.j31_1.q2w($this, minorRegex$factory_2());
290
+ return $this.k31_1.r2w($this, minorRegex$factory_2());
291
291
  }
292
292
  function _get_patchRegex__mtlu2c_0($this) {
293
- return $this.k31_1.q2w($this, patchRegex$factory_2());
293
+ return $this.l31_1.r2w($this, patchRegex$factory_2());
294
294
  }
295
295
  function _get_noneRegex__1tdbgi_0($this) {
296
- return $this.l31_1.q2w($this, noneRegex$factory_2());
296
+ return $this.m31_1.r2w($this, noneRegex$factory_2());
297
297
  }
298
298
  function _get_storyIdRegex__auqux8_0($this) {
299
- return $this.m31_1.q2w($this, storyIdRegex$factory_2());
299
+ return $this.n31_1.r2w($this, storyIdRegex$factory_2());
300
300
  }
301
301
  function _get_easeRegex__pf594o_0($this) {
302
- return $this.n31_1.q2w($this, easeRegex$factory_2());
302
+ return $this.o31_1.r2w($this, easeRegex$factory_2());
303
303
  }
304
304
  function _get_tagRegex__ibn0wy_0($this) {
305
- return $this.o31_1.q2w($this, tagRegex$factory_2());
305
+ return $this.p31_1.r2w($this, tagRegex$factory_2());
306
306
  }
307
307
  function _get_core__d4zfrg_0($this) {
308
308
  // Inline function 'kotlin.text.ifBlank' call
@@ -326,7 +326,7 @@
326
326
  tmp_2 = Regex_init_$Create$(tmp0_safe_receiver);
327
327
  }
328
328
  var tmp1_elvis_lhs = tmp_2;
329
- var tmp_3 = tmp1_elvis_lhs == null ? Defaults_getInstance_0().v18_1 : tmp1_elvis_lhs;
329
+ var tmp_3 = tmp1_elvis_lhs == null ? Defaults_getInstance_0().w18_1 : tmp1_elvis_lhs;
330
330
  var tmp2_safe_receiver = _get_minorRegex__20z96h_0($this);
331
331
  var tmp_4;
332
332
  if (tmp2_safe_receiver == null) {
@@ -337,7 +337,7 @@
337
337
  tmp_4 = Regex_init_$Create$(tmp2_safe_receiver);
338
338
  }
339
339
  var tmp3_elvis_lhs = tmp_4;
340
- var tmp_5 = tmp3_elvis_lhs == null ? Defaults_getInstance_0().w18_1 : tmp3_elvis_lhs;
340
+ var tmp_5 = tmp3_elvis_lhs == null ? Defaults_getInstance_0().x18_1 : tmp3_elvis_lhs;
341
341
  var tmp4_safe_receiver = _get_patchRegex__mtlu2c_0($this);
342
342
  var tmp_6;
343
343
  if (tmp4_safe_receiver == null) {
@@ -348,7 +348,7 @@
348
348
  tmp_6 = Regex_init_$Create$(tmp4_safe_receiver);
349
349
  }
350
350
  var tmp5_elvis_lhs = tmp_6;
351
- var tmp_7 = tmp5_elvis_lhs == null ? Defaults_getInstance_0().x18_1 : tmp5_elvis_lhs;
351
+ var tmp_7 = tmp5_elvis_lhs == null ? Defaults_getInstance_0().y18_1 : tmp5_elvis_lhs;
352
352
  var tmp6_safe_receiver = _get_noneRegex__1tdbgi_0($this);
353
353
  var tmp_8;
354
354
  if (tmp6_safe_receiver == null) {
@@ -359,7 +359,7 @@
359
359
  tmp_8 = Regex_init_$Create$(tmp6_safe_receiver);
360
360
  }
361
361
  var tmp7_elvis_lhs = tmp_8;
362
- var tmp_9 = tmp7_elvis_lhs == null ? Defaults_getInstance_0().y18_1 : tmp7_elvis_lhs;
362
+ var tmp_9 = tmp7_elvis_lhs == null ? Defaults_getInstance_0().z18_1 : tmp7_elvis_lhs;
363
363
  var tmp8_safe_receiver = _get_storyIdRegex__auqux8_0($this);
364
364
  var tmp_10;
365
365
  if (tmp8_safe_receiver == null) {
@@ -370,7 +370,7 @@
370
370
  tmp_10 = Regex_init_$Create$(tmp8_safe_receiver);
371
371
  }
372
372
  var tmp9_elvis_lhs = tmp_10;
373
- var tmp_11 = tmp9_elvis_lhs == null ? Defaults_getInstance_0().z18_1 : tmp9_elvis_lhs;
373
+ var tmp_11 = tmp9_elvis_lhs == null ? Defaults_getInstance_0().a19_1 : tmp9_elvis_lhs;
374
374
  var tmp10_safe_receiver = _get_easeRegex__pf594o_0($this);
375
375
  var tmp_12;
376
376
  if (tmp10_safe_receiver == null) {
@@ -381,7 +381,7 @@
381
381
  tmp_12 = Regex_init_$Create$(tmp10_safe_receiver);
382
382
  }
383
383
  var tmp11_elvis_lhs = tmp_12;
384
- var tmp_13 = new MessageDigger(tmp_3, tmp_5, tmp_7, tmp_9, tmp_11, tmp11_elvis_lhs == null ? Defaults_getInstance_0().a19_1 : tmp11_elvis_lhs);
384
+ var tmp_13 = new MessageDigger(tmp_3, tmp_5, tmp_7, tmp_9, tmp_11, tmp11_elvis_lhs == null ? Defaults_getInstance_0().b19_1 : tmp11_elvis_lhs);
385
385
  var tmp12_safe_receiver = _get_tagRegex__ibn0wy_0($this);
386
386
  var tmp_14;
387
387
  if (tmp12_safe_receiver == null) {
@@ -392,27 +392,27 @@
392
392
  tmp_14 = Regex_init_$Create$(tmp12_safe_receiver);
393
393
  }
394
394
  var tmp13_elvis_lhs = tmp_14;
395
- return new DiggerCore(tmp_0, tmp_1, tmp_13, tmp13_elvis_lhs == null ? Defaults_getInstance().s18_1 : tmp13_elvis_lhs);
395
+ return new DiggerCore(tmp_0, tmp_1, tmp_13, tmp13_elvis_lhs == null ? Defaults_getInstance().t18_1 : tmp13_elvis_lhs);
396
396
  }
397
397
  function CurrentContributionData() {
398
398
  CliktCommand.call(this);
399
- this.f31_1 = argument(this, 'git-repo').s2w(this, dir$factory_1());
400
- this.g31_1 = default_0(option(this, []), 'currentContributionData.json').d2x(this, outputFile$factory_1());
401
- this.h31_1 = default_0(option(this, []), '').d2x(this, label$factory_1());
402
- this.i31_1 = option(this, []).d2x(this, majorRegex$factory_1());
403
- this.j31_1 = option(this, []).d2x(this, minorRegex$factory_1());
404
- this.k31_1 = option(this, []).d2x(this, patchRegex$factory_1());
405
- this.l31_1 = option(this, []).d2x(this, noneRegex$factory_1());
406
- this.m31_1 = option(this, []).d2x(this, storyIdRegex$factory_1());
407
- this.n31_1 = option(this, []).d2x(this, easeRegex$factory_1());
408
- this.o31_1 = option(this, []).d2x(this, tagRegex$factory_1());
409
- }
410
- protoOf(CurrentContributionData).g2o = function () {
399
+ this.g31_1 = argument(this, 'git-repo').t2w(this, dir$factory_1());
400
+ this.h31_1 = default_0(option(this, []), 'currentContributionData.json').e2x(this, outputFile$factory_1());
401
+ this.i31_1 = default_0(option(this, []), '').e2x(this, label$factory_1());
402
+ this.j31_1 = option(this, []).e2x(this, majorRegex$factory_1());
403
+ this.k31_1 = option(this, []).e2x(this, minorRegex$factory_1());
404
+ this.l31_1 = option(this, []).e2x(this, patchRegex$factory_1());
405
+ this.m31_1 = option(this, []).e2x(this, noneRegex$factory_1());
406
+ this.n31_1 = option(this, []).e2x(this, storyIdRegex$factory_1());
407
+ this.o31_1 = option(this, []).e2x(this, easeRegex$factory_1());
408
+ this.p31_1 = option(this, []).e2x(this, tagRegex$factory_1());
409
+ }
410
+ protoOf(CurrentContributionData).h2o = function () {
411
411
  // Inline function 'kotlin.also' call
412
- writeToFile(toJsonString_0(_get_core__d4zfrg_0(this).t18()), _get_outputFile__pta58u_0(this));
412
+ writeToFile(toJsonString_0(_get_core__d4zfrg_0(this).u18()), _get_outputFile__pta58u_0(this));
413
413
  // Inline function 'kotlin.contracts.contract' call
414
414
  // Inline function 'com.zegreatrob.tools.digger.cli.CurrentContributionData.run.<anonymous>' call
415
- this.z2n('Data written to ' + _get_outputFile__pta58u_0(this));
415
+ this.a2o('Data written to ' + _get_outputFile__pta58u_0(this));
416
416
  return Unit_instance;
417
417
  };
418
418
  function dir$factory_1() {
@@ -516,13 +516,13 @@
516
516
  }, null);
517
517
  }
518
518
  function main(args) {
519
- return subcommands(subcommands(new Welcome(), [new CurrentContributionData()]), [new AllContributionData()]).f2o(platformArgCorrection(args));
519
+ return subcommands(subcommands(new Welcome(), [new CurrentContributionData()]), [new AllContributionData()]).g2o(platformArgCorrection(args));
520
520
  }
521
521
  function Welcome() {
522
522
  CliktCommand.call(this);
523
523
  }
524
- protoOf(Welcome).g2o = function () {
525
- this.z2n('Welcome to Digger CLI.');
524
+ protoOf(Welcome).h2o = function () {
525
+ this.a2o('Welcome to Digger CLI.');
526
526
  };
527
527
  main([]);
528
528
  return _;