Help us shape the future of Go! Take the 2026 Go Developer Survey

completion

package
v7.11.2 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterQueryValues

func FilterQueryValues(values []string, prefix string) []string

func IsItCompletionCommand

func IsItCompletionCommand(args []string) bool

Types

type BlindUI

type BlindUI struct{}

func (*BlindUI) AskForChoice

func (ui *BlindUI) AskForChoice(_ string, _ []string) (int, error)

func (*BlindUI) AskForConfirmation

func (ui *BlindUI) AskForConfirmation() error

func (*BlindUI) AskForConfirmationWithLabel

func (ui *BlindUI) AskForConfirmationWithLabel(_ string) error

func (*BlindUI) AskForPassword

func (ui *BlindUI) AskForPassword(_ string) (string, error)

func (*BlindUI) AskForText

func (ui *BlindUI) AskForText(_ string) (string, error)

func (*BlindUI) AskForTextWithDefaultValue

func (ui *BlindUI) AskForTextWithDefaultValue(_, _ string) (string, error)

func (*BlindUI) BeginLinef

func (ui *BlindUI) BeginLinef(_ string, _ ...interface{})

func (*BlindUI) EndLinef

func (ui *BlindUI) EndLinef(_ string, _ ...interface{})

func (*BlindUI) ErrorLinef

func (ui *BlindUI) ErrorLinef(_ string, _ ...interface{})

func (*BlindUI) Flush

func (ui *BlindUI) Flush()

func (*BlindUI) IsInteractive

func (ui *BlindUI) IsInteractive() bool

func (*BlindUI) PrintBlock

func (ui *BlindUI) PrintBlock(_ []byte)

func (*BlindUI) PrintErrorBlock

func (ui *BlindUI) PrintErrorBlock(_ string)

func (*BlindUI) PrintLinef

func (ui *BlindUI) PrintLinef(_ string, _ ...interface{})

func (*BlindUI) PrintTable

func (ui *BlindUI) PrintTable(_ table.Table)

func (*BlindUI) PrintTableFiltered

func (ui *BlindUI) PrintTableFiltered(_ table.Table, _ []table.Header)

type BoshComplete

type BoshComplete struct {
	// contains filtered or unexported fields
}

func NewBoshComplete

func NewBoshComplete(blindUi *boshui.ConfUI, logger boshlog.Logger) *BoshComplete

func NewBoshCompleteWithFunctions

func NewBoshCompleteWithFunctions(logger boshlog.Logger, cmdContext *CmdContext, completionFunctionsMap *CompleteFunctionsMap) *BoshComplete

func (*BoshComplete) Execute

func (c *BoshComplete) Execute(args []string) error

func (*BoshComplete) ExecuteCaptured

func (c *BoshComplete) ExecuteCaptured(args []string) (*CapturedResult, error)

type CacheItem

type CacheItem struct {
	Timestamp time.Time `json:"timestamp"`
	Values    []string  `json:"values"`
}

type CapturedResult

type CapturedResult struct {
	Lines   []string
	Command *cobra.Command
}

type CmdBridge

type CmdBridge struct {
	// contains filtered or unexported fields
}

func NewCmdBridge

func NewCmdBridge(cmd boshcmd.Cmd, deps boshcmd.BasicDeps) *CmdBridge

func (CmdBridge) Session

func (c CmdBridge) Session() boshcmd.Session

type CmdContext

type CmdContext struct {
	ConfigPath      string
	EnvironmentName string
	DeploymentName  string
}

type CompleteCache

type CompleteCache struct {
	// contains filtered or unexported fields
}

func NewCompleteCache

func NewCompleteCache(logger boshlog.Logger, cmdContext *CmdContext, group string) *CompleteCache

func (*CompleteCache) GetValues

func (c *CompleteCache) GetValues() (values []string, valid bool, err error)

func (*CompleteCache) PutValues

func (c *CompleteCache) PutValues(values []string) error

func (*CompleteCache) String

func (c *CompleteCache) String() string

type CompleteFunctions

type CompleteFunctions struct {
	// contains filtered or unexported fields
}

type CompleteFunctionsMap

type CompleteFunctionsMap map[string]func(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)

func NewCompleteFunctionsMap

func NewCompleteFunctionsMap(logger boshlog.Logger, directorQuery DirectorQueryInterface) *CompleteFunctionsMap

type DirectorQuery

type DirectorQuery struct {
	// contains filtered or unexported fields
}

func NewDirectorQuery

func NewDirectorQuery(logger boshlog.Logger, cmdContext *CmdContext, session boshcmd.Session) *DirectorQuery

type DirectorQueryFake

type DirectorQueryFake struct {
	// contains filtered or unexported fields
}

func NewDirectorQueryFake

func NewDirectorQueryFake(cmdContext *CmdContext) *DirectorQueryFake

type DirectorQueryInterface

type DirectorQueryInterface interface {
	// contains filtered or unexported methods
}

Jump to

Keyboard shortcuts

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