@metalagman/semverctl-linux-x64 0.0.7 → 0.0.8
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 +21 -0
- package/README.md +20 -17
- package/bin/semverctl +0 -0
- package/package.json +4 -2
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
|
@@ -72,22 +72,22 @@ sha256sum -c checksums.txt
|
|
|
72
72
|
Bump the semantic version at the specified path in JSON or YAML files:
|
|
73
73
|
|
|
74
74
|
```bash
|
|
75
|
-
# Bump patch version (default)
|
|
76
|
-
semverctl bump
|
|
75
|
+
# Bump patch version in package.json (default target)
|
|
76
|
+
semverctl bump
|
|
77
77
|
|
|
78
|
-
# Bump specific version component
|
|
79
|
-
semverctl bump --minor
|
|
80
|
-
semverctl bump --major
|
|
81
|
-
semverctl bump --patch
|
|
78
|
+
# Bump specific version component in package.json
|
|
79
|
+
semverctl bump --minor
|
|
80
|
+
semverctl bump --major
|
|
81
|
+
semverctl bump --patch
|
|
82
82
|
|
|
83
|
-
# Bump version at a custom path
|
|
84
|
-
semverctl bump --path .app.version
|
|
83
|
+
# Bump version in a specific file at a custom path
|
|
84
|
+
semverctl bump --file config.yaml --path .app.version
|
|
85
85
|
|
|
86
|
-
# Bump all
|
|
87
|
-
semverctl bump --glob "**/*.json"
|
|
86
|
+
# Bump all matching files in current directory tree
|
|
87
|
+
semverctl bump --glob "**/*.json"
|
|
88
88
|
|
|
89
89
|
# Preview changes without modifying files
|
|
90
|
-
semverctl bump --dry-run
|
|
90
|
+
semverctl bump --dry-run
|
|
91
91
|
```
|
|
92
92
|
|
|
93
93
|
### Set Version
|
|
@@ -95,14 +95,17 @@ semverctl bump --dry-run package.json
|
|
|
95
95
|
Set an explicit version value:
|
|
96
96
|
|
|
97
97
|
```bash
|
|
98
|
-
# Set version to 1.2.3
|
|
99
|
-
semverctl set 1.2.3
|
|
98
|
+
# Set version to 1.2.3 in package.json (default target)
|
|
99
|
+
semverctl set 1.2.3
|
|
100
|
+
|
|
101
|
+
# Set version in a specific file at a custom path
|
|
102
|
+
semverctl set 2.0.0 --file config.yaml --path .app.version
|
|
100
103
|
|
|
101
|
-
# Set version
|
|
102
|
-
semverctl set 2.0.0 --
|
|
104
|
+
# Set version in all matching files under current directory
|
|
105
|
+
semverctl set 2.0.0 --glob "**/*.json"
|
|
103
106
|
|
|
104
107
|
# Preview changes
|
|
105
|
-
semverctl set 1.0.0 --dry-run
|
|
108
|
+
semverctl set 1.0.0 --dry-run
|
|
106
109
|
```
|
|
107
110
|
|
|
108
111
|
### Numeric Bump
|
|
@@ -111,7 +114,7 @@ For object-style version fields (e.g., `{ "Major": 1, "Minor": 2, "Patch": 3 }`)
|
|
|
111
114
|
you can bump numeric scalar values:
|
|
112
115
|
|
|
113
116
|
```bash
|
|
114
|
-
semverctl bump --numeric --path .version.Patch config.json
|
|
117
|
+
semverctl bump --numeric --path .version.Patch --file config.json
|
|
115
118
|
```
|
|
116
119
|
|
|
117
120
|
This increments the numeric value at the specified path by 1.
|
package/bin/semverctl
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -8,11 +8,13 @@
|
|
|
8
8
|
"description": "@metalagman/semverctl binary for linux/amd64",
|
|
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-x64",
|
|
14
16
|
"os": [
|
|
15
17
|
"linux"
|
|
16
18
|
],
|
|
17
|
-
"version": "0.0.
|
|
19
|
+
"version": "0.0.8"
|
|
18
20
|
}
|