envmodal

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(envPath string, termHeight int) tea.Model

New builds the env modal for envPath. It does not load on its own: the caller (AppModel, on OpenEnvModalMsg) issues GetEnvFileContents so the table fills, the same way the page used to.

Types

type Model

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

Model is the env experience as a centered modal: a key/value table of the .env file, with reveal, copy, add, edit, delete, an external-editor open, and a raw edit, all inside one surface. It replaces the old Env page.

func (Model) EnvPath

func (m Model) EnvPath() string

EnvPath returns the .env path the modal is showing.

func (Model) Init

func (m Model) Init() tea.Cmd

func (*Model) SetEntries

func (m *Model) SetEntries(path string, entries []cmds.EnvEntry, parseErrors int)

SetEntries fills the table from a parse result.

func (*Model) SetLoadError

func (m *Model) SetLoadError(err error)

SetLoadError records a read failure.

func (Model) Update

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

func (Model) View

func (m Model) View() tea.View

Jump to

Keyboard shortcuts

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