Skip to content

spudtrooper/gitversion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gitversion

Tool to add a --version flag to your binary the prints the git version.

This will add some files to the gitversion package that can be changed with the --pkg flag. You should add the following to your main:

if gitversion.CheckVersionFlag() {
    return
}

Usage

Install:

go install github.com/spudtrooper/gitversion

Create the files:

~/go/bin/gitversion

Increment the tag's most minor version (e.g. v0.0.1 to v0.0.2)

~/go/bin/gitversion --inc

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published