config

package
v0.1.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 24, 2023 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL