@metalagman/semverctl-linux-arm64 0.0.7 → 0.0.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.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Alexey Samoylov
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -67,42 +67,84 @@ sha256sum -c checksums.txt
67
67
 
68
68
  ## Usage
69
69
 
70
- ### Bump Version
70
+ ### Bump File Version
71
71
 
72
- Bump the semantic version at the specified path in JSON or YAML files:
72
+ Bump the semantic version in a specific JSON or YAML file:
73
73
 
74
74
  ```bash
75
- # Bump patch version (default)
76
- semverctl bump package.json
75
+ # Bump patch in a file
76
+ semverctl bump file package.json
77
77
 
78
78
  # Bump specific version component
79
- semverctl bump --minor package.json
80
- semverctl bump --major package.json
81
- semverctl bump --patch package.json
79
+ semverctl bump file package.json --minor
80
+ semverctl bump file package.json --major
82
81
 
83
82
  # Bump version at a custom path
84
- semverctl bump --path .app.version config.yaml
83
+ semverctl bump file config.yaml --path .app.version
85
84
 
86
- # Bump all JSON files in a directory
87
- semverctl bump --glob "**/*.json" .
85
+ # Preview changes without modifying the file
86
+ semverctl bump file package.json --dry-run
88
87
 
89
- # Preview changes without modifying files
90
- semverctl bump --dry-run package.json
88
+ # Machine-readable output for automation
89
+ semverctl bump file package.json --dry-run --json
91
90
  ```
92
91
 
93
- ### Set Version
92
+ ### Set File Version
94
93
 
95
- Set an explicit version value:
94
+ Set an explicit version value in a specific file:
96
95
 
97
96
  ```bash
98
- # Set version to 1.2.3
99
- semverctl set 1.2.3 package.json
97
+ # Set version to 1.2.3 in a file
98
+ semverctl set file 1.2.3 package.json
100
99
 
101
100
  # Set version at a custom path
102
- semverctl set 2.0.0 --path .app.version config.yaml
101
+ semverctl set file 2.0.0 config.yaml --path .app.version
103
102
 
104
103
  # Preview changes
105
- semverctl set 1.0.0 --dry-run package.json
104
+ semverctl set file 1.0.0 package.json --dry-run
105
+
106
+ # Machine-readable output for automation
107
+ semverctl set file 1.2.3 package.json --json
108
+ ```
109
+
110
+ ### Bump Tag
111
+
112
+ Bump from the latest stable git tag (`vX.Y.Z`) and create a new annotated tag:
113
+
114
+ ```bash
115
+ # Create next patch tag
116
+ semverctl bump tag
117
+
118
+ # Create next minor tag
119
+ semverctl bump tag --minor
120
+
121
+ # Preview tag creation
122
+ semverctl bump tag --dry-run
123
+
124
+ # Create and push tag to origin
125
+ semverctl bump tag --push
126
+
127
+ # Machine-readable output for automation
128
+ semverctl bump tag --dry-run --json
129
+ ```
130
+
131
+ ### Set Tag
132
+
133
+ Create an explicit annotated git tag:
134
+
135
+ ```bash
136
+ # Accepts 1.2.3 or v1.2.3
137
+ semverctl set tag 1.2.3
138
+ semverctl set tag v2.0.0
139
+
140
+ # Preview tag creation
141
+ semverctl set tag 2.1.0 --dry-run
142
+
143
+ # Create and push tag to origin
144
+ semverctl set tag 2.1.0 --push
145
+
146
+ # Machine-readable output for automation
147
+ semverctl set tag 2.1.0 --json
106
148
  ```
107
149
 
108
150
  ### Numeric Bump
@@ -111,7 +153,7 @@ For object-style version fields (e.g., `{ "Major": 1, "Minor": 2, "Patch": 3 }`)
111
153
  you can bump numeric scalar values:
112
154
 
113
155
  ```bash
114
- semverctl bump --numeric --path .version.Patch config.json
156
+ semverctl bump file config.json --numeric --path .version.Patch
115
157
  ```
116
158
 
117
159
  This increments the numeric value at the specified path by 1.
@@ -144,13 +186,27 @@ semverctl follows the [Semantic Versioning 2.0.0](https://semver.org/) specifica
144
186
 
145
187
  ## Dry-Run Mode
146
188
 
147
- Use `--dry-run` to preview changes without modifying files:
189
+ Use `--dry-run` to preview file changes or tag actions without mutation:
190
+
191
+ ```bash
192
+ semverctl bump file package.json --dry-run
193
+ semverctl bump tag --dry-run
194
+ ```
195
+
196
+ For file commands, this outputs a unified diff showing what would change.
197
+
198
+ ## JSON Output
199
+
200
+ Use `--json` for machine-readable automation output:
148
201
 
149
202
  ```bash
150
- semverctl bump --dry-run package.json
203
+ semverctl bump tag --dry-run --json
204
+ semverctl set tag 1.2.3 --json
205
+ semverctl bump file package.json --dry-run --json
151
206
  ```
152
207
 
153
- This outputs a unified diff showing what would change.
208
+ When `--json` is enabled, both success and failure responses are printed as JSON to stdout.
209
+ Failures still return a non-zero exit code.
154
210
 
155
211
  ## Exit Codes
156
212
 
package/bin/semverctl CHANGED
Binary file
package/package.json CHANGED
@@ -8,11 +8,13 @@
8
8
  "description": "@metalagman/semverctl binary for linux/arm64",
9
9
  "files": [
10
10
  "bin",
11
- "README.md"
11
+ "README.md",
12
+ "LICENSE"
12
13
  ],
14
+ "license": "SEE LICENSE IN LICENSE",
13
15
  "name": "@metalagman/semverctl-linux-arm64",
14
16
  "os": [
15
17
  "linux"
16
18
  ],
17
- "version": "0.0.7"
19
+ "version": "0.0.10"
18
20
  }