package
Version:
v0.2.0
Opens a new window with list of versions in this module.
Published: Mar 10, 2023
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Action struct {
Title string `json:"title"`
Shortcut string `json:"shortcut"`
Type string `json:"type"`
Path string `json:"path"`
Target string `json:"target"`
Text string `json:"text"`
Command []Field `json:"command"`
OnSuccess string `json:"onSuccess"`
}
type Detail struct {
Content Preview `json:"content"`
}
type Field struct {
Value string `json:"value"`
Input *FormInput `json:"input"`
}
type FormInput struct {
Type string `json:"type"`
Title string `json:"title"`
Placeholder string `json:"placeholder"`
Default string `json:"default"`
Choices []string `json:"choices"`
Label string `json:"label"`
}
type List struct {
ShowPreview bool `json:"showPreview"`
GenerateItems bool `json:"generateItems"`
Items []ListItem `json:"items"`
}
type ListItem struct {
Id string `json:"id"`
Title string `json:"title"`
Subtitle string `json:"subtitle"`
Preview *Preview `json:"preview"`
Accessories []string `json:"accessories"`
Actions []Action `json:"actions"`
}
type Preview struct {
Text string `json:"text"`
Language string `json:"language"`
Command []string `json:"command"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.