Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrCommandNotFound = errors.New("formatter command not found in PATH")
ErrCommandNotFound is returned when the Command for a Formatter is not available.
Functions ¶
func CompileGlobs ¶
CompileGlobs prepares the globs, where the patterns are all right-matching.
Types ¶
type Formatter ¶
type Formatter struct {
// contains filtered or unexported fields
}
Formatter represents a command which should be applied to a filesystem.
func NewFormatter ¶
func NewFormatter( name string, treeRoot string, cfg *config.Formatter, globalExcludes []glob.Glob, ) (*Formatter, error)
NewFormatter is used to create a new Formatter.
func (*Formatter) Executable ¶
Executable returns the path to the executable defined by Command
Click to show internal directories.
Click to hide internal directories.