File tree 2 files changed +7
-7
lines changed
2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ import (
10
10
type Config struct {
11
11
Global struct {
12
12
// Excludes is an optional list of glob patterns used to exclude certain files from all formatters.
13
- Excludes []string
14
- }
13
+ Excludes []string `toml:"excludes"`
14
+ } `toml:"global"`
15
15
Formatters map [string ]* Formatter `toml:"formatter"`
16
16
}
17
17
Original file line number Diff line number Diff line change @@ -2,13 +2,13 @@ package config
2
2
3
3
type Formatter struct {
4
4
// Command is the command to invoke when applying this Formatter.
5
- Command string
5
+ Command string `toml:"command"`
6
6
// Options are an optional list of args to be passed to Command.
7
- Options []string
7
+ Options []string `toml:"options,omitempty"`
8
8
// Includes is a list of glob patterns used to determine whether this Formatter should be applied against a path.
9
- Includes []string
9
+ Includes []string `toml:"includes,omitempty"`
10
10
// Excludes is an optional list of glob patterns used to exclude certain files from this Formatter.
11
- Excludes []string
11
+ Excludes []string `toml:"excludes,omitempty"`
12
12
// Indicates the order of precedence when executing this Formatter in a sequence of Formatters.
13
- Priority int
13
+ Priority int `toml:"priority,omitempty"`
14
14
}
You can’t perform that action at this time.
0 commit comments