{"modulePath":"github.com/kcp-dev/cli","version":"v0.34.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package base\n\n## Types\n\n```go\ntype Options struct {\n\t// OptOutOfDefaultKubectlFlags indicates that the standard kubectl/kubeconfig-related flags should not be bound\n\t// by default.\n\tOptOutOfDefaultKubectlFlags bool\n\t// OptOutOfWorkspaceFlag indicates that the --workspace/-w flag should not be bound.\n\tOptOutOfWorkspaceFlag bool\n\t// OptOutOfWorkspaceFlagShorthand indicates that --workspace should be bound without its \"-w\"\n\t// shorthand, freeing \"-w\" for a command-specific flag.\n\tOptOutOfWorkspaceFlagShorthand bool\n\t// Kubeconfig specifies kubeconfig file(s).\n\tKubeconfig string\n\t// KubectlOverrides stores the extra client connection fields, such as context, user, etc.\n\tKubectlOverrides *clientcmd.ConfigOverrides\n\t// Workspace is an optional workspace path to target, overriding the current workspace in the kubeconfig.\n\tWorkspace string\n\n\tgenericclioptions.IOStreams\n\n\t// ClientConfig is the resolved cliendcmd.ClientConfig based on the client connection flags. This is only valid\n\t// after calling Complete.\n\tClientConfig clientcmd.ClientConfig\n}\n```\nOptions contains options common to most CLI plugins, including settings for connecting to kcp (kubeconfig, etc).\n\n```go\nfunc NewOptions(streams genericclioptions.IOStreams) *Options\n```\nNewOptions provides an instance of Options with default values.\n\n```go\nfunc (o *Options) BindFlags(cmd *cobra.Command)\n```\nBindFlags binds options fields to cmd's flagset.\n\n```go\nfunc (o *Options) Complete() error\n```\nComplete initializes ClientConfig based on Kubeconfig and KubectlOverrides.\n\n```go\nfunc (o *Options) Validate() error\n```\nValidate validates the configured options.\n\n","path":"github.com/kcp-dev/cli/pkg/base","name":"base","synopsis":"","isRedistributable":true}
