cmd

package
v0.0.0-...-4b33866 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run() error

Run

Types

type Cmd

type Cmd struct {
	*cobra.Command
}

Cmd

type CmdError

type CmdError struct {
	Code int
	Err  error
}

CmdError

func (CmdError) Error

func (e CmdError) Error() string

Error

type Opts

type Opts struct {
	Stdout  io.Writer
	Stdin   io.Reader
	Stderr  io.Writer
	WorkDir string
}

Opts

func InitOpts

func InitOpts() (*Opts, error)

InitOpts

func (Opts) Validate

func (c Opts) Validate() error

Validate

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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