Documentation ¶
Index ¶
- func NewCmdConfig(config *configuration.Configuration) *cobra.Command
- func NewCmdConfigCurrentContext(config *configuration.Configuration) *cobra.Command
- func NewCmdConfigDeleteContext(config *configuration.Configuration) *cobra.Command
- func NewCmdConfigGetContexts(config *configuration.Configuration) *cobra.Command
- func NewCmdConfigRenameContext(config *configuration.Configuration) *cobra.Command
- func NewCmdConfigSetContext(config *configuration.Configuration) *cobra.Command
- func NewCmdConfigUseContext(config *configuration.Configuration) *cobra.Command
- func RunCurrentContext(config *configuration.Configuration) error
- func ValidContexts(config *configuration.Configuration, hasArgs bool) ([]string, cobra.ShellCompDirective)
- type GetContextsOptions
- type RenameContextOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCmdConfig ¶
func NewCmdConfig(config *configuration.Configuration) *cobra.Command
func NewCmdConfigCurrentContext ¶
func NewCmdConfigCurrentContext(config *configuration.Configuration) *cobra.Command
func NewCmdConfigDeleteContext ¶
func NewCmdConfigDeleteContext(config *configuration.Configuration) *cobra.Command
func NewCmdConfigGetContexts ¶
func NewCmdConfigGetContexts(config *configuration.Configuration) *cobra.Command
func NewCmdConfigRenameContext ¶
func NewCmdConfigRenameContext(config *configuration.Configuration) *cobra.Command
func NewCmdConfigSetContext ¶
func NewCmdConfigSetContext(config *configuration.Configuration) *cobra.Command
func NewCmdConfigUseContext ¶
func NewCmdConfigUseContext(config *configuration.Configuration) *cobra.Command
func RunCurrentContext ¶
func RunCurrentContext(config *configuration.Configuration) error
func ValidContexts ¶
func ValidContexts(config *configuration.Configuration, hasArgs bool) ([]string, cobra.ShellCompDirective)
Types ¶
type GetContextsOptions ¶
type GetContextsOptions struct {
// contains filtered or unexported fields
}
func (*GetContextsOptions) Complete ¶
func (o *GetContextsOptions) Complete(cmd *cobra.Command, args []string)
func (*GetContextsOptions) RunGetContexts ¶
func (o *GetContextsOptions) RunGetContexts()
type RenameContextOptions ¶
type RenameContextOptions struct {
// contains filtered or unexported fields
}
func (*RenameContextOptions) Complete ¶
func (o *RenameContextOptions) Complete(cmd *cobra.Command, args []string) error
func (*RenameContextOptions) RunRenameContext ¶
func (o *RenameContextOptions) RunRenameContext(config *configuration.Configuration) error
func (*RenameContextOptions) Validate ¶
func (o *RenameContextOptions) Validate() error
Click to show internal directories.
Click to hide internal directories.