delonix completion

Autocompletion dinâmico para bash, zsh, fish, elvish e powershell.

Dynamic autocompletion for bash, zsh, fish, elvish and powershell.

Imprime o script de registo do shell. A engine é dinâmica: o script pede as sugestões ao próprio binário em tempo real, a partir da MESMA definição usada no parsing — nunca fica desactualizado à mão.

Prints the shell registration script. The engine is dynamic: the script asks the binary itself for suggestions in real time, from the SAME definition used for parsing — it never goes stale by hand.

Usage: dlx completion [OPTIONS] <SHELL>

Arguments:
  <SHELL>  Target shell [possible values: bash, zsh, fish, elvish, powershell]

Options:
      --l18n <en|pt>  Output language: `en` (default) or `pt` (Portuguese, pt_AO). Also settable via `$DELONIX_L18N`. Global — works before any subcommand
  -h, --help          Print help

Exemplos

Bash (persistente)
echo 'source <(delonix completion bash)' >> ~/.bashrc
Zsh
echo 'source <(delonix completion zsh)' >> ~/.zshrc

LaboratórioLab

Autocompletion real, gerado a partir da MESMA definição da CLI — nunca fica desactualizado à mão.

echo 'source <(delonix completion bash)' >> ~/.bashrc
source ~/.bashrc
delonix con<TAB>

Real autocompletion, generated from the SAME CLI definition — it never goes stale by hand.

echo 'source <(delonix completion bash)' >> ~/.bashrc
source ~/.bashrc
delonix con<TAB>

DesafioChallenge

Compara o output de delonix completion bash entre duas versões do binário (antes/depois de um upgrade) — confirma que um comando novo aparece sozinho no script, sem qualquer edição manual.

Compare the output of delonix completion bash between two binary versions (before/after an upgrade) — confirm a new command shows up in the script by itself, with no manual editing.