mix composer.completion (composer v0.2.0)

Copy Markdown View Source

Prints a completion script for bash, zsh or fish.

mix composer.completion bash > ~/.local/share/bash-completion/completions/mix-composer
mix composer.completion zsh > ~/.zsh/functions/_composer_mix
mix composer.completion fish > ~/.config/fish/completions/mix.fish

The script completes step ids for mix composer.step.{run,show,edit}, recipe ids for mix composer.recipe.{run,show,edit}, and cookbook and group names (local, local:ash/) for mix composer.recipe.list, from _build/composer/index without starting the BEAM, and hands every other mix completion to mix_completions when it is installed. In bash, source it after mix_completions' script.

Every composer task refreshes the index; when it is missing, or older than mix.lock, no ids are offered until mix composer.index runs.