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

Function writeServiceStatusFile

internal/services/status.go:113–120  ·  view source on GitHub ↗
(path string, status *ServiceStatus)

Source from the content-addressed store, hash-verified

111}
112
113func writeServiceStatusFile(path string, status *ServiceStatus) error {
114 content, err := json.Marshal(status)
115 if err != nil {
116 return errors.WithStack(err)
117 }
118 _ = os.MkdirAll(filepath.Dir(path), 0o755) // create path, ignore error
119 return errors.WithStack(os.WriteFile(path, content, 0o644))
120}
121
122//lint:ignore U1000 Ignore unused function temporarily for debugging
123func updateServiceStatusOnRemote(projectDir string, s *ServiceStatus) error {

Callers 2

listenToEventsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected