Documentation
¶
Overview ¶
Package cli contains functions shared between moac and moac-pwgen binaries
Index ¶
Constants ¶
View Source
const FloatFmt = "%.3g\n"
FloatFmt defines how many digits of a float to print.
Variables ¶
View Source
var ( // ErrBadCmdline indicates an invalid argument has been passed via the CLI. ErrBadCmdline = errors.New("bad arguments") )
Functions ¶
func DisplayErr ¶ added in v2.0.1
DisplayErr prints an error to stdout and returns true if it's nil.
func GetVersion ¶ added in v2.0.1
func GetVersion() string
GetVersion fetches the version of the MOAC binaries, configurable at link-time.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.