cmd

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnvKopilotToken = "KOPILOT_TOKEN"
	EnvKopilotLang  = "KOPILOT_LANG"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	// set by env vars
	Token string
	Lang  string
	// contains filtered or unexported fields
}

func NewOptions

func NewOptions() Options

func (*Options) AddFlags

func (o *Options) AddFlags(flags *pflag.FlagSet)

func (*Options) Complete

func (o *Options) Complete() error

func (*Options) NewBuilder

func (o *Options) NewBuilder() *resource.Builder

func (*Options) NewChatGPTClient

func (o *Options) NewChatGPTClient(spinnerSuffix string) client.Client

func (*Options) NewKubeClientSet

func (o *Options) NewKubeClientSet() (kubernetes.Interface, error)

func (*Options) ToRawKubeConfigLoader

func (o *Options) ToRawKubeConfigLoader() clientcmd.ClientConfig

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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