Documentation ¶
Overview ¶
Package bash provides bash completion
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ActionRawValues ¶
ActionRawValues formats values for bash.
func Patch ¶ added in v0.43.0
Patch patches args if `COMP_LINE` environment variable is set.
Bash passes redirects to the completion function so these need to be filtered out.
`example action >/tmp/stdout.txt --values 2>/tmp/stderr.txt fi[TAB]` ["example", "action", ">", "/tmp/stdout.txt", "--values", "2", ">", "/tmp/stderr.txt", "fi"] ["example", "action", "--values", "fi"]
Types ¶
type RedirectError ¶ added in v0.43.0
type RedirectError struct{}
RedirectError current position is a redirect like `echo test >[TAB]`.
func (RedirectError) Error ¶ added in v0.43.0
func (r RedirectError) Error() string
Click to show internal directories.
Click to hide internal directories.