Obsctl::CLI::Completions
Generates shell completion scripts from the command registry.
Nothing here hardcodes a command name: the word lists come from
Domain::CommandRegistry, so a command added there completes everywhere
without a second edit. Argument values that only the daemon knows —
scene, profile, collection, and audio-input names — are completed by
shelling back out to obsctl, which keeps the suggestions live.
Constants
Kinds of live name obsctl completions candidates can list.
Subcommands the CLI serves locally, with their own fixed arguments.
Instance methods
Lists live names for one kind, one per line.
Completion runs on every Tab press, so an unreachable daemon or a malformed reply yields no candidates instead of an error: a shell completion that prints a diagnostic into the command line is worse than one that suggests nothing.
Commands whose first argument names a live OBS resource, grouped by the
obsctl query that lists those names.