fix: print json
This commit is contained in:
parent
8e4acada74
commit
f964e7fa89
@ -79,9 +79,10 @@ asJson:
|
|||||||
}
|
}
|
||||||
if !isJson {
|
if !isJson {
|
||||||
table.Render()
|
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) {
|
func DeleteAgents(host string, ids []string) {
|
||||||
|
Loading…
Reference in New Issue
Block a user