Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Action ¶
type Action struct {
Title string `json:"title,omitempty"`
Key string `json:"key,omitempty"`
Type ActionType `json:"type,omitempty"`
Text string `json:"text,omitempty"`
App *Application `json:"app,omitempty"`
Url string `json:"url,omitempty"`
Path string `json:"path,omitempty"`
Exit bool `json:"exit,omitempty"`
Reload bool `json:"reload,omitempty"`
Extension string `json:"extension,omitempty"`
Command string `json:"command,omitempty"`
Params map[string]Param `json:"params,omitempty"`
Dir string `json:"dir,omitempty"`
}
type ActionType ¶
type ActionType string
const ( ActionTypeRun ActionType = "run" ActionTypeOpen ActionType = "open" ActionTypeCopy ActionType = "copy" ActionTypeReload ActionType = "reload" ActionTypeEdit ActionType = "edit" ActionTypeExec ActionType = "exec" ActionTypeExit ActionType = "exit" ActionTypeConfig ActionType = "config" )
type Application ¶
type CommandMode ¶
type CommandMode string
const ( CommandModeSearch CommandMode = "search" CommandModeFilter CommandMode = "filter" CommandModeDetail CommandMode = "detail" CommandModeTTY CommandMode = "tty" CommandModeSilent CommandMode = "silent" )
type CommandSpec ¶
type CommandSpec struct {
Name string `json:"name"`
Title string `json:"title"`
Hidden bool `json:"hidden,omitempty"`
Params []Input `json:"params,omitempty"`
Mode CommandMode `json:"mode,omitempty"`
}
type ListItemDetail ¶
type Manifest ¶
type Manifest struct {
Title string `json:"title"`
Description string `json:"description,omitempty"`
Preferences []Input `json:"preferences,omitempty"`
Root []string `json:"root"`
Commands []CommandSpec `json:"commands"`
}
type Param ¶
type Param struct {
Value any `json:"value,omitempty"`
Default any `json:"default,omitempty"`
Required bool `json:"required,omitempty"`
}
func (Param) MarshalJSON ¶
func (*Param) UnmarshalJSON ¶
type Requirement ¶
Click to show internal directories.
Click to hide internal directories.