diff options
| author | Max Resnick <max@ofmax.li> | 2024-01-23 22:21:14 -0800 |
|---|---|---|
| committer | Max Resnick <max@ofmax.li> | 2024-01-23 22:21:14 -0800 |
| commit | 8e365468cec859da974a5e617ab3eb8d0a59df63 (patch) | |
| tree | 90853dba3db4b44e6271aed6331ed9cb83e5923e | |
| parent | 1e370aab304666be46e37d5761f3892c7c36219e (diff) | |
| download | go-bumpver-8e365468cec859da974a5e617ab3eb8d0a59df63.tar.gz | |
doc: fix some formating
Diffstat (limited to '')
| -rw-r--r-- | README.md | 30 |
1 files changed, 15 insertions, 15 deletions
@@ -6,7 +6,7 @@ bumpver - next semantec version in a given sequence ## Usage -``` +```bash bumpver part [major|minor|patch] file [-|file] [flags] ``` @@ -26,47 +26,47 @@ Many tools touch git and some opinionatedly like to touch it. ### Inputs -*stdin* -``` +**stdin** +```bash ❯ echo "1.1.1\n1.2.1" | bumpver patch - 1.2.2% ``` -*file* -``` +**file** +```bash ❯ echo v0.1.0 > VERSION ❯ bumpver patch VERSION 0.1.1% ``` -*local repo* -``` +**local repo** +```bash ❯ bumpver patch <(git tag -l) 3.3.2% ``` -*remote repo* -``` +**remote repo** +```bash ❯ bumpver patch <(git ls-remote --tags --refs origin v\* | awk -F'[ /]' '{ print $NF }') 3.3.4% ``` ### Bumps -*a patch* -``` +**a patch** +```bash ❯ bumpver patch <(git tag -l) 3.3.2% ``` -*a minor* -``` +**a minor** +```bash ❯ bumpver minor <(git tag -l) 3.4.0% ``` -*a major* -``` +**a major** +```bash ❯ bumpver major <(git tag -l) 4.0.0% ``` |