io

package
v0.0.0-...-1bf7cb7 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2018 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFlags

func AddFlags(flags *pflag.FlagSet)

AddFlags adds command line flags for all configured output modes.

func RedirStderr

func RedirStderr(flags *pflag.FlagSet) error

RedirStderr redirects stderr based on configuration.

func SelectInput

func SelectInput(cmd *cobra.Command) (io.ReadCloser, error)

SelectInput returns an io.ReadCloser for the input.

func SetOutput

func SetOutput(ctx context.Context, flags *pflag.FlagSet) (context.Context, error)

SetOutput returns a new context with the output parameters configured.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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