live

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 24, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package live renders a Bubble Tea live-view of queen migration tap events.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, runner Runner) error

Run launches the live-view TUI and the Runner concurrently. It blocks until the user quits the TUI (q / ctrl+c) or the Runner finishes and the user dismisses the screen.

Types

type Runner

type Runner func(ctx context.Context, sink tap.Sink) error

Runner is the function that performs the migration work in a goroutine while the TUI runs in the foreground. It receives the sink to install on its Queen instance and is expected to return when migrations finish (or fail). The error is surfaced in the TUI footer.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL