Documentation ¶
Index ¶
Constants ¶
View Source
const (
DefaultFormat = "table"
)
Variables ¶
This section is empty.
Functions ¶
func ValidFormats ¶
func ValidFormats() []string
ValidFormats returns the list of valid formats for NewOutput
Types ¶
type CSVOutput ¶
type CSVOutput columnOutput
func (*CSVOutput) PrintProposals ¶
PrintProposals prins KEPs array in CSV format
type JSONOutput ¶
type JSONOutput output
func (*JSONOutput) PrintProposals ¶
func (o *JSONOutput) PrintProposals(proposals []*api.Proposal)
PrintProposals prints KEPs array in JSON format
type Output ¶
Output is capable of printing... well pretty much just KEPs, but if there is interest in printing other types in api, this could be the place
type PrintConfig ¶
PrintConfig defines how a given Proposal field should be formatted for columnar output (e.g. TableOutput, CSVOutput)
func DefaultPrintConfigs ¶
func DefaultPrintConfigs(names ...string) []PrintConfig
type TableOutput ¶
type TableOutput columnOutput
func (*TableOutput) PrintProposals ¶
func (o *TableOutput) PrintProposals(proposals []*api.Proposal)
PrintProposals prints KEPs array in table format
type YAMLOutput ¶
type YAMLOutput output
func (*YAMLOutput) PrintProposals ¶
func (o *YAMLOutput) PrintProposals(proposals []*api.Proposal)
PrintProposals prints KEPs array in YAML format
Click to show internal directories.
Click to hide internal directories.