command

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2023 License: Apache-2.0 Imports: 8 Imported by: 1

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 Command struct {
	Operation Operation
	Registry  *yamlfmt.Registry
	Config    *Config
	Quiet     bool
}

func (*Command) Run added in v0.7.0

func (c *Command) Run() error

type Config added in v0.7.0

type Config struct {
	Extensions      []string               `mapstructure:"extensions"`
	Include         []string               `mapstructure:"include"`
	Exclude         []string               `mapstructure:"exclude"`
	Doublestar      bool                   `mapstructure:"doublestar"`
	LineEnding      yamlfmt.LineBreakStyle `mapstructure:"line_ending"`
	FormatterConfig *formatterConfig       `mapstructure:"formatter,omitempty"`
}

type Operation

type Operation int
const (
	OperationFormat Operation = iota
	OperationLint
	OperationDry
	OperationStdin
)

Jump to

Keyboard shortcuts

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