Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Revert "Pass command-line arguments" #218

Merged
merged 1 commit into from
Jan 26, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions cmd/controller/cmd/root.go
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -97,14 +97,12 @@ func init() {
rootCmd.AddCommand(viper.GetConfigCommand())
}

func initConfig(cmd *cobra.Command, _ []string) error {
func initConfig(_ *cobra.Command, _ []string) error {
configAccessor = viper.NewAccessor(config.Options{
StrictMode: true,
SearchPaths: []string{cfgFile},
})

configAccessor.InitializePflags(cmd.Flags())

err := configAccessor.UpdateConfig(context.TODO())
if err != nil {
return err
Expand Down