Documentation
¶
Index ¶
- Constants
- func Elapsed(d time.Duration) string
- func Fit(value string, kind Kind, width int) string
- func Matches(row Row, query string) bool
- func Render(p Panel, style Style) []string
- func ShellJoin(argv []string) string
- func ShellQuote(arg string) string
- func Since(t time.Time) string
- func Validate(p *Panel) error
- func ValidateTargets(p *Panel) error
- type Action
- type Column
- type Field
- type Invalid
- type Kind
- type Line
- type Mark
- type Panel
- type Retry
- type Row
- type Section
- type Style
- type Transport
Constants ¶
View Source
const Version = 1
Variables ¶
This section is empty.
Functions ¶
func ShellQuote ¶
func ValidateTargets ¶
Types ¶
type Action ¶
type Action struct {
Key string `json:"key"`
Label string `json:"label"`
Verb string `json:"verb,omitempty"`
Args []string `json:"args,omitempty"`
Input string `json:"input,omitempty"`
Choices []string `json:"choices,omitempty"`
Confirm string `json:"confirm,omitempty"`
Panel string `json:"panel,omitempty"`
Global bool `json:"global,omitempty"`
Retry []Retry `json:"retry,omitempty"`
Help string `json:"help,omitempty"`
}
type Panel ¶
type Panel struct {
Version int `json:"bango"`
ID string `json:"id"`
Title string `json:"title"`
Subtitle string `json:"subtitle,omitempty"`
Empty string `json:"empty,omitempty"`
Hints []string `json:"hints,omitempty"`
Order []string `json:"order,omitempty"`
Sections []Section `json:"sections"`
Actions map[string]Action `json:"actions,omitempty"`
}
func (Panel) ActionNames ¶
type Row ¶
type Row struct {
ID string `json:"id"`
Mark Mark `json:"mark,omitempty"`
Fields []Field `json:"fields"`
Note string `json:"note,omitempty"`
Actions []string `json:"actions,omitempty"`
Facts []string `json:"facts,omitempty"`
Preview []string `json:"preview,omitempty"`
Children []Row `json:"children,omitempty"`
Dim bool `json:"dim,omitempty"`
Target string `json:"target,omitempty"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.