From fceae3818b104afabb8bb0ec3f42d8f9bcd0354f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20=C5=A0ediv=C3=BD?= Date: Sun, 14 Mar 2021 13:06:48 +0100 Subject: [PATCH] default object members provider. --- internal/config/member.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/config/member.go b/internal/config/member.go index 8fe03cb8..445d0bb4 100644 --- a/internal/config/member.go +++ b/internal/config/member.go @@ -13,12 +13,12 @@ type Member struct { } func (Member) Init(cmd *cobra.Command) error { - cmd.PersistentFlags().String("members_provider", "file", "choose members provider") + cmd.PersistentFlags().String("members_provider", "object", "choose members provider") if err := viper.BindPFlag("members_provider", cmd.PersistentFlags().Lookup("members_provider")); err != nil { return err } - cmd.PersistentFlags().String("members_file_path", "/home/neko/members.json", "mebmer file provider path") + cmd.PersistentFlags().String("members_file_path", "", "mebmer file provider path") if err := viper.BindPFlag("members_file_path", cmd.PersistentFlags().Lookup("members_file_path")); err != nil { return err }