cmdline

package
v0.7.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2017 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Display

func Display(ctx context.Context, app string, summaries <-chan *rpc.UpSummary, opts ...Option)

Display provides a UI for the draft client. When performing a draft 'up' Display will output a measure of progress for each summary yielded by the draft state machine.

Types

type Option

type Option func(*options)

Option defines a configurable cmdline interface option.

func DefaultOpts

func DefaultOpts() Option

DefaultOpts is a convenience wrapper that enumerates and configures the set of default

options for the cmdline interface.

func NoColor

func NoColor() Option

NoColor returns an Option that sets if the output is colorized or not.

Colorized output is enabled by default.

func WithStderr

func WithStderr(w io.Writer) Option

WithStderr returns an Option that sets the cmdline interface's stderr writer.

Defaults to os.Stderr.

func WithStdout

func WithStdout(w io.Writer) Option

WithStdout returns an Option that sets the cmdline interface's stdout writer.

Defaults to os.Stdout.

Jump to

Keyboard shortcuts

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