shell completion
A shell feature that suggests or fills in a command's subcommands, flags and arguments when you press Tab.
In more detail
Tools provide it through a completion script for each shell. Command-line libraries such as Cobra can generate these scripts automatically.
Related terms
- Cobra — A widely used third-party Go library for building command-line tools with subcommands, nested help and shell completion.
- subcommand — The word after a program's name that picks which of its operations to run, such as status in git status.
- shell — The program that reads the commands you type, runs them and shows the results; sh and bash are common ones.
Taught in
- Parsing Arguments with flag — Concurrent Systems Programming with Go