extensions

package
v1.0.0-rc.73 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Extension

type Extension struct {
	types.Manifest `json:"manifest"`
	Metadata
}

func (Extension) CheckRequirements

func (ext Extension) CheckRequirements() error

func (Extension) Cmd

func (e Extension) Cmd(input types.CommandInput) (*exec.Cmd, error)

func (Extension) CmdContext

func (e Extension) CmdContext(ctx context.Context, input types.CommandInput) (*exec.Cmd, error)

func (Extension) Command

func (e Extension) Command(name string) (types.CommandSpec, bool)

func (Extension) Output

func (ext Extension) Output(input types.CommandInput) ([]byte, error)

func (Extension) RootItems

func (e Extension) RootItems() []types.RootItem

func (Extension) Run

func (e Extension) Run(input types.CommandInput) error

type ExtensionMap

type ExtensionMap map[string]Extension

func (ExtensionMap) List

func (e ExtensionMap) List() []Extension

type ExtensionType

type ExtensionType string
const (
	ExtensionTypeLocal ExtensionType = "local"
	ExtensionTypeHttp  ExtensionType = "http"
)

type Metadata

type Metadata struct {
	Type       ExtensionType `json:"type"`
	Origin     string        `json:"origin"`
	Entrypoint string        `json:"entrypoint"`
}

type Preferences

type Preferences map[string]any

Jump to

Keyboard shortcuts

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