Skip to content

Conversation

@jdewinne
Copy link
Member

Example output:

> replicated cluster nodegroup ls 190a93ec                                                                                                      
ID          NAME       DEFAULT    INSTANCE TYPE    NODES    DISK
c1955ee4    default    true       Standard_B2ms    1        50
4073a716    lkfsqe     false      Standard_B2ms    1        100
47124127    zrbwpm     false      Standard_B2ms    1        100

}
parent.AddCommand(cmd)

cmd.Flags().StringVar(&r.outputFormat, "output", "table", "The output format to use. One of: json|table (default: table)")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i would add wide here for consistency even if it just outputs the same as table

return err
}
} else if outputFormat == "json" {
cAsByte, _ := json.MarshalIndent(addOns, "", " ")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

handle this error

@jdewinne jdewinne merged commit 30eba36 into main Feb 16, 2024
@jdewinne jdewinne deleted the joshd/sc-99234/nodegroups-replicated-cluster-nodegroup-ls branch February 16, 2024 18:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants