refactor: add docs for ShouldPrint function

main
sundowndev 2021-11-12 17:01:23 +01:00
parent d5f930e2f1
commit 4a9cc26a77
1 changed files with 1 additions and 0 deletions

View File

@ -62,6 +62,7 @@ func GetOutput(config OutputConfig) Output {
}
}
// ShouldPrint indicate if we should use the global output or not (e.g. when outputting to stdout).
func ShouldPrint(outputs []OutputConfig, quiet bool) bool {
for _, c := range outputs {
p := GetPrinter(c, quiet)