Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandMode ¶
type CommandMode string
const ( CommandModeView CommandMode = "view" CommandModeNoView CommandMode = "no-view" )
type CommandParam ¶
type CommandSpec ¶
type CommandSpec struct {
Name string `json:"name"`
Title string `json:"title"`
Hidden bool `json:"hidden,omitempty"`
Params []CommandParam `json:"params,omitempty"`
Mode CommandMode `json:"mode,omitempty"`
}
type CommandType ¶
type CommandType string
const ( CommandTypeRun CommandType = "run" CommandTypeOpen CommandType = "open" CommandTypeCopy CommandType = "copy" )
type DropDownItem ¶
type FormItem ¶
type FormItem struct {
Type FormItemType `json:"type"`
Name string `json:"name,omitempty"`
Title string `json:"title"`
Placeholder string `json:"placeholder,omitempty"`
Default any `json:"default,omitempty"`
Optional bool `json:"optional,omitempty"`
// Only for dropdown
Items []DropDownItem `json:"items,omitempty"`
// Only for checkbox
Label string `json:"label,omitempty"`
}
type FormItemType ¶
type FormItemType string
const ( TextInput FormItemType = "text" TextAreaInput FormItemType = "textarea" SelectInput FormItemType = "select" CheckboxInput FormItemType = "checkbox" )
type Manifest ¶
type Manifest struct {
Title string `json:"title"`
Homepage string `json:"homepage,omitempty"`
Root string `json:"root,omitempty"`
Description string `json:"description,omitempty"`
Commands []CommandSpec `json:"commands"`
}
Click to show internal directories.
Click to hide internal directories.