Skip to content

Commit

Permalink
refactor: Have yaml format apply to all config file
Browse files Browse the repository at this point in the history
  • Loading branch information
caffeine-addictt committed Apr 13, 2024
1 parent 3f8402c commit 66048c3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ func init() {
}

func initConfig() {
viper.SetConfigType("yaml")

home, err := homedir.Dir()
if err != nil {
fmt.Println("Failed to get home directory")
Expand All @@ -68,7 +70,6 @@ func initConfig() {
viper.AddConfigPath(".")
viper.AddConfigPath(home)
viper.SetConfigName(".video-manager")
viper.SetConfigType("yaml")
Debug("-c not supplied, looking for configuration file in " + home + " or pwd")
}

Expand Down

0 comments on commit 66048c3

Please sign in to comment.