fix: output yaml not pretty

This commit is contained in:
Daniel Ding
2022-09-25 00:45:09 +08:00
parent 42dfbe5cb4
commit b099e325f0
21 changed files with 103 additions and 116 deletions

View File

@@ -73,6 +73,7 @@ func OutTable(data interface{}, tmpl string) error {
}
func Out(data interface{}, format string, tmpl string) error {
libol.Debug("Out %s %s", format, tmpl)
switch format {
case "json":
return OutJson(data)