extensionrepo

package
v0.23.4 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2026 License: MIT Imports: 22 Imported by: 0

Documentation

Overview

Package extensionrepo runs repository tasks through the extension's export program. It owns checks, contract lookup, updates, staged install, and uninstall, as Extension repository in contract.md defines. Its test wrapper prints notices after Go's package results, as Test kit defines.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Install

func Install(e extension.Extension, executable, dir string) error

Install stages executable and the embedded sidecars of e, then publishes the executable last. The kit uses it with its built executable and a scratch extensions folder.

func Main

func Main(e extension.Extension)

Main runs a repository task, then exits. The export subcommand writes embedded sidecars for the staged build.

func Notice

func Notice(message string) error

Notice records a test notice for Test to print after the packages finish. Outside Test, it writes to stdout, which go test can hide for passing packages.

func Test

func Test(args []string) int

Test runs go test without its result cache, then prints notices to stderr outside Go's output filter. It accepts go test arguments, defaults to ./..., and preserves the test exit code.

func Uninstall

func Uninstall(e extension.Extension, dir string) ([]string, error)

Uninstall removes e from dir, with the executable first. It returns the paths removed, in order, and accepts an absent install.

Types

This section is empty.

Directories

Path Synopsis
cmd
extensionrepo command
Command extensionrepo runs repository tasks through the shared SDK, including from a downloaded Nicely module.
Command extensionrepo runs repository tasks through the shared SDK, including from a downloaded Nicely module.
Command test runs Go tests and prints their collected notices after the package results.
Command test runs Go tests and prints their collected notices after the package results.

Jump to

Keyboard shortcuts

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