Repository navigation
Release v0.0.4
This release stabilizes the Frog core runtime for both interactive TUIs and non-interactive CLI/CI pipelines.
Highlights
Custom I/O
- Added
WithOut(io.Writer)andWithIn(io.Reader)to redirect output/input. - Works seamlessly with files, pipes, or test environments.
Non-interactive mode
WithNonInteractive()skips raw mode and input loops.- Automatically enabled when output is not a TTY.
- View is rendered once with ANSI stripped for clean CLI/CI logs.
Context-aware sessions
NewAppWithContextandRunContextprovide context-bound control and cancellation.
Improved robustness
- Panic recovery with proper terminal restore.
- Configurable resize polling interval with
WithResizeInterval. - Pluggable
LoggerviaWithLogger.
Command system
- New
Batchcombinator for running multiple commands sequentially.
Input handling
- Refactored to work with any
io.Reader. - Added
KeyQfor consistent quit handling.
Renderer
- Honors
NO_COLOR, detects TTY, strips ANSI when needed.
Notes
- Breaking change: quitting via
"q"is now consistently exposed asKeyQinstead of a genericKeyRune.