feat: enhance TUI with clio integration and better event handling
- Dominant language
- Go
- Stars
- 183
- Forks
- 18
- Avg merge
- 3d 7h
- Merged PRs (30d)
- 7
Description
What would you like to be added:
Integrate the [clio](https://github.com/anchore/clio) library into Grant TUI to provide richer command-line interface capabilities.
Specifically:
- Leverage clio’s structured event system to improve how user input and UI events are handled.
- Enhance TUI rendering and responsiveness by wiring clio’s event loop into the interface.
- Unified Logs for Syft/Grant
- Add support for more advanced terminal features (e.g., better keyboard handling, dynamic layouts, improved error messaging).
Why is this needed:
- The current TUI is limited in how it processes and responds to user input and syft library events.
- Provide a more consistent developer and user experience by reusing Anchore’s shared CLI framework.
Additional context:
Clio is already being adopted in other Anchore projects to unify command-line interactions. Bringing it into grant ensures consistency across tools and reduces the need for custom event-loop code.
Contributor guide
Research direction
No files, tests, or entry points are named. Start by locating Grant's current TUI event loop and the code handling Syft/Grant events, then review how clio is used in other Anchore projects. Done criteria should be defined for clio integration, unified logs, terminal behavior, and responsiveness before implementation begins.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- cli, developer-experience
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100