mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-10-29 17:58:36 +08:00
climc: 将xx-list --{provider,manager,account}放到BaseListOptions
This commit is contained in:
@@ -174,6 +174,10 @@ type BaseListOptions struct {
|
||||
ExportFile string `help:"Export to file" metavar:"<EXPORT_FILE_PATH>" json:"-"`
|
||||
ExportKeys string `help:"Export field keys"`
|
||||
ExportTexts string `help:"Export field displayname texts" json:"-"`
|
||||
|
||||
Manager string `help:"List objects belonging to the cloud provider"`
|
||||
Account string `help:"List objects belonging to the cloud account"`
|
||||
Provider string `help:"List objects from the provider" choices:"VMware|Aliyun|Qcloud|Azure|Aws|Huawei"`
|
||||
}
|
||||
|
||||
func (opts *BaseListOptions) Params() (*jsonutils.JSONDict, error) {
|
||||
|
||||
@@ -130,7 +130,6 @@ type RouteTablePurgeOptions struct {
|
||||
}
|
||||
|
||||
type RouteTableListOptions struct {
|
||||
Manager string
|
||||
Vpc string
|
||||
Cloudregion string
|
||||
|
||||
|
||||
@@ -23,10 +23,6 @@ type ServerListOptions struct {
|
||||
WithEip *bool `help:"Show Servers with EIP"`
|
||||
WithoutEip *bool `help:"Show Servers without EIP"`
|
||||
|
||||
Manager string `help:"Show servers imported from manager"`
|
||||
Account string `help:"List hosts belongs to the cloud account"`
|
||||
Provider string `help:"List hosts belongs to the provider" choices:"VMware|Aliyun|Qcloud|Azure|Aws|Huawei"`
|
||||
|
||||
ResourceType string `help:"Resource type" choices:"shared|prepaid|dedicated"`
|
||||
|
||||
BillingType string `help:"billing type" choices:"postpaid|prepaid"`
|
||||
|
||||
Reference in New Issue
Block a user