diff --git a/README.md b/README.md index c7cfc0e..d8f3a8e 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ ### The "Version" package -============= +------------- This package provides --version flag feature to your cli. It recognize both short and long flags. Version number is automatically added from the latest tag in your git repo. @@ -9,7 +9,7 @@ automatically added from the latest tag in your git repo. ```shell go get code.foilhatguy.casa/pub/version ``` -2. Add the package as a tool dependency to your project, +2. Add the package as a tool dependency to your project in tools.go: ```go // +build tools @@ -32,6 +32,7 @@ The package will detect a version number from the latest git tag from your project. Then it will generate a **version.go** file as a part of the main package. It will contain a version number as a constant and code for --version flag detection. + 5. Build and run your application with the --version flag. ```shell go run . --version