move RunService from CLI to the client, print output in the command

This commit is contained in:
Pavel Sviderski
2024-11-13 19:52:46 +10:00
parent 6736839ccb
commit 5e79697505
3 changed files with 48 additions and 27 deletions
+1 -3
View File
@@ -37,9 +37,7 @@ func runList(ctx context.Context, uncli *cli.CLI, clusterName string) error {
if err != nil {
return fmt.Errorf("connect to cluster: %w", err)
}
defer func() {
_ = c.Close()
}()
defer c.Close()
listResp, err := c.ListMachines(ctx, &emptypb.Empty{})
if err != nil {