Skip to content

Commit

Permalink
do not print messages when quiet is set
Browse files Browse the repository at this point in the history
  • Loading branch information
phm07 committed Aug 19, 2024
1 parent 7fe0904 commit d2abdeb
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions internal/state/actions.go
Original file line number Diff line number Diff line change
Expand Up @@ -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...)
}
Expand Down

0 comments on commit d2abdeb

Please sign in to comment.