var useContextExample … type useContextOptions … // NewCmdConfigUseContext returns a Command instance for 'config use-context' sub command func NewCmdConfigUseContext(out io.Writer, configAccess clientcmd.ConfigAccess) *cobra.Command { … } func (o useContextOptions) run() error { … } func (o *useContextOptions) complete(cmd *cobra.Command) error { … } func (o useContextOptions) validate(config *clientcmdapi.Config) error { … }