Skip to content

Commit 4fbb3fc

Browse files
authored
Update root cmd & viper binding for policydir flag (#239)
Signed-off-by: Jacob See <[email protected]>
1 parent 23c9d73 commit 4fbb3fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/root.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ func init() {
6868
viperx.MustBindFlag(viper.GetViper(), "spicedb.verifyca", rootCmd.PersistentFlags().Lookup("spicedb-verifyca"))
6969
rootCmd.PersistentFlags().String("spicedb-prefix", "", "spicedb prefix")
7070
viperx.MustBindFlag(viper.GetViper(), "spicedb.prefix", rootCmd.PersistentFlags().Lookup("spicedb-prefix"))
71-
rootCmd.PersistentFlags().String("spicedb-policy", "", "spicedb policy file")
72-
viperx.MustBindFlag(viper.GetViper(), "spicedb.policyFile", rootCmd.PersistentFlags().Lookup("spicedb-policy"))
71+
rootCmd.PersistentFlags().String("spicedb-policydir", "", "spicedb policy directory")
72+
viperx.MustBindFlag(viper.GetViper(), "spicedb.policyDir", rootCmd.PersistentFlags().Lookup("spicedb-policydir"))
7373
}
7474

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

0 commit comments

Comments
 (0)