fix: print json

This commit is contained in:
liruichen 2023-09-11 16:25:08 +08:00
parent 8e4acada74
commit f964e7fa89

View File

@ -79,9 +79,10 @@ asJson:
}
if !isJson {
table.Render()
} else {
b, _ := json.Marshal(agents)
fmt.Fprint(os.Stdout, string(b))
}
b, _ := json.Marshal(agents)
fmt.Fprint(os.Stdout, string(b))
}
func DeleteAgents(host string, ids []string) {