Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewStdIOStreams ¶
NewStdIOStreams returns an IOStreams from os.Stdin, os.Stdout.
func NewZapLogger ¶
func PrintFlags ¶
PrintFlags logs the flags in the flag set.
func StartProfiling ¶
StartProfiling initializes profiling for the current process.
func StopProfiling ¶
StopProfiling stops the profiler.
Types ¶
type CommonOptions ¶
type CommonOptions struct { // In, Out, and Err represent the respective data streams that the command // may act upon. They are attached directly to any sub-process of the executed // command. IOStreams streams.IOStreams // Log represents the common internal logger implementation. Log log.Logger }
CommonOptions contains common options.
func NewCommonOptions ¶
func NewCommonOptions(streams streams.IOStreams, log log.Logger) *CommonOptions
NewCommonOptions returns a new CommonOptions object.
func (*CommonOptions) SetIOStreams ¶
func (o *CommonOptions) SetIOStreams(streams streams.IOStreams)
SetIOStreams sets the IOStreams.
Click to show internal directories.
Click to hide internal directories.