diff --git a/cmd/vaul7y/main.go b/cmd/vaul7y/main.go index dfa2f7c..356d31f 100644 --- a/cmd/vaul7y/main.go +++ b/cmd/vaul7y/main.go @@ -18,7 +18,7 @@ import ( ) var refreshIntervalDefault = time.Second * 30 -var version = "0.0.3" +var version = "0.0.4" type options struct { Version bool `short:"v" long:"version" description:"Show Damon version"` @@ -26,9 +26,6 @@ type options struct { func main() { - // Check for required Vault env vars - checkForVaultAddress() - var opts options _, err := flags.ParseArgs(&opts, os.Args) if err != nil { @@ -39,6 +36,8 @@ func main() { fmt.Println("vaul7y", version) os.Exit(0) } + // Check for required Vault env vars + checkForVaultAddress() logFile, logger := config.SetupLogger() defer logFile.Close() diff --git a/docs/usage.md b/docs/usage.md index 216bc45..a4a6bc5 100644 --- a/docs/usage.md +++ b/docs/usage.md @@ -5,7 +5,25 @@ ### Brew ---> Not currently supported +``` +brew install dkyanakiev/tap/vaul7y + +# to upgrade +brew update && brew upgrade vaul7y + +``` + +### Download from GitHub + +Download the relevant binary for your operating system (macOS = Darwin) from +the [latest Github release](https://github.com/dkyanakiev/vaul7y/releases). Unpack it, then move the binary to +somewhere accessible in your `PATH`, e.g. `mv ./vaul7y /usr/local/bin`. + +### > Using [go installed on your machine](https://go.dev/doc/install) + +```shell +go install github.com/dkyanakiev/vaul7y@latest +``` ### Building from source and Run Vaul7y