tui

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2026 License: GPL-3.0 Imports: 22 Imported by: 0

Documentation

Overview

Package tui implements the snix terminal UI: a Bubble Tea application that exposes every CLI capability (profile management, scanning, running the bypass engine, settings, help) in a single interactive interface.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(opts Options) error

Run starts the Bubble Tea program. Blocking; returns when the user quits.

Types

type App

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

App is the Bubble Tea root model.

func (App) Init

func (a App) Init() tea.Cmd

Init starts any background tick processes the screens need.

func (App) Update

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

Update is the Bubble Tea reducer.

func (App) View

func (a App) View() string

View renders the full app: title bar, tabs, active screen, status line.

type Options

type Options struct {
	// Version string surfaced on the About screen.
	Version string
	// ExePath is the path to the snix binary the Run screen will spawn
	// for start/stop.
	ExePath string
	// ConfigPath is the path the TUI loads/edits.
	ConfigPath string
}

Options configure the TUI launch.

Jump to

Keyboard shortcuts

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