diff --git a/cmd/cluster.go b/cmd/cluster.go index d8f4932..4d05544 100644 --- a/cmd/cluster.go +++ b/cmd/cluster.go @@ -1481,7 +1481,10 @@ func (c *config) clusterMachines(args []string) error { ms := shoot.Payload.Machines ms = append(ms, shoot.Payload.Firewalls...) fmt.Println("\nMachines:") - return c.listPrinter.Print(ms) + + // TODO: when migrating to new table printer from metal-lib, use existing listprinter! + // return c.listPrinter.Print(ms) + return output.New().Print(ms) } func (c *config) clusterLogs(args []string) error { diff --git a/go.mod b/go.mod index d13b2d5..4026f45 100644 --- a/go.mod +++ b/go.mod @@ -28,6 +28,7 @@ require ( github.com/spf13/cobra v1.8.1 github.com/spf13/viper v1.19.0 github.com/stretchr/testify v1.9.0 + golang.org/x/exp v0.0.0-20240707233637-46b078467d37 golang.org/x/sync v0.7.0 gopkg.in/yaml.v3 v3.0.1 k8s.io/api v0.28.2 @@ -175,7 +176,6 @@ require ( go4.org/mem v0.0.0-20220726221520-4f986261bf13 // indirect go4.org/netipx v0.0.0-20231129151722-fdeea329fbba // indirect golang.org/x/crypto v0.25.0 // indirect - golang.org/x/exp v0.0.0-20240707233637-46b078467d37 // indirect golang.org/x/mod v0.19.0 // indirect golang.org/x/net v0.27.0 // indirect golang.org/x/oauth2 v0.21.0 // indirect