⚙️ Move preferred formatter to its own config field
This commit is contained in:
parent
ce83cf1cc2
commit
cfeab035d3
6 changed files with 12 additions and 7 deletions
|
|
@ -30,6 +30,10 @@ format = "plain"
|
|||
|
||||
[formatters]
|
||||
|
||||
# Default formatter used. Some outputs can override this value
|
||||
preferred = "plain"
|
||||
|
||||
# Each formatter may have additional configuration
|
||||
[formatters.json]
|
||||
# Set to true to pretty print JSON output
|
||||
pretty_print = false
|
||||
|
|
|
|||
|
|
@ -20,4 +20,6 @@ type Output struct {
|
|||
Config map[string]any
|
||||
}
|
||||
|
||||
type Formatters map[string]map[string]any
|
||||
type Formatters struct {
|
||||
Preferred string
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue