SaveTo writes the config to a file.
(path string)
| 116 | |
| 117 | // SaveTo writes the config to a file. |
| 118 | func (c *ConfigFile) SaveTo(path string) error { |
| 119 | return os.WriteFile(filepath.Join(path, DefaultName), c.Bytes(), 0o644) |
| 120 | } |
| 121 | |
| 122 | // TODO: Can we remove SaveTo and just use Save()? |
| 123 | func (c *ConfigFile) Save() error { |