Example #1
0
func printColumn(formatter cli.Formatter) {
	err := formatter.ToColumns(os.Stdout)
	if err != nil {
		log.Error("Error: %s", err.Error())
	}
}
Example #2
0
func printEncodedType(formatter cli.Formatter, encoder encoding.EncoderType) {
	e, _ := encoding.NewEncoder(encoder)
	str, _ := e.MarshalIndent(formatter.Data().Data)
	fmt.Println(str)
}