From 4fbb3fcb0a84d4bae75b80d213d392f4d6be2427 Mon Sep 17 00:00:00 2001 From: Jacob See <5027680+jacobsee@users.noreply.github.com> Date: Fri, 5 Apr 2024 12:29:16 -0700 Subject: [PATCH] Update root cmd & viper binding for policydir flag (#239) Signed-off-by: Jacob See <5027680+jacobsee@users.noreply.github.com> --- cmd/root.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/root.go b/cmd/root.go index 8b0263d2..0318a5a7 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -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.