yaml

package
v0.2.81 Latest Latest
Warning

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

Go to latest
Published: May 18, 2023 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OutputFormatter

type OutputFormatter struct {
	Table                *types.Table
	OutputFile           string
	OutputFileTemplate   string
	OutputMultipleFiles  bool
	OutputIndividualRows bool
	// contains filtered or unexported fields
}

func NewOutputFormatter

func NewOutputFormatter(opts ...OutputFormatterOption) *OutputFormatter

func (*OutputFormatter) AddRow

func (f *OutputFormatter) AddRow(row types.Row)

func (*OutputFormatter) AddTableMiddleware

func (f *OutputFormatter) AddTableMiddleware(mw middlewares.TableMiddleware)

func (*OutputFormatter) AddTableMiddlewareAtIndex

func (f *OutputFormatter) AddTableMiddlewareAtIndex(i int, mw middlewares.TableMiddleware)

func (*OutputFormatter) AddTableMiddlewareInFront

func (f *OutputFormatter) AddTableMiddlewareInFront(mw middlewares.TableMiddleware)

func (*OutputFormatter) GetTable

func (f *OutputFormatter) GetTable() (*types.Table, error)

func (*OutputFormatter) Output

func (f *OutputFormatter) Output(ctx context.Context, w io.Writer) error

func (*OutputFormatter) SetColumnOrder

func (f *OutputFormatter) SetColumnOrder(columns []types.FieldName)

type OutputFormatterOption

type OutputFormatterOption func(*OutputFormatter)

func WithOutputFileTemplate

func WithOutputFileTemplate(outputFileTemplate string) OutputFormatterOption

func WithOutputIndividualRows added in v0.2.66

func WithOutputIndividualRows(outputIndividualRows bool) OutputFormatterOption

func WithOutputMultipleFiles

func WithOutputMultipleFiles(outputMultipleFiles bool) OutputFormatterOption

func WithYAMLOutputFile

func WithYAMLOutputFile(outputFile string) OutputFormatterOption

Jump to

Keyboard shortcuts

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