Skip to content

sjquant/flopha

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.