grant icon indicating copy to clipboard operation
grant copied to clipboard

feat: enhance TUI with clio integration and better event handling

Open spiffcs opened this issue 4 months ago • 0 comments

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.

spiffcs avatar Sep 16 '25 10:09 spiffcs