MCPcopy Create free account
hub / github.com/compozy/agh / writeRawCommandOutput

Function writeRawCommandOutput

internal/cli/format.go:186–194  ·  view source on GitHub ↗
(cmd *cobra.Command, text string)

Source from the content-addressed store, hash-verified

184}
185
186func writeRawCommandOutput(cmd *cobra.Command, text string) error {
187 writer := cmd.OutOrStdout()
188 if strings.HasSuffix(text, "\n") {
189 _, err := fmt.Fprint(writer, text)
190 return err
191 }
192 _, err := fmt.Fprintln(writer, text)
193 return err
194}
195
196func renderHumanSection(title string, rows []keyValue) string {
197 rendered, err := renderHumanSectionResult(title, rows)

Callers 5

streamLogsFunction · 0.85
streamSessionEventsFunction · 0.85
writeCommandOutputFunction · 0.85
writeSupportBundleResultFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected