MCPcopy
hub / github.com/nikivdev/go / reportError

Function reportError

cli/flow/main.go:2885–2891  ·  view source on GitHub ↗
(ctx *snap.Context, err error)

Source from the content-addressed store, hash-verified

2883}
2884
2885func reportError(ctx *snap.Context, err error) error {
2886 if err == nil {
2887 return nil
2888 }
2889 fmt.Fprintln(ctx.Stderr(), err.Error())
2890 return err
2891}
2892
2893func generateCommitMessage(parent context.Context, apiKey string, diff string, status string, truncated bool) (string, error) {
2894 client := openai.NewClient(option.WithAPIKey(apiKey))

Callers 15

openDocFunction · 0.85
runOpenSqliteFunction · 0.85
runFocusCursorWindowFunction · 0.85
runListWindowsOfAppFunction · 0.85
runShExecFunction · 0.85
runYoutubeToSoundFunction · 0.85
runSpotifyPlayFunction · 0.85
runCommitFunction · 0.85
runCommitPushFunction · 0.85
runCommitReviewAndPushFunction · 0.85
prepareCommitFunction · 0.85
commitWithPayloadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected