Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( Exec = execCmd ExecSilent = execSilentCmd )
Functions ¶
Types ¶
type BmxExecError ¶
type BmxExecError struct {
Command string
Stdout, Stderr string
// contains filtered or unexported fields
}
func (*BmxExecError) Error ¶
func (t *BmxExecError) Error() string
func (*BmxExecError) SetError ¶
func (t *BmxExecError) SetError(err error)
func (*BmxExecError) StyledError ¶
func (t *BmxExecError) StyledError(w int) string
type Completion ¶
Completion represents a completion object
func ZshCompletions ¶
func ZshCompletions(in string) (out []Completion, err error)
ZshCompletions matches completions based on the `in` string.
This triggers the completion script and captures the completions given by the ZSH subshell environment, returning a slice of Completion objects which contain the completion option and an optional description if one is provided for that option.
type ExecTimeoutError ¶
type ExecTimeoutError struct{}
ExecTimeoutError is returned when the completion takes longer than the anticipated execution time of `maxDuration`
Errors of this type would normally be transient as the completion system generally returns long before the deadline is reached.
func (ExecTimeoutError) Error ¶
func (e ExecTimeoutError) Error() string
type MissingZshError ¶
type MissingZshError struct{}
MissingZshError is returned when Zsh is not found in the users environment
Applications implementing this package can use this todisable the completion system
func (MissingZshError) Error ¶
func (e MissingZshError) Error() string