cli

package
v0.0.0-...-72c59f2 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	iox.IO

	Commands *Commands
	// contains filtered or unexported fields
}

func (*App) Main

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

func (*App) PluginName

func (*App) PluginName() string

func (*App) Print

func (a *App) Print(w io.Writer) error

func (*App) SetIO

func (a *App) SetIO(io iox.IO)

type Commander

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

type Commands

type Commands struct {
	// contains filtered or unexported fields
}

func (*Commands) Find

func (c *Commands) Find(name string) (Commander, bool)

func (*Commands) Map

func (c *Commands) Map() map[string]Commander

func (*Commands) Print

func (c *Commands) Print(w io.Writer) error

func (*Commands) Set

func (c *Commands) Set(name string, cmd Commander)

type Describer

type Describer interface {
	Describe() string
}

type Garlic

type Garlic struct {
	IO       iox.IO
	Force    bool
	SkipTidy bool
}

func (Garlic) Describe

func (Garlic) Describe() string

func (*Garlic) Main

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

func (*Garlic) SetIO

func (g *Garlic) SetIO(io iox.IO)

type Printer

type Printer interface {
	Print(w io.Writer) error
}

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