package
0.0.0-20210318211101-2bc12df73e84
Repository: https://github.com/puppetlabs/wash.git
Documentation: pkg.go.dev

# Functions

ErrPrintf formats and prints the provided format string and args on stderr and colors the output red.
FormatDuration formats a duration as `[[dd-]hh:]mm:ss` according to http://pubs.opengroup.org/onlinepubs/9699919799/utilities/ps.html.
LongestFieldFromColumn returns the longest string for a particular column index from the provided table.
NewMarshaller returns a marshaller that marshals values into the specified format.
NewPool creates a new dynamic worker pool.
NewTable creates a new Table object with the given rows.
NewTableWithHeaders creates a new Table object with the given headers and rows.
Print is a wrapper to fmt.Print that prints to cmdutil.Stdout.
Printf is a wrapper to fmt.Printf that prints to cmdutil.Stdout.
Println is a wrapper to fmt.Println that prints to cmdutil.Stdout.
Prompt prints the supplied message, waits for input on stdin, then passes the input over to the supplied parser.
SafeErrPrintf is a thread-safe wrapper to ErrPrintf.
SafePrint is a thread-safe wrapper to Print.
SafePrintf is a thread-safe wrapper to Printf.
SafePrintln is a thread-safe wrapper to Println.

# Constants

JSON represents the json marshaller.
TEXT represents an easily greppable text format.
YAML represents the YAML marshaller.

# Variables

ColoredStderr represents a color supporting writer for Stderr.
NewClient returns a new Wash client for the given subcommand.
Stderr represents Stderr.
Stdout represents Stdout.
YesOrNoP parses input representing confirmation.

# Structs

ColumnHeader describes a short and long name for a column.
Pool is a worker pool to limit work-in-progress and wait for a dynamic batch of work to complete.
Table represents a formatted table.

# Interfaces

TextMarshaler is a type that can be marshaled into Text output.
YamlMarshaler is a type that can be marshalled into YAML.

# Type aliases

InputParser represents a parser that parses input passed into Prompt.
Marshaller is a type that marshals a given value.