envkeymodal

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: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() tea.Model

New creates a new env variable input modal for adding a new variable.

func NewForEdit

func NewForEdit(key, value string) tea.Model

NewForEdit creates a new env variable modal for editing an existing variable.

Types

type Model

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

Model represents a modal for entering/editing an env variable (key and value).

func (Model) GetKey

func (m Model) GetKey() string

GetKey returns the entered key.

func (Model) GetValue

func (m Model) GetValue() string

GetValue returns the entered value.

func (Model) Init

func (m Model) Init() tea.Cmd

func (*Model) SetError

func (m *Model) SetError(err error)

SetError sets an error message.

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