This repository has been archived by the owner on Jun 9, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Created
tiup_completion.bash
to support tiup components
make bash-autocompletion works for tiup components(ie. cluster, br). Current TiUP native bash-autocompletion does not support them Refer pingcap/tiup#606 - `cluster` and `br` compoments supported, others may be coming - Usage ``` $ source /path/to/tiup_completion.bash $ tiup <TAB> bench cdc client completion dm env help list pd-recover status tidb uninstall br clean cluster ctl dmctl errdoc install mirror playground telemetry tidb-lightning update $ tiup c<TAB> cdc clean client cluster completion ctl $ tiup cluster <TAB> audit clean destroy display enable import patch reload replay scale-in start template check deploy disable edit-config help list prune rename restart scale-out stop upgrade ``` Thanks to https://stackoverflow.com/questions/17879322/how-do-i-autocomplete-nested-multi-level-subcommands
- Loading branch information