type TokenOptions … var tokenLong … var tokenExample … func boundObjectKindToAPIVersions() map[string]string { … } func NewTokenOpts(ioStreams genericiooptions.IOStreams) *TokenOptions { … } // NewCmdCreateToken returns an initialized Command for 'create token' sub command func NewCmdCreateToken(f cmdutil.Factory, ioStreams genericiooptions.IOStreams) *cobra.Command { … } // Complete completes all the required options func (o *TokenOptions) Complete(f cmdutil.Factory, cmd *cobra.Command, args []string) error { … } // Validate makes sure provided values for TokenOptions are valid func (o *TokenOptions) Validate() error { … } // Run requests a token func (o *TokenOptions) Run() error { … }