Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var OsExiter = os.Exit
OsExiter is the function used when the app exits. If not set defaults to os.Exit.
Functions ¶
func NewCLIError ¶
func Run ¶
func Run( stdin ReadWriterWithStat, stdout ReadWriterWithStat, stderr ReadWriterWithStat, osArgs []string, release Release, )
Types ¶
type CLI ¶
type CLI struct { Stdin ReadWriterWithStat Stdout ReadWriterWithStat Stderr ReadWriterWithStat OsArgs []string Release Release // contains filtered or unexported fields }
type CLIError ¶
type CLIError struct {
// contains filtered or unexported fields
}
func (CLIError) PrintDetails ¶
type FlagString ¶
type FlagString string
type Printer ¶
func ColoredBox ¶
type ReadWriterWithStat ¶
type ReadWriterWithStat interface { io.ReadWriter Stat() (fs.FileInfo, error) }
Click to show internal directories.
Click to hide internal directories.