tui

package
v0.25.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: MIT Imports: 37 Imported by: 0

Documentation

Overview

Package tui implements a terminal UI for browsing, editing and executing gopherciser scenario scripts.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	// contains filtered or unexported fields
}

App is the gopherciser terminal UI, a Bubble Tea model.

func NewApp

func NewApp(dir string) *App

NewApp creates the TUI rooted at dir.

func (*App) Init

func (a *App) Init() tea.Cmd

Init implements tea.Model.

func (*App) OpenScript

func (a *App) OpenScript(path string) error

OpenScript loads the script at path into the scenario view on start.

func (*App) Run

func (a *App) Run() error

Run starts the UI.

func (*App) Update

func (a *App) Update(msg tea.Msg) (tea.Model, tea.Cmd)

Update implements tea.Model.

func (*App) View

func (a *App) View() tea.View

View implements tea.Model.

Jump to

Keyboard shortcuts

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