MCPcopy Index your code
hub / github.com/jetify-com/devbox / SaveTo

Method SaveTo

internal/devconfig/configfile/file.go:118–120  ·  view source on GitHub ↗

SaveTo writes the config to a file.

(path string)

Source from the content-addressed store, hash-verified

116
117// SaveTo writes the config to a file.
118func (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()?
123func (c *ConfigFile) Save() error {

Callers 5

SaveMethod · 0.95
pullTextDevboxConfigMethod · 0.80
secretsInitFuncFunction · 0.80
saveCfgMethod · 0.80
TestDefaultFunction · 0.80

Calls 1

BytesMethod · 0.95

Tested by 1

TestDefaultFunction · 0.64