ade

package
v1.17.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2026 License: Apache-2.0 Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package ade detects ADE candidates from the Bootstrap registry and starts an ADE through a trusted executor. It contains no ADE catalog of its own and no methodology.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Detect

func Detect(registry []ports.ADE, projectRoot string, runner ports.Runner) []ports.Candidate

Detect observes which registry ADEs show signals in the project or on the machine. A signal makes an ADE a candidate and nothing more.

func Names

func Names(registry []ports.ADE, ids []string) string

Names maps ids to display names for rendering.

func Registry

func Registry(ctx context.Context, b ports.Bootstrap) ([]ports.ADE, error)

Registry reads the supported ADEs from the Bootstrap.

Types

type Executor

type Executor struct {
	ADE    ports.ADE
	Runner ports.Runner
}

Executor starts one ADE in the project. It passes no instructions: the ADE reads the Bootstrap-installed entry on its own.

func (Executor) Available

func (e Executor) Available() bool

Available reports whether the ADE binary can be started.

func (Executor) BuildCommand

func (e Executor) BuildCommand(c ports.HandoffContract) ports.Command

BuildCommand returns the invocation: the declared binary, no arguments, in the project root, attached to the terminal.

func (Executor) Execute

func (e Executor) Execute(ctx context.Context, c ports.HandoffContract) error

Execute starts the ADE and waits for it.

func (Executor) ID

func (e Executor) ID() string

ID returns the ADE id.

Jump to

Keyboard shortcuts

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