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