refactor: add docs for ShouldPrint function
parent
d5f930e2f1
commit
4a9cc26a77
|
@ -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 {
|
func ShouldPrint(outputs []OutputConfig, quiet bool) bool {
|
||||||
for _, c := range outputs {
|
for _, c := range outputs {
|
||||||
p := GetPrinter(c, quiet)
|
p := GetPrinter(c, quiet)
|
||||||
|
|
Loading…
Reference in New Issue