Skip to content

Commit

Permalink
feat(Config): Update the config write function
Browse files Browse the repository at this point in the history
  • Loading branch information
HRemonen committed Oct 28, 2023
1 parent 6405918 commit 0a71d85
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,10 @@ func ReadConfigFile() (*Config, error) {

// WriteConfigFile writes the configuration file to the user's home directory.
func WriteConfigFile(config *Config) error {
viper.SetConfigFile(path.Join(UserHomeDir, configFile))
viper.AddConfigPath(UserHomeDir)
viper.SetConfigType("yaml")
viper.SetConfigName(configFile)

Check failure on line 80 in pkg/config/config.go

View workflow job for this annotation

GitHub Actions / lint

File is not `gofumpt`-ed (gofumpt)
viper.Set("commit_types", config.CommitTypes)
viper.Set("skip_ci_types", config.SkipCITypes)

Expand Down

0 comments on commit 0a71d85

Please sign in to comment.