https://github.com/tpkn/version
Tool for auto incrementation your app version.
https://github.com/tpkn/version
cli go increment major minor patch version
Last synced: 3 months ago
JSON representation
Tool for auto incrementation your app version.
- Host: GitHub
- URL: https://github.com/tpkn/version
- Owner: tpkn
- License: mit
- Created: 2021-05-10T15:36:46.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2025-01-26T18:55:05.000Z (4 months ago)
- Last Synced: 2025-01-26T19:33:57.808Z (4 months ago)
- Topics: cli, go, increment, major, minor, patch, version
- Language: Go
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![]()
A tool for easy version incrementation.Upon the first launch in a new project, the application creates a `.version` file (any filename can be specified using the `-o` flag) in which the version `0.0.0` is recorded. If the project already contains a version file, it will update the version number in it.
## Usage
```text
version [-M | -m | -p | -b] [-o]
```## Options
```text
-M Increment major version
-m Increment minor version
-p Increment patch version
-b Batch incrementation options: (M)ajor, (m)inor, and (p)atch
-o File for storing the version number (default: "./.version")
-h, --help Help
-v, --version Version
```## Examples
```shell
version -M
# 0.0.0 -> 1.0.0version -m
# 0.0.0 -> 0.1.0version -p
# 0.0.0 -> 0.0.1version -b "M"
# 0.0.0 -> 1.0.0version -b "m"
# 0.0.0 -> 0.1.0version -b "p"
# 0.0.0 -> 0.0.1version -b "Mmp"
# 0.0.0 -> 1.1.1version -b "mMp"
# 0.0.0 -> 1.0.1version -b "mmmmp"
# 0.0.0 -> 0.4.1version -b "Mpppppppppppppp"
# 0.0.0 -> 1.0.14version -b "ppppppppppppppM"
# 0.0.0 -> 1.0.0version -b "MMMMMMmmmmmmmmmmppppppppppppp"
# 0.0.0 -> 7.5.13
```