cmd

package
v1.0.0-rc27 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 29, 2023 License: MIT Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Version = "dev"
	Date    = "unknown"
)
View Source
var (
	MaxHeigth = LookupIntEnv("SUNBEAM_HEIGHT", 0)
)

Functions

func BearerMiddleware

func BearerMiddleware(token string) func(next http.Handler) http.Handler

func ExtractCommand

func ExtractCommand(shellCommand string) (tui.CommandRef, error)

func FindExtensions

func FindExtensions() (map[string]string, error)

func LookupBoolEnv

func LookupBoolEnv(key string, fallback bool) bool

func LookupIntEnv

func LookupIntEnv(key string, fallback int) int

func NewCmdEdit

func NewCmdEdit(configPath string) *cobra.Command

func NewCmdFetch

func NewCmdFetch() *cobra.Command

func NewCmdList

func NewCmdList() *cobra.Command

func NewCmdQuery

func NewCmdQuery() *cobra.Command

func NewCmdRun

func NewCmdRun() *cobra.Command

func NewCmdServe

func NewCmdServe() *cobra.Command

func NewExtensionCommand

func NewExtensionCommand(extensionpath string) (*cobra.Command, error)

func NewRootCmd added in v0.9.0

func NewRootCmd() (*cobra.Command, error)

func NewValidateCmd added in v0.4.1

func NewValidateCmd() *cobra.Command

func NewValidateManifestCmd

func NewValidateManifestCmd() *cobra.Command

func NewValidatePageCmd

func NewValidatePageCmd() *cobra.Command

Types

type Config

type Config struct {
	RootItems map[string]string `json:"root"`
}

type ExtensionCache

type ExtensionCache map[string]types.Manifest

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL