output

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2019 License: MIT Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package output contains the code for processing the user provided configuration for the output.

Index

Constants

View Source
const (
	FlagOutputURI               string = "output-uri"
	FlagOutputCompression       string = "output-compression"
	FlagOutputFormat            string = "output-format"
	FlagOutputFormatSpecifier   string = "output-format-specifier"
	FlagOutputFit               string = "output-fit"
	FlagOutputPretty            string = "output-pretty"
	FlagOutputHeader            string = "output-header"
	FlagOutputLimit             string = "output-limit"
	FlagOutputAppend            string = "output-append"
	FlagOutputOverwrite         string = "output-overwrite"
	FlagOutputBufferMemory      string = "output-buffer-memory"
	FlagOutputMkdirs            string = "output-mkdirs"
	FlagOutputPassphrase        string = "output-passphrase"
	FlagOutputSalt              string = "output-salt"
	FlagOutputDecimal           string = "output-decimal"
	FlagOutputKeyLower          string = "output-key-lower"
	FlagOutputKeyUpper          string = "output-key-upper"
	FlagOutputValueLower        string = "output-value-lower"
	FlagOutputValueUpper        string = "output-value-upper"
	FlagOutputNoDataValue       string = "output-no-data-value"
	FlagOutputLineSeparator     string = "output-line-separator"
	FlagOutputKeyValueSeparator string = "output-key-value-separator"
	FlagOutputExpandHeader      string = "output-expand-header"
	FlagOutputEscapePrefix      string = "output-escape-prefix"
	FlagOutputEscapeColon       string = "output-escape-colon"
	FlagOutputEscapeEqual       string = "output-escape-equal"
	FlagOutputEscapeNewLine     string = "output-escape-new-line"
	FlagOutputEscapeSpace       string = "output-escape-space"
	FlagOutputSorted            string = "output-sorted"
	FlagOutputReversed          string = "output-reversed"
	FlagOutputType              string = "output-type"

	DefaultOutputLimit = -1
)

Variables

View Source
var (
	ErrMissingOutputKeyValueSeparator = errors.New("missing output key-value separator")
	ErrMissingOutputLineSeparator     = errors.New("missing output line separator")
	ErrMissingOutputEscapePrefix      = errors.New("missing output escape prefix")
)
View Source
var (
	DefaultOutputHeader = []string{}
)

Functions

func CheckOutputConfig

func CheckOutputConfig(v *viper.Viper, formats []string) error

CheckOutputConfig checks the output configuration.

func InitOutputFlags

func InitOutputFlags(flag *pflag.FlagSet)

InitOutputFlags initializes the flags for processing the output data from the gss command.

Types

type ErrInvalidOutputFormat

type ErrInvalidOutputFormat struct {
	Value    string
	Expected []string
}

func (*ErrInvalidOutputFormat) Error

func (e *ErrInvalidOutputFormat) Error() string

type ErrInvalidOutputKeyValueSeparator

type ErrInvalidOutputKeyValueSeparator struct {
	Value string
}

func (*ErrInvalidOutputKeyValueSeparator) Error

type ErrInvalidOutputLineSeparator

type ErrInvalidOutputLineSeparator struct {
	Value string
}

func (*ErrInvalidOutputLineSeparator) Error

type ErrMissingOutputFormat

type ErrMissingOutputFormat struct {
	Expected []string
}

func (*ErrMissingOutputFormat) Error

func (e *ErrMissingOutputFormat) Error() string

Jump to

Keyboard shortcuts

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