execform

package
v1.23.1 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package execform renders the modal one-off-run wizard: start a disposable interactive container from an image (`docker run --rm -it` analogue) with optional volume mounts and a command (empty = shell).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

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

Model is the three-field (Image, Volumes, Command) exec wizard.

func New

func New() Model

New builds an empty form.

func (Model) Command

func (m Model) Command() string

Command returns the trimmed command field (empty = shell).

func (Model) Image

func (m Model) Image() string

Image returns the trimmed image field.

func (*Model) Next

func (m *Model) Next()

Next moves focus to the following field.

func (*Model) Open

func (m *Model) Open(image string)

Open resets the form for a fresh run, optionally pre-filling the image.

func (*Model) Prev

func (m *Model) Prev()

Prev moves focus to the previous field.

func (*Model) SetError

func (m *Model) SetError(s string)

SetError shows a validation/operation message inside the form (keeps it open).

func (Model) Update

func (m Model) Update(msg tea.Msg) (Model, tea.Cmd)

Update forwards key events to the focused field.

func (Model) View

func (m Model) View(width, height int) string

View renders the form centered within the given area.

func (Model) Volumes

func (m Model) Volumes() string

Volumes returns the raw volumes field (comma-separated bind specs).

Jump to

Keyboard shortcuts

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