Support `a (all)` and `q (quit)` confirmation choices for `tt clean`
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 113
- Forks
- 18
- Avg merge
- 4d 11h
- Merged PRs (30d)
- 23
Description
Here is the workflow:
- I have a setup with multiple instances, lets say five
- I want to quickly do some tests (tt start, ..., tt stop) and then want to start fresh, so I need to
tt clean - after pressing
tt cleanI realize that I need to either discard clean procedure or remove all at once
For "discard" scenario I can press ^C and this would work, but not very intuitive
For "remove all at once" scenario only choice I've got is to click (y) multiple times
It would be great to support 2 more choices:
- a (all) - apply "y" to every instance, this one, and all next
- q (quit) - stop clean procedure right now
As a side effect consider additional helper choices, which approves or discards cleaning for the whole app, let's say I have multiple 3 apps, all are multi-instance clusters
Similar UX has git add -p:
(1/1) Stage this hunk [y,n,q,a,d,e,?]?
Contributor guide
No contributing guide indexed for this repository
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 at the tt clean command's confirmation flow and compare its prompt behavior with the git add -p choices described in the issue. Done means the prompt supports a to approve the current and remaining instances and q to stop cleaning immediately, with the existing choices preserved.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100