garlic

package module
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: MIT Imports: 10 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Commander

type Commander interface {
	Main(ctx context.Context, pwd string, args []string) error
}

type ExitCoder

type ExitCoder interface {
	ExitCode() int
}

type ExitError

type ExitError struct {
	Code int
	Err  error
}

func (ExitError) As

func (e ExitError) As(target any) bool

func (ExitError) Error

func (e ExitError) Error() string

func (ExitError) ExitCode

func (e ExitError) ExitCode() int

func (ExitError) Is

func (e ExitError) Is(target error) bool

func (ExitError) Unwrap

func (e ExitError) Unwrap() error

type Garlic

type Garlic struct {
	Cmd  Commander
	FS   fs.FS
	IO   iox.IO
	Name string
	// contains filtered or unexported fields
}

func (*Garlic) Main

func (g *Garlic) Main(ctx context.Context, pwd string, args []string) error

func (*Garlic) PluginName

func (g *Garlic) PluginName() string

type Local

type Local struct {
	FS   fs.FS
	Root string
	Name string
	IO   iox.IO
}

func (Local) Exists

func (l Local) Exists() bool

func (Local) Run

func (l Local) Run(ctx context.Context, args []string) error

func (Local) String

func (l Local) String() string

type SettableFS

type SettableFS interface {
	SetFS(fs fs.FS)
}

type SettableIO

type SettableIO interface {
	SetIO(io iox.IO)
}

Jump to

Keyboard shortcuts

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