sjquant / flopha

Flopha is a tool to help your git workflow and version control.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

flopha

flopha is a tool to help your github flow.

Install

Shell (Mac, Linux):

curl -fsSL https://raw.githubusercontent.com/sjquant/flopha/main/scripts/install.sh | sh

Getting Started

  1. You can get the last version of current git repository based on a given pattern.

    flohpa last-version --pattern "v{major}.{minor}.{patch}"

    You can do like this.

    flopha last-version --pattern "desktop@{major}.{minor}.{patch}"
  2. You can directly checkout the last-version with --checkout option. If you want to checkout to the last version for hotfix, this might be useful.

    flopha last-version --checkout
  3. You can calculate and print the next version based on a given pattern.

    flopha next-version --pattern "pattern@{major}.{minor}.{patch}"
  4. You can tag current head as next version. If you want to tag your head after hotfix, this might be useful.

    flopha next-version --pattern "pattern@{major}.{minor}.{patch}" --tag

Notes

I wanted to make my github workflow at my company easier, and start my project with Rust. It might not fit your needs. If you have any opinions to improve flopha, I'm very open to them.

About

Flopha is a tool to help your git workflow and version control.

License:MIT License


Languages

Language:Rust 93.2%Language:Shell 6.8%