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

Function outputGroupToTarget

cmd/group.go:426–436  ·  view source on GitHub ↗
(content string)

Source from the content-addressed store, hash-verified

424}
425
426func outputGroupToTarget(content string) {
427 if groupOutput != "" {
428 if err := os.WriteFile(groupOutput, []byte(content+"\n"), 0644); err != nil {
429 Error(fmt.Sprintf("Failed to write to file: %s", err))
430 os.Exit(1)
431 }
432 Info(fmt.Sprintf("Output written to %s", groupOutput))
433 } else {
434 fmt.Println(content)
435 }
436}

Callers 1

group.goFile · 0.85

Calls 2

ErrorFunction · 0.85
InfoFunction · 0.85

Tested by

no test coverage detected