tui

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2026 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Overview

Package tui is mutti's terminal UI: every instance at a glance, its services, what is wrong with them, and every mutti command a key or a short search away.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, opts Options, in io.Reader, out io.Writer) error

Run shows the UI until the user quits or ctx ends.

Types

type Command

type Command struct {
	Path  []string // the words that call it, e.g. ["router", "status"]
	Use   string   // the path with its arguments, e.g. "exec <service> -- <command...>"
	Short string
}

Command is a mutti command the palette offers.

type Options

type Options struct {
	App      *app.App
	Dir      string // where mutti tui runs; its instance is selected first
	Self     string // the mutti binary, which runs the commands that take over the terminal
	Version  string
	Commands []Command
}

Options configure the UI.

Jump to

Keyboard shortcuts

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