From 5533c6b8cf315eecbcdba577d2c0d6a5cbe6460c Mon Sep 17 00:00:00 2001 From: sjquant Date: Fri, 6 Sep 2024 19:00:22 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20Improve=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index c221d6e..f7b9a22 100644 --- a/README.md +++ b/README.md @@ -60,9 +60,15 @@ curl -fsSL https://raw.githubusercontent.com/sjquant/flopha/main/scripts/install flopha next-version --pattern "release/{major}.{minor}.{patch}" --source branch --create ``` -## CLI Options +## CLI Commands and Options -#### Options for NextVersion +### NextVersion + +Calculates and displays the next version based on the current version in the repository. + +#### Usage + +#### Options - `-i`, `--increment `: Specify the version part to increment. Options are: @@ -86,7 +92,13 @@ curl -fsSL https://raw.githubusercontent.com/sjquant/flopha/main/scripts/install - `-c`, `--create`: Creates a new tag or branch -#### Options for LastVersion +### LastVersion + +Retrieves and displays the most recent version tag or branch in the repository that matches a specified pattern. + +#### Usage + +#### Options - `-p`, `--pattern `: Get the last version based on a given pattern (e.g., `v{major}.{minor}.{patch}`). @@ -99,10 +111,6 @@ curl -fsSL https://raw.githubusercontent.com/sjquant/flopha/main/scripts/install - `-c`, `--checkout`: Checks out the last version -### LastVersion - -Finds the latest version tag or branch in the repository matching a given pattern. - ## Why Choose flopha? - **Simplify Semantic Versioning**: Automate version calculations based on your preferred patterns.