mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-06-20 20:26:03 +08:00
21 lines
481 B
Go
21 lines
481 B
Go
package shell
|
|
|
|
import (
|
|
"github.com/yunionio/jsonutils"
|
|
|
|
"github.com/yunionio/onecloud/pkg/mcclient/modules"
|
|
"github.com/yunionio/onecloud/pkg/util/printutils"
|
|
)
|
|
|
|
func printList(list *modules.ListResult, columns []string) {
|
|
printutils.PrintJSONList(list, columns)
|
|
}
|
|
|
|
func printObject(obj jsonutils.JSONObject) {
|
|
printutils.PrintJSONObject(obj)
|
|
}
|
|
|
|
func printBatchResults(results []modules.SubmitResult, columns []string) {
|
|
printutils.PrintJSONBatchResults(results, columns)
|
|
}
|