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

Function writeRawInitHookFile

internal/shellgen/scripts.go:90–99  ·  view source on GitHub ↗
(devbox devboxer, body string)

Source from the content-addressed store, hash-verified

88}
89
90func writeRawInitHookFile(devbox devboxer, body string) (err error) {
91 script, err := createScriptFile(devbox, HooksFilename)
92 if err != nil {
93 return errors.WithStack(err)
94 }
95 defer script.Close() // best effort: close file
96
97 _, err = script.WriteString(body)
98 return errors.WithStack(err)
99}
100
101func WriteScriptFile(devbox devboxer, name, body string) (err error) {
102 script, err := createScriptFile(devbox, name)

Callers 1

WriteScriptsToFilesFunction · 0.85

Calls 1

createScriptFileFunction · 0.85

Tested by

no test coverage detected