Documentation
¶
Index ¶
- type Action
- type ActionType
- type CommandMode
- type CommandSpec
- type ConfigAction
- type CopyAction
- type Detail
- type EditAction
- type ExecAction
- type Input
- type InputType
- type List
- type ListItem
- type ListItemDetail
- type Manifest
- type OpenAction
- type Payload
- type Platfom
- type ReloadAction
- type Requirement
- type RunAction
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"`
Open *OpenAction `json:"-"`
Copy *CopyAction `json:"-"`
Run *RunAction `json:"-"`
Exec *ExecAction `json:"-"`
Edit *EditAction `json:"-"`
Config *ConfigAction `json:"-"`
Reload *ReloadAction `json:"-"`
}
func (*Action) UnmarshalJSON ¶
type ActionType ¶
type ActionType string
const ( ActionTypeRun ActionType = "run" ActionTypeOpen ActionType = "open" ActionTypeCopy ActionType = "copy" ActionTypeEdit ActionType = "edit" ActionTypeExec ActionType = "exec" ActionTypeExit ActionType = "exit" ActionTypeReload ActionType = "reload" ActionTypeConfig ActionType = "config" )
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 ConfigAction ¶
type ConfigAction struct {
Extension string `json:"extension,omitempty"`
}
type CopyAction ¶
type EditAction ¶
type ExecAction ¶
type ListItemDetail ¶
type Manifest ¶
type Manifest struct {
Title string `json:"title"`
Description string `json:"description,omitempty"`
Preferences []Input `json:"preferences,omitempty"`
Commands []CommandSpec `json:"commands"`
}
type OpenAction ¶
type ReloadAction ¶
type Requirement ¶
Click to show internal directories.
Click to hide internal directories.