mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-05-31 13:00:41 +08:00
17 lines
383 B
Go
17 lines
383 B
Go
package shell
|
|
|
|
import (
|
|
"yunion.io/x/onecloud/pkg/util/shellutils"
|
|
"yunion.io/x/onecloud/pkg/util/zstack"
|
|
)
|
|
|
|
func init() {
|
|
type RegionListOptions struct {
|
|
}
|
|
shellutils.R(&RegionListOptions{}, "region-list", "List regions", func(cli *zstack.SRegion, args *RegionListOptions) error {
|
|
regions := cli.GetClient().GetRegions()
|
|
printList(regions, 0, 0, 0, nil)
|
|
return nil
|
|
})
|
|
}
|