git-semver-tagger 2.2.0 → 2.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -59,10 +59,11 @@ Tagger supports a `.tagger` JSON configuration file at your repository root to e
59
59
 
60
60
  Generate a template with default values:
61
61
  ```bash
62
- tagger generate-settings-file --file=''
62
+ tagger generate-settings-file --file
63
63
  ```
64
64
 
65
65
  This creates `.tagger` in the current directory. Edit it to customize behavior.
66
+ (`--file=''` is also supported for backward compatibility.)
66
67
 
67
68
  **Print to stdout without creating file:**
68
69
  ```bash
@@ -71,7 +72,7 @@ tagger generate-settings-file
71
72
 
72
73
  **Merge new defaults into existing file:**
73
74
  ```bash
74
- tagger generate-settings-file --file='' --merge=true
75
+ tagger generate-settings-file --file --merge=true
75
76
  ```
76
77
 
77
78
  ### Configuration Options
@@ -5075,9 +5075,20 @@
5075
5075
  }
5076
5076
  return _this__u8e3s4.g1n(tmp, transform, tmp_0, tmp_1, VOID, tmp_2, nvalues);
5077
5077
  }
5078
+ function optionalValue(_this__u8e3s4, default_0, acceptsUnattachedValue) {
5079
+ acceptsUnattachedValue = acceptsUnattachedValue === VOID ? true : acceptsUnattachedValue;
5080
+ var tmp = numberRangeToNumber(0, 1);
5081
+ return transformValues(_this__u8e3s4, tmp, optionalValue$lambda(default_0)).h1n(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, acceptsUnattachedValue);
5082
+ }
5078
5083
  function transformValues$lambda($this$copy) {
5079
5084
  return null;
5080
5085
  }
5086
+ function optionalValue$lambda($default) {
5087
+ return function ($this$transformValues, it) {
5088
+ var tmp0_elvis_lhs = firstOrNull(it);
5089
+ return tmp0_elvis_lhs == null ? $default : tmp0_elvis_lhs;
5090
+ };
5091
+ }
5081
5092
  function HelpTransformContext(context) {
5082
5093
  this.v1o_1 = context;
5083
5094
  }
@@ -6899,12 +6910,13 @@
6899
6910
  _.$_$.l = default_0;
6900
6911
  _.$_$.m = eagerOption;
6901
6912
  _.$_$.n = flag;
6902
- _.$_$.o = option;
6903
- _.$_$.p = required;
6904
- _.$_$.q = boolean;
6905
- _.$_$.r = choice;
6906
- _.$_$.s = Companion_instance_3;
6907
- _.$_$.t = Companion_instance_2;
6913
+ _.$_$.o = optionalValue;
6914
+ _.$_$.p = option;
6915
+ _.$_$.q = required;
6916
+ _.$_$.r = boolean;
6917
+ _.$_$.s = choice;
6918
+ _.$_$.t = Companion_instance_3;
6919
+ _.$_$.u = Companion_instance_2;
6908
6920
  //endregion
6909
6921
  return _;
6910
6922
  }(module.exports, require('./kotlin-kotlin-stdlib.js')));