Skip to content

Commit

Permalink
Show PublishSnapshot messages for check/query even if output=none
Browse files Browse the repository at this point in the history
  • Loading branch information
kaidaguerre committed Mar 5, 2024
1 parent 1626726 commit 0089ba3
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions internal/controldisplay/snapshot.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ import (
"fmt"
"github.com/turbot/pipe-fittings/steampipeconfig"

"github.com/spf13/viper"
"github.com/turbot/pipe-fittings/cloud"
"github.com/turbot/pipe-fittings/constants"
"github.com/turbot/pipe-fittings/modconfig"
"github.com/turbot/pipe-fittings/statushooks"
"github.com/turbot/powerpipe/internal/controlexecute"
Expand Down Expand Up @@ -72,10 +70,8 @@ func PublishSnapshot(ctx context.Context, e *controlexecute.ExecutionTree, shoul
if err != nil {
return err
}
if viper.GetBool(constants.ArgProgress) {
statushooks.Done(ctx)
fmt.Println(message) //nolint:forbidigo // acceptable
}
statushooks.Done(ctx)
fmt.Println(message) //nolint:forbidigo // acceptable
return nil

}

0 comments on commit 0089ba3

Please sign in to comment.