Skip to content

Commit

Permalink
chore: remove saveconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
avallete committed Nov 16, 2024
1 parent 5b2b8a3 commit 9a86741
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -1253,19 +1253,3 @@ func (e *experimental) validate() error {
}
return nil
}

// SaveConfig writes the configuration back to config.toml
func SaveConfig(conf config) error {
// Convert config to TOML format
data, err := ToTomlBytes(conf)
if err != nil {
return fmt.Errorf("failed to convert config to TOML: %w", err)
}

// Write to config.toml
if err := os.WriteFile("config.toml", data, 0644); err != nil {
return fmt.Errorf("failed to write config file: %w", err)
}

return nil
}

0 comments on commit 9a86741

Please sign in to comment.