mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/yunionio/cloudpods.git
synced 2026-09-21 00:24:07 +08:00
21 lines
403 B
Go
21 lines
403 B
Go
package shell
|
|
|
|
import (
|
|
"yunion.io/x/onecloud/pkg/multicloud/ecloud"
|
|
"yunion.io/x/onecloud/pkg/util/shellutils"
|
|
)
|
|
|
|
func init() {
|
|
type PListOptions struct {
|
|
}
|
|
shellutils.R(&PListOptions{}, "server-producttype-list", "List productTypes", func(cli *ecloud.SRegion,
|
|
args *PListOptions) error {
|
|
prod, e := cli.GetProductTypes()
|
|
if e != nil {
|
|
return e
|
|
}
|
|
printObject(prod)
|
|
return nil
|
|
})
|
|
}
|