Documentation
¶
Index ¶
- Variables
- func NewCommandAddCmd() *cobra.Command
- func NewCommandCmd() *cobra.Command
- func NewCommandListCmd() *cobra.Command
- func NewCommandManageCmd() *cobra.Command
- func NewCommandRemoveCmd() *cobra.Command
- func NewCommandRenameCmd() *cobra.Command
- func NewCommandUpgradeCmd() *cobra.Command
- func NewCustomCmd(commandName string, manifest Manifest) *cobra.Command
- func NewDetailCmd() *cobra.Command
- func NewEvalCmd() *cobra.Command
- func NewExecCmd() *cobra.Command
- func NewFetchCmd() *cobra.Command
- func NewListCmd() *cobra.Command
- func NewQueryCmd() *cobra.Command
- func NewReadCmd() *cobra.Command
- func NewRootCmd() *cobra.Command
- func NewRunCmd() *cobra.Command
- func NewTriggerCmd() *cobra.Command
- func NewValidateCmd() *cobra.Command
- func Run(generator internal.PageGenerator) error
- type Command
- type CommandRemote
- type GithubRemote
- type LocalDir
- type LocalScript
- type Manifest
- type ScriptRemote
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Version = "dev" Date = "unknown" )
View Source
var MetadataRegexp = regexp.MustCompile(`@(sunbeam|raycast)\.(?P<key>[A-Za-z0-9]+)\s(?P<value>[\S ]+)`)
Functions ¶
func NewCommandAddCmd ¶
func NewCommandCmd ¶
func NewCommandListCmd ¶
func NewCommandManageCmd ¶
func NewCommandRemoveCmd ¶
func NewCommandRenameCmd ¶
func NewCommandUpgradeCmd ¶
func NewDetailCmd ¶
func NewEvalCmd ¶
func NewExecCmd ¶
func NewFetchCmd ¶ added in v0.9.23
func NewListCmd ¶
func NewQueryCmd ¶ added in v0.3.0
func NewReadCmd ¶ added in v0.2.5
func NewRootCmd ¶ added in v0.9.0
func NewTriggerCmd ¶ added in v0.9.0
func NewValidateCmd ¶ added in v0.4.1
func Run ¶ added in v0.9.23
func Run(generator internal.PageGenerator) error
Types ¶
type Command ¶
type Command struct {
Title string `json:"title"`
Description string `json:"description,omitempty"`
Entrypoint string `json:"entrypoint,omitempty"`
SubCommands map[string]Command `json:"subcommands,omitempty"`
}
func ExtractScriptMetadata ¶
type CommandRemote ¶
type CommandRemote interface {
GetLatestVersion() (string, error)
Download(targetDir string, version string) error
}
func GetRemote ¶
func GetRemote(origin string) (CommandRemote, error)
type GithubRemote ¶
type GithubRemote struct {
// contains filtered or unexported fields
}
func (GithubRemote) Download ¶
func (r GithubRemote) Download(targetDir string, version string) error
func (GithubRemote) GetLatestVersion ¶
func (r GithubRemote) GetLatestVersion() (string, error)
type LocalDir ¶
type LocalDir struct {
// contains filtered or unexported fields
}
func (LocalDir) GetLatestVersion ¶
type LocalScript ¶
type LocalScript struct {
// contains filtered or unexported fields
}
func (LocalScript) GetLatestVersion ¶
func (r LocalScript) GetLatestVersion() (string, error)
type ScriptRemote ¶
type ScriptRemote struct {
// contains filtered or unexported fields
}
func (ScriptRemote) Download ¶
func (r ScriptRemote) Download(targetDir string, version string) error
func (ScriptRemote) GetLatestVersion ¶
func (r ScriptRemote) GetLatestVersion() (string, error)
Click to show internal directories.
Click to hide internal directories.