From d2abdeb0e133f2f714e40b42bc6663085a214ad3 Mon Sep 17 00:00:00 2001 From: phm07 <22707808+phm07@users.noreply.github.com> Date: Mon, 19 Aug 2024 11:27:33 +0200 Subject: [PATCH] do not print messages when quiet is set --- internal/state/actions.go | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/internal/state/actions.go b/internal/state/actions.go index fb064042..aebd2c5c 100644 --- a/internal/state/actions.go +++ b/internal/state/actions.go @@ -18,17 +18,21 @@ func (c *state) WaitForActions(cmd *cobra.Command, ctx context.Context, actions if err != nil { return err } + quiet, err := config.OptionQuiet.Get(c.Config()) + if err != nil { + return err + } + if !wait { + if quiet { + return nil + } for _, action := range actions { ui.SkipActionWaitMessage(action) } return nil } - quiet, err := config.OptionQuiet.Get(c.Config()) - if err != nil { - return err - } if quiet { return c.Client().Action().WaitFor(ctx, actions...) }