cmd

package
v0.0.6-pre Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrExit = errors.New("user negatively confirmed input")

ErrExit is returned when the user denies the provided input.

Functions

func ParseAndRun

func ParseAndRun(args []string) error

Types

type Process

type Process struct {
	SkipValidation bool `long:"skip-validation" description:"skips waiting for human validation" env:"PC_SKIP_VALIDATION"`
	Version        bool `long:"version" short:"v" description:"display version"`

	StdIn        io.Reader
	StdOut       io.Writer
	StdErr       io.Writer
	GetUserInput func(stream io.Writer) (byte, error)

	// OutputCompleteMessage is used for testing only. It outputs an additional
	// "complete" prior to exiting when set to true.
	OutputCompleteMessage bool
}

func (Process) Execute

func (p Process) Execute([]string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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