Skip to main content

Module completions

Module completions 

Source
Expand description

Shell completion script generation and per-project completion enrichment driven by cached schemas. Shell completion generation and one-shot setup.

fdl completions bash outputs a bash completion script to stdout. fdl completions zsh outputs a zsh completion script to stdout. fdl completions fish outputs a fish completion script to stdout. fdl autocomplete detects shell, installs completions, reloads.

When a sub-command declares a schema: block in its fdl.yaml, completion is option-aware: choices: drive value lists, type: path drives file completion, completer: (opt-in) lets authors ship arbitrary shell snippets (e.g. ls runs/).

Functionsยง

autocomplete
One-shot setup: detect shell, write to rc file, reload.
generate
Generate a completion script for the given shell.