diff options
Diffstat (limited to 'client/go/cmd/root.go')
-rw-r--r-- | client/go/cmd/root.go | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/client/go/cmd/root.go b/client/go/cmd/root.go index 461c2ea5bf0..e2f03cbc7ce 100644 --- a/client/go/cmd/root.go +++ b/client/go/cmd/root.go @@ -28,6 +28,7 @@ import ( const ( applicationFlag = "application" instanceFlag = "instance" + clusterFlag = "cluster" zoneFlag = "zone" targetFlag = "target" waitFlag = "wait" @@ -178,14 +179,16 @@ func (c *CLI) configureFlags() map[string]*pflag.Flag { target string application string instance string + cluster string zone string waitSecs int color string quiet bool ) c.cmd.PersistentFlags().StringVarP(&target, targetFlag, "t", "local", `The target platform to use. Must be "local", "cloud", "hosted" or an URL`) - c.cmd.PersistentFlags().StringVarP(&application, applicationFlag, "a", "", "The application to manage") - c.cmd.PersistentFlags().StringVarP(&instance, instanceFlag, "i", "", "The instance of the application to manage") + c.cmd.PersistentFlags().StringVarP(&application, applicationFlag, "a", "", "The application to use") + c.cmd.PersistentFlags().StringVarP(&instance, instanceFlag, "i", "", "The instance of the application to use") + c.cmd.PersistentFlags().StringVarP(&cluster, clusterFlag, "C", "", "The container cluster to use. This is only required for applications with multiple clusters") c.cmd.PersistentFlags().StringVarP(&zone, zoneFlag, "z", "", "The zone to use. This defaults to a dev zone") c.cmd.PersistentFlags().IntVarP(&waitSecs, waitFlag, "w", 0, "Number of seconds to wait for a service to become ready") c.cmd.PersistentFlags().StringVarP(&color, colorFlag, "c", "auto", `Whether to use colors in output. Must be "auto", "never", or "always"`) |