Fix overwrite not working
This commit is contained in:
@@ -234,6 +234,11 @@ func DefaultConfigFilePath() (string, error) {
|
||||
|
||||
}
|
||||
|
||||
func (c *Config) ToWriter(w io.Writer) error {
|
||||
encoder := toml.NewEncoder(w)
|
||||
return encoder.Encode(c)
|
||||
}
|
||||
|
||||
func (c *Config) ToDefaultFile() error {
|
||||
if err := CreateDefaultConfigDir(); err != nil {
|
||||
return err
|
||||
|
Reference in New Issue
Block a user