From 8e365468cec859da974a5e617ab3eb8d0a59df63 Mon Sep 17 00:00:00 2001 From: Max Resnick Date: Tue, 23 Jan 2024 22:21:14 -0800 Subject: doc: fix some formating --- README.md | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'README.md') 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% ``` -- cgit v1.2.3