Documentation ¶
Index ¶
- func ConfigDir() (string, error)
- func HomeDir() string
- func Print(output, template string, m proto.Message, tblPrn Printer, w io.Writer) error
- func PrintJSON(m proto.Message, w io.Writer) error
- func PrintJSONList(data interface{}, w io.Writer) error
- func PrintList(output, template string, list interface{}, tblPrn Printer, w io.Writer) error
- func PrintTemplate(data interface{}, tmpl string, w io.Writer) error
- func PrintYAML(m proto.Message, w io.Writer) error
- func PrintYAMLList(data interface{}, w io.Writer) error
- func ReadStdinInto(v proto.Message) error
- func Telemetry(version string, t time.Time)
- type Printer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HomeDir ¶
func HomeDir() string
HomeDir returns the current users home directory irrespecitve of the OS
func PrintJSONList ¶
PrintJSONList - prints the given list to io.Writer in JSON
func PrintList ¶
PrintList - prints the given list of values to io.Writer using the specified output format
func PrintTemplate ¶
PrintTemplate prints the give value using the provided Go template to io.Writer
func PrintYAMLList ¶
PrintYAMLList - prints the given list to io.Writer in YAML
func ReadStdinInto ¶
ReadStdinInto reads the standard input into the provided proto.Message
Types ¶
Click to show internal directories.
Click to hide internal directories.