cmd

package
v0.0.0-...-af9c1cf Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ExitCodeOK is a 0 exit code.
	ExitCodeOK = iota
	// ExitCodeErr is a generic exit code, for all non-special errors.
	ExitCodeErr
)

Variables

This section is empty.

Functions

func ErrExit

func ErrExit(w io.Writer, err error)

ErrExit writes an error to the given io.Writer & exits.

func ExitIfErr

func ExitIfErr(w io.Writer, err error)

ExitIfErr only calls ErrExit if there is an error present.

func GetWd

func GetWd() string

GetWd is a convenience method to get the working directory.

Types

This section is empty.

Jump to

Keyboard shortcuts

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