Documentation
¶
Index ¶
Constants ¶
View Source
const ( SourceLocal = "local" SourceRemote = "remote" )
Variables ¶
View Source
var ErrNotTerminal = errors.New("terminal UI requires an interactive terminal")
Functions ¶
func ControlsHelp ¶
func ControlsHelp() string
Types ¶
type BrowseOptions ¶
type Item ¶
type Item struct {
Title string `json:"title"`
Subtitle string `json:"subtitle,omitempty"`
Text string `json:"text,omitempty"`
Detail string `json:"detail,omitempty"`
Tags []string `json:"tags,omitempty"`
Depth int `json:"depth,omitempty"`
Source string `json:"source,omitempty"`
Kind string `json:"kind,omitempty"`
ID string `json:"id,omitempty"`
ParentID string `json:"parent_id,omitempty"`
Scope string `json:"scope,omitempty"`
Container string `json:"container,omitempty"`
Author string `json:"author,omitempty"`
URL string `json:"url,omitempty"`
CreatedAt string `json:"created_at,omitempty"`
UpdatedAt string `json:"updated_at,omitempty"`
Fields map[string]string `json:"fields,omitempty"`
}
type LayoutPreset ¶
type LayoutPreset string
const ( LayoutAuto LayoutPreset = "" LayoutList LayoutPreset = "list" LayoutChat LayoutPreset = "chat" LayoutDocument LayoutPreset = "document" )
type Row ¶
type Row struct {
Source string `json:"source,omitempty"`
Kind string `json:"kind"`
ID string `json:"id,omitempty"`
ParentID string `json:"parent_id,omitempty"`
Depth int `json:"depth,omitempty"`
Scope string `json:"scope,omitempty"`
Container string `json:"container,omitempty"`
Author string `json:"author,omitempty"`
Title string `json:"title"`
Text string `json:"text,omitempty"`
Detail string `json:"detail,omitempty"`
URL string `json:"url,omitempty"`
CreatedAt string `json:"created_at,omitempty"`
UpdatedAt string `json:"updated_at,omitempty"`
Tags []string `json:"tags,omitempty"`
Fields map[string]string `json:"fields,omitempty"`
}
func (Row) ItemForLayout ¶
func (r Row) ItemForLayout(layout LayoutPreset) Item
Click to show internal directories.
Click to hide internal directories.