tables

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2021 License: Apache-2.0, Apache-2.0 Imports: 4 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	*cobra.Command
}

func (*Options) GetBool

func (cmd *Options) GetBool(name string) (b bool)

func (*Options) GetInt

func (cmd *Options) GetInt(name string) (i int)

func (*Options) GetInt32

func (cmd *Options) GetInt32(name string) (i int32)

func (*Options) GetString

func (cmd *Options) GetString(name string) (s string)

func (*Options) GetStringSlice

func (cmd *Options) GetStringSlice(name string) (s []string)

type Table

type Table interface {
	Render()
	SetHeader(keys []string)
	Append(row []string)
	AppendBulk(rows [][]string)
	NumLines() int
	SetColWidth(width int)
}

func NewTable

func NewTable(w ...io.Writer) Table

Jump to

Keyboard shortcuts

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