Documentation
¶
Index ¶
- func New(envPath string, termHeight int) tea.Model
- type Model
- func (m Model) Entries() []cmds.EnvEntry
- func (m Model) EnvPath() string
- func (m Model) Init() tea.Cmd
- func (m *Model) SetEntries(path string, entries []cmds.EnvEntry, parseErrors int)
- func (m *Model) SetLoadError(err error)
- func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)
- func (m Model) View() tea.View
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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) Entries ¶ added in v0.7.0
Entries returns the rows the table is showing, in file order.
func (*Model) SetEntries ¶
SetEntries fills the table from a parse result.
func (*Model) SetLoadError ¶
SetLoadError records a read failure.
Click to show internal directories.
Click to hide internal directories.