registry

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2026 License: MIT Imports: 9 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 {
	// contains filtered or unexported fields
}

func New

func New() *Impl

func (*Impl) Chdir

func (i *Impl) Chdir(fsys billy.Filesystem, target string) error

Chdir changes the fsys-relative working directory. Validates against fsys.

func (*Impl) Exec

func (i *Impl) Exec(ctx context.Context, fsys billy.Filesystem, runner *interp.Runner, args []string) error

func (*Impl) Get

func (i *Impl) Get(name string) (command.Execer, bool)

func (*Impl) Names

func (i *Impl) Names() []string

Names returns the names of all registered commands in sorted order.

func (*Impl) Pwd

func (i *Impl) Pwd() string

Pwd returns the current fsys-relative working directory.

func (*Impl) Register

func (i *Impl) Register(name string, cmd command.Execer)

func (*Impl) Resolve

func (i *Impl) Resolve(p string) string

Resolve maps a shell path (absolute "/foo" or relative to pwd) into an fs.FS-relative path. Attempts to escape above the fsys root clamp to ".".

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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