fix quiet flag (#2081)

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
This commit is contained in:
Alex Goodman
2023-08-31 10:40:11 -04:00
committed by GitHub
parent 51d38f8e59
commit 36d794febe
3 changed files with 26 additions and 1 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ func New(id clio.Identification) clio.Application {
// select a UI based on the logging configuration and state of stdin (if stdin is a tty)
func(cfg clio.Config) ([]clio.UI, error) {
noUI := ui.None(cfg.Log.Quiet)
if !cfg.Log.AllowUI(os.Stdin) {
if !cfg.Log.AllowUI(os.Stdin) || cfg.Log.Quiet {
return []clio.UI{noUI}, nil
}