cli

package
v0.0.0-...-5b4c5eb Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ExitOK    = 0
	ExitError = 1
)

Variables

This section is empty.

Functions

func WriteError

func WriteError(w io.Writer, err error)

Types

type Commander

type Commander interface {
	SetOutStream(io.Writer)
	SetErrStream(io.Writer)
	//SetFlagSet(*flag.FlagSet)
	//Name() string
	Run([]string) error
}

type Main

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

func NewMain

func NewMain(command Commander, out, err io.Writer) *Main

func (*Main) Run

func (m *Main) Run(args []string) error

Jump to

Keyboard shortcuts

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