aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Resnick <max@ofmax.li>2024-01-23 22:21:14 -0800
committerMax Resnick <max@ofmax.li>2024-01-23 22:21:14 -0800
commit8e365468cec859da974a5e617ab3eb8d0a59df63 (patch)
tree90853dba3db4b44e6271aed6331ed9cb83e5923e
parent1e370aab304666be46e37d5761f3892c7c36219e (diff)
downloadgo-bumpver-8e365468cec859da974a5e617ab3eb8d0a59df63.tar.gz
doc: fix some formating
-rw-r--r--README.md30
1 files changed, 15 insertions, 15 deletions
diff --git a/README.md b/README.md
index cb107c9..dfe2e9b 100644
--- a/README.md
+++ b/README.md
@@ -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%
```