aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-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%
```