Core

Core macros provided by carapace-spec.

directories

$directories completes directories.

["$directories"]

exec

$(<command>) executes given command in a sh / pwsh shell.

["$(echo -e 'a\nb\nc')"]

executables

$executables completes PATH executables.

["$executables"]

files

$files([<suffixes>]) completes files with an optional list of suffixes to filter on.

["$files([.go, go.mod, go.sum])"]

message

$message(<message>) adds given error message to completion.

["$message(some error)"]

spec

$spec(<file>) completes arguments using the given spec file. This implicitly disables flag parsing for the corresponding (sub)command.

["$spec(example.yaml)"]