mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-08-29 03:51:54 +08:00
20 lines
483 B
Go
20 lines
483 B
Go
package shell
|
|
|
|
import (
|
|
"yunion.io/x/onecloud/pkg/util/shellutils"
|
|
"yunion.io/x/onecloud/pkg/util/zstack"
|
|
)
|
|
|
|
func init() {
|
|
type ConfigrationListOptions struct {
|
|
}
|
|
shellutils.R(&ConfigrationListOptions{}, "configration-list", "List configration", func(cli *zstack.SRegion, args *ConfigrationListOptions) error {
|
|
configrations, err := cli.GetConfigrations()
|
|
if err != nil {
|
|
return err
|
|
}
|
|
printList(configrations, len(configrations), 0, 0, []string{})
|
|
return nil
|
|
})
|
|
}
|