Skip to content

Release v0.0.4

Choose a tag to compare

@ImElio ImElio released this 02 Oct 23:37
· 5 commits to main since this release

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) and WithIn(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

  • NewAppWithContext and RunContext provide context-bound control and cancellation.

Improved robustness

  • Panic recovery with proper terminal restore.
  • Configurable resize polling interval with WithResizeInterval.
  • Pluggable Logger via WithLogger.

Command system

  • New Batch combinator for running multiple commands sequentially.

Input handling

  • Refactored to work with any io.Reader.
  • Added KeyQ for consistent quit handling.

Renderer

  • Honors NO_COLOR, detects TTY, strips ANSI when needed.

Notes

  • Breaking change: quitting via "q" is now consistently exposed as KeyQ instead of a generic KeyRune.