package bash

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

Dependency Relation
	imports 9 packages, and imported by 4 packages

Involved Source Files action.go patch.go snippet.go
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 6)
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.
SnippetMulti creates a multi-completer bash completion script.
SnippetSingle creates a single-command bash completion script. When explicitCommand is true, the command name is included in the invocation (for multi-completer subcommands). When false, the executable is invoked without an explicit command (standalone mode).
Package-Level Constants (total 5)
const COMP_TYPE_LIST_NOT_UNMODIFIED = "64" // ‘@’, to list completions if the word is not unmodified
const COMP_TYPE_LIST_PARTIAL_WORD = "33" // ‘!’, for listing alternatives on partial word completion,
const COMP_TYPE_LIST_SUCCESSIVE_TABS = "63" // ‘?’, for listing completions after successive tabs,
const COMP_TYPE_MENU_COMPLETION = "37" // ‘%’, for menu completion
const COMP_TYPE_NORMAL = "9" // TAB, for normal completion