Documentation
¶
Index ¶
- Constants
- func LoadInspectItem(title, jsonStr string) tea.Cmd
- type Format
- type Model
- func (m *Model) ApplySearchQuery(query string)
- func (m *Model) ClearSearchQuery()
- func (m *Model) FrameContent() string
- func (m *Model) FrameFooter() string
- func (m *Model) FrameHeader() string
- func (m *Model) FrameTitle() string
- func (m *Model) HasActiveFilter() bool
- func (m *Model) HasErrors() bool
- func (m *Model) Init() tea.Cmd
- func (m *Model) IsSearching() bool
- func (m *Model) Name() string
- func (m *Model) OnEnter() tea.Cmd
- func (m *Model) OnExit() tea.Cmd
- func (m *Model) SetContent(content string)
- func (m *Model) SetFormat(format Format)
- func (m *Model) SetTitle(t string)
- func (m *Model) ShortHelpItems() []helpbar.HelpEntry
- func (m *Model) Update(msg tea.Msg) tea.Cmd
- func (m *Model) View() string
- type Msg
- type Node
Constants ¶
View Source
const ViewName = "inspect"
Variables ¶
This section is empty.
Functions ¶
func LoadInspectItem ¶
LoadInspectItem returns a cmd that sends a Msg(title, json)
Types ¶
type Model ¶
type Model struct {
Root *Node
Title string
SearchTerm string
Format Format // "yml" or "raw"
RawContent string
ParseError string
// contains filtered or unexported fields
}
func (*Model) ApplySearchQuery ¶
ApplySearchQuery implements view.Filterable — sets the app-level "/" filter.
func (*Model) ClearSearchQuery ¶
func (m *Model) ClearSearchQuery()
ClearSearchQuery implements view.Filterable — clears the app-level "/" filter.
func (*Model) FrameContent ¶
func (*Model) FrameFooter ¶
func (*Model) FrameHeader ¶
func (*Model) FrameTitle ¶
func (*Model) HasActiveFilter ¶
HasActiveFilter returns true when the app-level "/" filter is active.
func (*Model) IsSearching ¶
IsSearching returns true when the ctrl+f search input is active.
func (*Model) SetContent ¶
func (*Model) ShortHelpItems ¶
Click to show internal directories.
Click to hide internal directories.