kubernetes/staging/src/k8s.io/kubectl/pkg/cmd/config/get_contexts.go

type GetContextsOptions

var getContextsLong

var getContextsExample

// NewCmdConfigGetContexts creates a command object for the "get-contexts" action, which
// retrieves one or more contexts from a kubeconfig.
func NewCmdConfigGetContexts(streams genericiooptions.IOStreams, configAccess clientcmd.ConfigAccess) *cobra.Command {}

// Complete assigns GetContextsOptions from the args.
func (o *GetContextsOptions) Complete(cmd *cobra.Command, args []string) error {}

// Validate ensures the of output format
func (o *GetContextsOptions) Validate() error {}

// RunGetContexts implements all the necessary functionality for context retrieval.
func (o GetContextsOptions) RunGetContexts() error {}

func printContextHeaders(out io.Writer, nameOnly bool) error {}

func printContext(name string, context *clientcmdapi.Context, w io.Writer, nameOnly, current bool) error {}