MCPcopy Index your code
hub / github.com/codehamr/codehamr / Save

Method Save

internal/config/config.go:262–267  ·  view source on GitHub ↗

Save rewrites config.yaml.

()

Source from the content-addressed store, hash-verified

260
261// Save rewrites config.yaml.
262func (c *Config) Save() error {
263 if c.Dir == "" {
264 return errors.New("config: Dir not set")
265 }
266 return writeYAML(filepath.Join(c.Dir, "config.yaml"), c)
267}
268
269func writeYAML(path string, v any) error {
270 b, err := yaml.Marshal(v)

Calls 1

writeYAMLFunction · 0.85