cli

package
v2.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2021 License: MPL-2.0 Imports: 4 Imported by: 0

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

func DisplayErr(err error, extraLine string) bool

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.

Jump to

Keyboard shortcuts

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