Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultConfig = Config{ Schema: "https://github.com/pomdtr/sunbeam/releases/latest/download/config.schema.json", Oneliners: []Oneliner{ { Title: "Open Sunbeam Docs", Command: "sunbeam open https://pomdtr.github.io/sunbeam/introduction", }, { Title: "Edit Config", Command: "sunbeam edit --config", }, }, Extensions: map[string]ExtensionRef{ "devdocs": { Origin: "https://raw.githubusercontent.com/pomdtr/sunbeam/main/extensions/devdocs.sh", }, "google": { Origin: "https://raw.githubusercontent.com/pomdtr/sunbeam/main/extensions/google.sh", }, }, }
Functions ¶
func CommandParam ¶
func ExtractParams ¶
Types ¶
type Config ¶
type Config struct { Schema string `json:"$schema,omitempty"` Oneliners []Oneliner `json:"oneliners,omitempty"` Extensions map[string]ExtensionRef `json:"extensions,omitempty"` }
type ExtensionRef ¶
type ExtensionRef struct { Origin string `json:"origin"` Preferences map[string]any `json:"preferences,omitempty"` }
func (*ExtensionRef) UnmarshalJSON ¶
func (e *ExtensionRef) UnmarshalJSON(b []byte) error
Click to show internal directories.
Click to hide internal directories.