diff --git a/src/cmd/package.go b/src/cmd/package.go index 91b46a2243..22e866cdbf 100644 --- a/src/cmd/package.go +++ b/src/cmd/package.go @@ -275,7 +275,11 @@ var packageListCmd = &cobra.Command{ }) } + // NOTE(mkcp): Renders table with message. header := []string{"Package", "Version", "Components"} + // HACK(mkcp): Similar to `package inspect`, we do want to use message here but we have to make sure our feature + // flagging doesn't disable this. Nothing happens after this so it's safe, but still very hacky. + message.InitializePTerm(logger.DestinationDefault) message.Table(header, packageData) // Print out any unmarshalling errors diff --git a/src/pkg/cluster/cluster.go b/src/pkg/cluster/cluster.go index a97b3066bc..73557c4ce2 100644 --- a/src/pkg/cluster/cluster.go +++ b/src/pkg/cluster/cluster.go @@ -18,6 +18,7 @@ import ( "github.com/avast/retry-go/v4" + "github.com/zarf-dev/zarf/src/pkg/logger" "github.com/zarf-dev/zarf/src/pkg/message" "k8s.io/client-go/dynamic" "k8s.io/client-go/tools/clientcmd" @@ -40,8 +41,10 @@ type Cluster struct { // NewClusterWithWait creates a new Cluster instance and waits for the given timeout for the cluster to be ready. func NewClusterWithWait(ctx context.Context) (*Cluster, error) { + l := logger.From(ctx) spinner := message.NewProgressSpinner("Waiting for cluster connection") defer spinner.Stop() + l.Info("waiting for cluster connection") c, err := NewCluster() if err != nil {