MCPcopy Create free account
hub / github.com/cronitorio/cronitor-cli / issueOutputToTarget

Function issueOutputToTarget

cmd/issue.go:562–572  ·  view source on GitHub ↗
(content string)

Source from the content-addressed store, hash-verified

560}
561
562func issueOutputToTarget(content string) {
563 if issueOutput != "" {
564 if err := os.WriteFile(issueOutput, []byte(content+"\n"), 0644); err != nil {
565 Error(fmt.Sprintf("Failed to write to %s: %s", issueOutput, err))
566 os.Exit(1)
567 }
568 Info(fmt.Sprintf("Output written to %s", issueOutput))
569 } else {
570 fmt.Println(content)
571 }
572}

Callers 1

issue.goFile · 0.85

Calls 2

ErrorFunction · 0.85
InfoFunction · 0.85

Tested by

no test coverage detected