17 lines
538 B
Go
17 lines
538 B
Go
package output
|
|
|
|
import (
|
|
"git.bissendorf.co/bissendorf/unifood/m/v2/core/interfaces"
|
|
)
|
|
|
|
var Formatters = map[string]interfaces.Formatter{
|
|
"json": &JsonFormatter{},
|
|
"yaml": &YamlFormatter{},
|
|
"go": &GoFormatter{},
|
|
"table": &TableFormatter{},
|
|
"csv": &TableFormatter{HideSummary: true, RenderFormat: tableFormatCSV},
|
|
"html": &TableFormatter{HideSummary: true, RenderFormat: tableFormatHTML},
|
|
"markdown": &TableFormatter{HideSummary: true, RenderFormat: tableFormatMarkdown},
|
|
"name": &NameFormatter{},
|
|
}
|