github.com/olli-ai/jx/v2@v2.0.400-0.20210921045218-14731b4dd448/pkg/cmd/opts/devpod.go (about) 1 package opts 2 3 import "github.com/spf13/cobra" 4 5 //CommonDevPodOptions are common flags that are to be applied across all DevPod commands 6 type CommonDevPodOptions struct { 7 Username string 8 } 9 10 // AddCommonDevPodFlags adds the dev pod common flags to the given cobra command 11 func (o *CommonDevPodOptions) AddCommonDevPodFlags(cmd *cobra.Command) { 12 cmd.Flags().StringVarP(&o.Username, "username", "", "", "The username to create the DevPod. If not specified defaults to the current operating system user or $USER'") 13 }