1
0
mirror of synced 2026-02-13 13:06:56 +00:00

Use stdout when exporting objects

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
This commit is contained in:
Stefan Prodan
2025-09-16 00:47:12 +03:00
parent 46aa068fda
commit f719d2bf76
7 changed files with 19 additions and 32 deletions

View File

@@ -247,3 +247,8 @@ While we try our best to not introduce breaking changes, they may occur when
we adapt to new features and/or find better ways to facilitate what it does.`
return fmt.Sprintf("%s\n\n%s", strings.TrimSpace(desc), previewNote)
}
// printlnStdout prints the given text to stdout with a newline.
func printlnStdout(txt string) {
_, _ = rootCmd.OutOrStdout().Write([]byte(txt + "\n"))
}