Implement shell completion
Open
Nobody has claimed this yet.
type/feature-request
- Dominant language
- Go
- Stars
- 466
- Forks
- 338
- Avg merge
- 3d 7h
- Merged PRs (30d)
- 8
Description
Feature Request
Implement shell completion for both tiup and components
- replce exist shell completion whit cobra 1.2 ( fixed in #1549 )
- implement shell completion when tiup call component (fixed in #1687 )
- but the flag completion is wrong when tiup call component (fixed in #1831 )
- detailed completion information like cluster name (fixed in #1891 )
- it is slow due to telemetry (fixed in #1717 )
- make it installed by default
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the issue references #1549, #1687, #1831, #1891, and #1717 to determine what remains, then inspect the tiup and component CLI entry points for completion setup. Done means shell completion works for tiup and components, provides the intended flag and cluster-name suggestions, avoids the reported telemetry delay, and is installed by default.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100