✨ Add JSON formatter
This commit is contained in:
parent
d1b3604e1e
commit
4c0edcd1a5
4 changed files with 132 additions and 1 deletions
|
|
@ -10,6 +10,7 @@ type formatMaker func(config.Formatters) (Formatter, error)
|
|||
|
||||
var formatterMap = map[string]formatMaker{
|
||||
"plain": newPlain,
|
||||
"json": newJson,
|
||||
}
|
||||
|
||||
func Preferred() (f Formatter, err error) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue