commands

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Impl

type Impl struct {
	Reg Lister
}

func (Impl) Exec

func (i Impl) Exec(ctx context.Context, ec *command.ExecContext, args []string) error

type Lister

type Lister interface {
	Names() []string
}

Lister reports the names of registered commands. The registry satisfies this interface; using it here keeps commands decoupled from the concrete type.

Jump to

Keyboard shortcuts

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