cmdutil

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exit

func Exit(err error, name string, stderr io.Writer, quiet bool)

Types

type AppOptions

type AppOptions struct {
	Quiet   bool        `name:"quiet" short:"q" help:"Suppress normal output."`
	Version versionFlag `name:"version" help:"Show version."`
}

type ErrorWithExitCode

type ErrorWithExitCode interface {
	error
	ErrorExitCode() int
}

func NewErrorWithExitCode

func NewErrorWithExitCode(err error, exitCode int) ErrorWithExitCode

Jump to

Keyboard shortcuts

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