⚙️ Move preferred formatter to its own config field

This commit is contained in:
Dan Jones 2026-03-09 13:38:13 -05:00
commit cfeab035d3
6 changed files with 12 additions and 7 deletions

View file

@ -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

View file

@ -20,4 +20,6 @@ type Output struct {
Config map[string]any
}
type Formatters map[string]map[string]any
type Formatters struct {
Preferred string
}