package bash

Import Path
	github.com/rsteube/carapace/internal/shell/bash (on go.dev)

Dependency Relation
	imports 8 packages, and imported by 3 packages

Involved Source Files action.go patch.go Package bash provides bash completion
Package-Level Type Names (only one)
/* sort by: | */
RedirectError current position is a redirect like `echo test >[TAB]`. ( RedirectError) Error() string RedirectError : error
Package-Level Functions (total 4)
ActionRawValues formats values for bash.
func CompLine() (string, bool)
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"]
Snippet creates the bash completion script.