completions
turnout completions <bash|zsh|fish|powershell|elvish>Prints a completion script for your shell. Wire it up once:
# bash (~/.bashrc)eval "$(turnout completions bash)"
# zsh (~/.zshrc)eval "$(turnout completions zsh)"
# fishturnout completions fish > ~/.config/fish/completions/turnout.fish# PowerShell ($PROFILE)turnout completions powershell | Out-String | Invoke-ExpressionAfter that, turnout <Tab> completes commands, subcommands and flags.
Live names in bash
Section titled “Live names in bash”The bash script goes one step further: where a command expects the name of an app, a server or a group, Tab completes to what is actually in your catalogs.
turnout use <Tab> # apps and groupsturnout use web <Tab> # serversturnout app show <Tab> # appsturnout server edit <Tab> # serversturnout dev <Tab> # appsFlag values follow the same rule - --server, --add-server, --app, --add-app and their --rm- counterparts complete from the catalog.
Names come from a hidden turnout complete helper the script calls; it stays quiet on errors so a half-configured setup never garbles the line you are typing. The bash script registers itself for the tn alias as well. Other shells get the static script - the same commands and flags, without live names.