mirror of
https://github.com/luscis/openlan.git
synced 2025-10-26 18:30:35 +08:00
fix: output yaml not pretty
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user