extensions

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exec

func Exec(name string, args []string) error

Exec delegates to an installed extension binary with passthrough stdio.

func ExtractExtensionCommand

func ExtractExtensionCommand(args []string) (name string, extArgs []string, ok bool)

ExtractExtensionCommand identifies the extension command from CLI args.

func Remove

func Remove(name string) error

Remove deletes an installed extension and its metadata entry.

Types

type InstalledExtension

type InstalledExtension struct {
	Name       string `json:"name"`
	Binary     string `json:"binary"`
	Source     string `json:"source"`
	Kind       string `json:"kind"`
	InstallDir string `json:"install_dir,omitempty"`
}

func Install

func Install(source string, overwrite bool) (InstalledExtension, error)

Install clones or links an extension into the sabx extension dir.

func List

func List() ([]InstalledExtension, error)

List returns installed extensions (metadata + PATH discovery).

func Resolve

func Resolve(name string) (InstalledExtension, error)

Resolve locates an extension by name (installed metadata or PATH).

Jump to

Keyboard shortcuts

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