mirror of
https://github.com/fluxcd/flux2.git
synced 2026-05-05 09:38:50 +00:00
Use stdout when exporting objects
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
This commit is contained in:
parent
46aa068fda
commit
f719d2bf76
7 changed files with 19 additions and 32 deletions
|
|
@ -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"))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue