Documentation ¶
Index ¶
- func FilterQueryValues(values []string, prefix string) []string
- func IsItCompletionCommand(args []string) bool
- type BlindUI
- func (ui *BlindUI) AskForChoice(_ string, _ []string) (int, error)
- func (ui *BlindUI) AskForConfirmation() error
- func (ui *BlindUI) AskForConfirmationWithLabel(_ string) error
- func (ui *BlindUI) AskForPassword(_ string) (string, error)
- func (ui *BlindUI) AskForText(_ string) (string, error)
- func (ui *BlindUI) AskForTextWithDefaultValue(_, _ string) (string, error)
- func (ui *BlindUI) BeginLinef(_ string, _ ...interface{})
- func (ui *BlindUI) EndLinef(_ string, _ ...interface{})
- func (ui *BlindUI) ErrorLinef(_ string, _ ...interface{})
- func (ui *BlindUI) Flush()
- func (ui *BlindUI) IsInteractive() bool
- func (ui *BlindUI) PrintBlock(_ []byte)
- func (ui *BlindUI) PrintErrorBlock(_ string)
- func (ui *BlindUI) PrintLinef(_ string, _ ...interface{})
- func (ui *BlindUI) PrintTable(_ Table)
- func (ui *BlindUI) PrintTableFiltered(_ Table, _ []Header)
- type BoshComplete
- type CacheItem
- type CapturedResult
- type CmdBridge
- type CmdContext
- type CompleteCache
- type CompleteFunctions
- type CompleteFunctionsMap
- type DirectorQuery
- type DirectorQueryFake
- type DirectorQueryInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FilterQueryValues ¶
func IsItCompletionCommand ¶
Types ¶
type BlindUI ¶
type BlindUI struct{}
func (*BlindUI) AskForConfirmation ¶
func (*BlindUI) AskForConfirmationWithLabel ¶
func (*BlindUI) AskForTextWithDefaultValue ¶
func (*BlindUI) BeginLinef ¶
func (*BlindUI) ErrorLinef ¶
func (*BlindUI) IsInteractive ¶
func (*BlindUI) PrintBlock ¶
func (*BlindUI) PrintErrorBlock ¶
func (*BlindUI) PrintLinef ¶
func (*BlindUI) PrintTable ¶
func (ui *BlindUI) PrintTable(_ Table)
func (*BlindUI) PrintTableFiltered ¶
func (ui *BlindUI) PrintTableFiltered(_ 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 CapturedResult ¶
type CmdContext ¶
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
}
Click to show internal directories.
Click to hide internal directories.