Documentation
¶
Index ¶
- Constants
- func RunMarkdownView(theme styles.Theme, appName, ctxKey, ctxValue, content string) error
- func SubmitMsg() tea.Msg
- type CollectionView
- func (v *CollectionView) HelpMsg() string
- func (v *CollectionView) Init() tea.Cmd
- func (v *CollectionView) Items() []list.Item
- func (v *CollectionView) ShowFooter() bool
- func (v *CollectionView) Type() string
- func (v *CollectionView) Update(msg tea.Msg) (tea.Model, tea.Cmd)
- func (v *CollectionView) UpdateItemsFromCollections()
- func (v *CollectionView) View() string
- type EntityView
- type ErrorView
- type Form
- func (f *Form) Completed() bool
- func (f *Form) FindByKey(key string) *FormField
- func (f *Form) HelpMsg() string
- func (f *Form) Init() tea.Cmd
- func (f *Form) ShowFooter() bool
- func (f *Form) Type() string
- func (f *Form) Update(msg tea.Msg) (tea.Model, tea.Cmd)
- func (f *Form) ValueMap() map[string]any
- func (f *Form) View() string
- type FormField
- type FormFieldType
- type Format
- type FrameView
- type KeyCallback
- type LoadingView
- type LogArchiveView
- type MarkdownView
- type NoticeLevel
- type SubmitMsgType
- type TerminalState
- type TickMsg
Constants ¶
View Source
const ( LoadingViewType = "loading" DefaultLoading = "loading..." )
View Source
const ErrorViewType = "error"
View Source
const FormViewType = "form"
View Source
const FrameViewType = "frame"
Variables ¶
This section is empty.
Functions ¶
func RunMarkdownView ¶ added in v0.0.4
Types ¶
type CollectionView ¶
type CollectionView struct {
// contains filtered or unexported fields
}
func NewCollectionView ¶
func NewCollectionView( state *TerminalState, collection types.Collection, format Format, selectedFunc func(header string) error, keys ...KeyCallback, ) *CollectionView
func (*CollectionView) HelpMsg ¶
func (v *CollectionView) HelpMsg() string
func (*CollectionView) Init ¶
func (v *CollectionView) Init() tea.Cmd
func (*CollectionView) Items ¶
func (v *CollectionView) Items() []list.Item
func (*CollectionView) ShowFooter ¶ added in v0.0.22
func (v *CollectionView) ShowFooter() bool
func (*CollectionView) Type ¶
func (v *CollectionView) Type() string
func (*CollectionView) UpdateItemsFromCollections ¶
func (v *CollectionView) UpdateItemsFromCollections()
func (*CollectionView) View ¶
func (v *CollectionView) View() string
type EntityView ¶
type EntityView struct {
// contains filtered or unexported fields
}
func NewEntityView ¶
func NewEntityView( state *TerminalState, entity types.Entity, format Format, keys ...KeyCallback, ) *EntityView
func (*EntityView) HelpMsg ¶
func (v *EntityView) HelpMsg() string
func (*EntityView) Init ¶
func (v *EntityView) Init() tea.Cmd
func (*EntityView) ShowFooter ¶ added in v0.0.22
func (v *EntityView) ShowFooter() bool
func (*EntityView) Type ¶
func (v *EntityView) Type() string
func (*EntityView) View ¶
func (v *EntityView) View() string
type ErrorView ¶
type ErrorView struct {
// contains filtered or unexported fields
}
func (*ErrorView) ShowFooter ¶ added in v0.0.22
type Form ¶ added in v0.0.22
type Form struct {
// contains filtered or unexported fields
}
func (*Form) ShowFooter ¶ added in v0.0.22
type FormField ¶ added in v0.0.22
type FormField struct { Group uint Type FormFieldType Key string Default string Required bool ValidationExpr string Title string Description string Placeholder string // contains filtered or unexported fields }
func (*FormField) SetAndValidate ¶ added in v0.0.22
func (*FormField) ValidateConfig ¶ added in v0.0.22
func (*FormField) ValidateValue ¶ added in v0.0.22
type FormFieldType ¶ added in v0.0.22
type FormFieldType uint
const ( PromptTypeText FormFieldType = iota PromptTypeMasked PromptTypeMultiline PromptTypeConfirm )
type FrameView ¶ added in v0.0.13
type FrameView struct {
// contains filtered or unexported fields
}
func NewFrameView ¶ added in v0.0.13
func (*FrameView) ShowFooter ¶ added in v0.0.22
type KeyCallback ¶
type LoadingView ¶
type LoadingView struct {
// contains filtered or unexported fields
}
func NewLoadingView ¶
func NewLoadingView(msg string, styles styles.Theme) *LoadingView
func (*LoadingView) HelpMsg ¶
func (v *LoadingView) HelpMsg() string
func (*LoadingView) Init ¶
func (v *LoadingView) Init() tea.Cmd
func (*LoadingView) ShowFooter ¶ added in v0.0.22
func (v *LoadingView) ShowFooter() bool
func (*LoadingView) Type ¶
func (v *LoadingView) Type() string
func (*LoadingView) View ¶
func (v *LoadingView) View() string
type LogArchiveView ¶ added in v0.0.4
type LogArchiveView struct {
// contains filtered or unexported fields
}
func NewLogArchiveView ¶ added in v0.0.4
func NewLogArchiveView(state *TerminalState, archiveDir string, lastEntry bool) *LogArchiveView
func (*LogArchiveView) HelpMsg ¶ added in v0.0.4
func (v *LogArchiveView) HelpMsg() string
func (*LogArchiveView) Init ¶ added in v0.0.4
func (v *LogArchiveView) Init() tea.Cmd
func (*LogArchiveView) ShowFooter ¶ added in v0.0.22
func (v *LogArchiveView) ShowFooter() bool
func (*LogArchiveView) Type ¶ added in v0.0.4
func (v *LogArchiveView) Type() string
func (*LogArchiveView) View ¶ added in v0.0.4
func (v *LogArchiveView) View() string
type MarkdownView ¶
type MarkdownView struct {
// contains filtered or unexported fields
}
func (*MarkdownView) HelpMsg ¶
func (v *MarkdownView) HelpMsg() string
func (*MarkdownView) Init ¶
func (v *MarkdownView) Init() tea.Cmd
func (*MarkdownView) RunProgram ¶ added in v0.0.4
func (v *MarkdownView) RunProgram() error
func (*MarkdownView) ShowFooter ¶ added in v0.0.22
func (v *MarkdownView) ShowFooter() bool
func (*MarkdownView) Type ¶
func (v *MarkdownView) Type() string
func (*MarkdownView) View ¶
func (v *MarkdownView) View() string
type NoticeLevel ¶
type NoticeLevel string
type SubmitMsgType ¶ added in v0.0.22
type SubmitMsgType struct{}
Click to show internal directories.
Click to hide internal directories.