grant
grant copied to clipboard
feat: enhance TUI with clio integration and better event handling
What would you like to be added: Integrate the 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.