Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Annotations ¶
Annotations returns set of annotations for cobra.Commands, specifically the command 'name' and command 'kind'
func PreRunEFunc ¶
PreRunEFunc returns actual 'cobra.Command#PreRunE' function for 'formatter' commands. This functions reads and normalizes flags and arguments passed through CLI execution.
Types ¶
type Config ¶
type Config struct { File string `yaml:"-"` Formatter string `yaml:"formatter"` HeaderFrom string `yaml:"header-from"` Sections sections `yaml:"sections"` OutputValues outputvalues `yaml:"output-values"` Sort sort `yaml:"sort"` Settings settings `yaml:"settings"` }
Config represents all the available config options that can be accessed and passed through CLI
func DefaultConfig ¶
func DefaultConfig() *Config
DefaultConfig returns new instance of Config with default values set
Click to show internal directories.
Click to hide internal directories.