Replaces the `Before` config option with an optional `Pipeline` key. This is used to group formatters together in the order in which they are specified within the config file. Signed-off-by: Brian McGee <brian@bmcgee.ie>
15 lines
481 B
Go
15 lines
481 B
Go
package config
|
|
|
|
type Formatter struct {
|
|
// Command is the command invoke when applying this Formatter.
|
|
Command string
|
|
// Options are an optional list of args to be passed to Command.
|
|
Options []string
|
|
// Includes is a list of glob patterns used to determine whether this Formatter should be applied against a path.
|
|
Includes []string
|
|
// Excludes is an optional list of glob patterns used to exclude certain files from this Formatter.
|
|
Excludes []string
|
|
//
|
|
Pipeline string
|
|
}
|