Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶ added in v0.7.0
type Config ¶ added in v0.7.0
type Config struct { Extensions []string `mapstructure:"extensions"` MatchType yamlfmt.MatchType `mapstructure:"match_type"` Include []string `mapstructure:"include"` Exclude []string `mapstructure:"exclude"` RegexExclude []string `mapstructure:"regex_exclude"` FormatterConfig *FormatterConfig `mapstructure:"formatter,omitempty"` Doublestar bool `mapstructure:"doublestar"` ContinueOnError bool `mapstructure:"continue_on_error"` LineEnding yamlfmt.LineBreakStyle `mapstructure:"line_ending"` GitignoreExcludes bool `mapstructure:"gitignore_excludes"` GitignorePath string `mapstructure:"gitignore_path"` OutputFormat engine.EngineOutputFormat `mapstructure:"output_format"` }
type FormatterConfig ¶ added in v0.9.0
type FormatterConfig struct { Type string `mapstructure:"type"` FormatterSettings map[string]any `mapstructure:",remain"` }
func NewFormatterConfig ¶ added in v0.9.0
func NewFormatterConfig() *FormatterConfig
NewFormatterConfig returns an empty formatter config with all fields initialized.
Click to show internal directories.
Click to hide internal directories.