Skip to content

Commit

Permalink
Update root cmd & viper binding for policydir flag (#239)
Browse files Browse the repository at this point in the history
Signed-off-by: Jacob See <[email protected]>
  • Loading branch information
jacobsee authored Apr 5, 2024
1 parent 23c9d73 commit 4fbb3fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ func init() {
viperx.MustBindFlag(viper.GetViper(), "spicedb.verifyca", rootCmd.PersistentFlags().Lookup("spicedb-verifyca"))
rootCmd.PersistentFlags().String("spicedb-prefix", "", "spicedb prefix")
viperx.MustBindFlag(viper.GetViper(), "spicedb.prefix", rootCmd.PersistentFlags().Lookup("spicedb-prefix"))
rootCmd.PersistentFlags().String("spicedb-policy", "", "spicedb policy file")
viperx.MustBindFlag(viper.GetViper(), "spicedb.policyFile", rootCmd.PersistentFlags().Lookup("spicedb-policy"))
rootCmd.PersistentFlags().String("spicedb-policydir", "", "spicedb policy directory")
viperx.MustBindFlag(viper.GetViper(), "spicedb.policyDir", rootCmd.PersistentFlags().Lookup("spicedb-policydir"))
}

// initConfig reads in config file and ENV variables if set.
Expand Down

0 comments on commit 4fbb3fc

Please sign in to comment.