MCPcopy Create free account
hub / github.com/cli/cli / newRecorder

Function newRecorder

script/api-host-gateway/gateway/main.go:285–291  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

283}
284
285func newRecorder(path string) (*recorder, error) {
286 file, err := os.OpenFile(path, os.O_CREATE|os.O_WRONLY|os.O_APPEND, 0o600)
287 if err != nil {
288 return nil, err
289 }
290 return &recorder{file: file}, nil
291}
292
293func (r *recorder) Write(entry *record) {
294 line, err := json.Marshal(entry)

Callers 3

runFunction · 0.85

Calls

no outgoing calls