Discover Packages
github.com/pomdtr/sunbeam
pkg
types
package
Version:
v1.0.0-rc.62
Opens a new window with list of versions in this module.
Published: Oct 30, 2023
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
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"`
Target string `json:"target,omitempty"`
Exit bool `json:"exit,omitempty"`
Reload bool `json:"reload,omitempty"`
Extension string `json:"extension,omitempty"`
Command string `json:"command,omitempty"`
Params Params `json:"params,omitempty"`
}
type Application struct {
Windows string `json:"windows,omitempty"`
Mac string `json:"mac,omitempty"`
Linux string `json:"linux,omitempty"`
}
type Checkbox struct {
Title string `json:"title"`
Required bool `json:"required,omitempty"`
Type string `json:"type"`
Label string `json:"label,omitempty"`
Placeholder string `json:"placeholder,omitempty"`
Default bool `json:"default,omitempty"`
}
type CommandInput struct {
Command string `json:"command"`
Params map[string ]any `json:"params"`
Query string `json:"query,omitempty"`
}
type CommandRef struct {
Extension string `json:"extension,omitempty"`
Command string `json:"command,omitempty"`
Params map[string ]any `json:"params,omitempty"`
}
type CommandSpec struct {
Name string `json:"name"`
Title string `json:"title"`
Hidden bool `json:"hidden,omitempty"`
Params []Param `json:"params,omitempty"`
Mode CommandMode `json:"mode,omitempty"`
}
type Detail struct {
Title string `json:"title,omitempty"`
Actions []Action `json:"actions,omitempty"`
Highlight Highlight `json:"highlight,omitempty"`
Text string `json:"text,omitempty"`
}
type DropDownItem struct {
Title string `json:"title"`
Value any `json:"value"`
}
type List struct {
Title string `json:"title,omitempty"`
Items []ListItem `json:"items,omitempty"`
Dynamic bool `json:"dynamic,omitempty"`
EmptyText string `json:"emptyText,omitempty"`
Actions []Action `json:"actions,omitempty"`
}
type ListItem struct {
Id string `json:"id,omitempty"`
Title string `json:"title"`
Subtitle string `json:"subtitle,omitempty"`
Accessories []string `json:"accessories,omitempty"`
Actions []Action `json:"actions,omitempty"`
}
type Manifest struct {
Title string `json:"title"`
Description string `json:"description,omitempty"`
Root []RootItem `json:"root,omitempty"`
Commands []CommandSpec `json:"commands"`
}
type Param struct {
Name string `json:"name"`
Type ParamType `json:"type"`
Description string `json:"description,omitempty"`
Required bool `json:"required,omitempty"`
Default any `json:"default,omitempty"`
}
type RootItem struct {
Title string `json:"title"`
Extension string `json:"extension"`
Command string `json:"command"`
Params map[string ]any `json:"params"`
}
type Select struct {
Title string `json:"title"`
Required bool `json:"required,omitempty"`
Type string `json:"type"`
Placeholder string `json:"placeholder,omitempty"`
Default any `json:"default,omitempty"`
Items []DropDownItem `json:"items,omitempty"`
}
type Text struct {
Title string `json:"title"`
Type string `json:"type"`
Placeholder string `json:"placeholder,omitempty"`
Default string `json:"default,omitempty"`
Required bool `json:"required,omitempty"`
}
type TextArea struct {
Title string `json:"title"`
Required bool `json:"required,omitempty"`
Type string `json:"type"`
Placeholder string `json:"placeholder,omitempty"`
Default string `json:"default,omitempty"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.