flopha is a powerful Git workflow tool designed to simplify version management and streamline your GitHub flow. It helps developers manage semantic versioning, automate tagging, and simplify branch management.
Shell (Mac, Linux):
curl -fsSL https://raw.githubusercontent.com/sjquant/flopha/main/scripts/install.sh | sh
-
Get the last version:
flopha last-version -
Check out to the last version:
flopha last-version --checkout -
Calculate the next version:
flopha next-version -
Use a custom version pattern:
flopha next-version --pattern "desktop@{major}.{minor}.{patch}" -
Create a new version tag:
flopha next-version --pattern "desktop@{major}.{minor}.{patch} --create -
Increment major version:
flopha next-version --increment major -
Use branch-based versioning:
flopha next-version --source branch -
Create a new version branch:
flopha next-version --pattern "release/{major}.{minor}.{patch}" --source branch --create
Calculates and displays the next version based on the current version in the repository.
-
-i,--increment <INCREMENT>: Specify the version part to increment. Options are:majorminorpatch
Default:
patch -
-p,--pattern <PATTERN>: Specify a custom pattern for version matching and generation. Use placeholders{major},{minor}, and{patch}. Example patterns:v{major}.{minor}.{patch}release-{major}.{minor}.{patch}
-
-v,--verbose: Enable verbose output for detailed information. -
-s,--source <SOURCE>: Specify the source for versioning. Options are:tag(default)branch
-
-c,--create: Creates a new tag or branch
Retrieves and displays the most recent version tag or branch in the repository that matches a specified pattern.
-
-p,--pattern <PATTERN>: Get the last version based on a given pattern (e.g.,v{major}.{minor}.{patch}). -
-v,--verbose: Enable verbose output for detailed information. -
-s,--source <SOURCE>: Specify the source for versioning. Options are:tag(default)branch
-
-c,--checkout: Checks out the last version
- Simplify Semantic Versioning: Automate version calculations based on your preferred patterns.
- Streamline Git Workflows: Easily manage tags and versions across multiple branches and projects.
- Flexible and Customizable: Adapt to various versioning schemes and project structures.
- Boost Productivity: Reduce manual version management tasks and potential errors.
flopha is released under the MIT License.