Documentation
¶
Index ¶
- func FormatCreated(data interface{}) (string, error)
- func FormatFirst(data, data2 interface{}) (string, error)
- func FormatJSON(data interface{}) (string, error)
- func FormatJSONCompact(data interface{}) (string, error)
- func FormatSpew(data interface{}) (string, error)
- func FormatStackScopedName(cluster *clientcfg.Cluster) func(interface{}, interface{}) (string, error)
- func FormatYAML(data interface{}) (string, error)
- func SimpleFormat(values [][]string) (string, string)
- func WriterFlags() []cli.Flag
- type FormatFunc
- type Writer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatStackScopedName ¶
Types ¶
type FormatFunc ¶
type FormatFunc interface{}
type Writer ¶
type Writer struct {
HeaderFormat string
ValueFormat string
Writer *tabwriter.Writer
// contains filtered or unexported fields
}
func NewWriter ¶
func NewWriter(values [][]string, ctx *clicontext.CLIContext) *Writer
func (*Writer) AddFormatFunc ¶
func (t *Writer) AddFormatFunc(name string, f FormatFunc)
Source Files
¶
- flags.go
- fmt.go
- writer.go
Click to show internal directories.
Click to hide internal directories.