Skip to content

Commit

Permalink
do not bind version
Browse files Browse the repository at this point in the history
  • Loading branch information
steviebps committed Sep 9, 2021
1 parent 57f433b commit ac7cc71
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ func init() {
rootCmd.SetVersionTemplate(`{{printf "%s\n" .Version}}`)
rootCmd.PersistentFlags().StringVar(&cfgFile, "config", "", "rein configuration file")
rootCmd.PersistentFlags().String("app-version", "", "runs all commands with a specified version")
viper.BindPFlag("app-version", rootCmd.PersistentFlags().Lookup("app-version"))
}

// initConfig reads in config file and ENV variables if set.
Expand Down
3 changes: 1 addition & 2 deletions configs/rein.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
chamber: "/your/file/location/masterChamber.json"
version: "v1.0.0"
chamber: "/home/steve/go/src/github.com/steviebps/rein/configs/masterChamber.json"

0 comments on commit ac7cc71

Please sign in to comment.