Support uninstall all components of a given version
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 466
- Forks
- 338
- Avg merge
- 3d 7h
- Merged PRs (30d)
- 8
Description
Feature Request
Is your feature request related to a problem? Please describe:
When using tiup playground v8.5.0 it will install multiple components of the given version. But to clean up afterwards each component can only be deleted by listing all of them manually.
tiup uninstall tidb:v8.4.0 pd:v8.4.0 tikv:v8.4.0 br:v8.4.0 cdc:v8.4.0 ...
it is hard to know if any component is missed.
Describe the feature you'd like:
Add an option to uninstall all components matching a version.
tiup uninstall --all-with-version v8.4.0
# alternative syntax
tiup uninstall '*:v8.4.0'
Why the featue is needed:
Simplify removal of outdated/unused component versions, while keeping the active versions intact.
Describe alternatives you've considered:
Teachability, Documentation, Adoption, Migration Strategy:
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 locating the tiup uninstall command and its handling of component arguments and versions. Review how installed components are enumerated, then define matching behavior for --all-with-version or the proposed wildcard syntax; done means all components for the requested version can be removed without affecting other active versions, with command coverage added where the existing uninstall behavior is tested.
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
- Mostly clear
- Newbie friendliness
- 35/100