From fe5f3a0ed58979a457d6963d6e24eb2835f2f268 Mon Sep 17 00:00:00 2001 From: Qu Xuan Date: Wed, 8 Apr 2020 20:06:39 +0800 Subject: [PATCH] fix: typo --- cmd/climc/shell/devtooltemplate.go | 2 +- cmd/climc/shell/itsm_histroic_process_instance.go | 2 +- cmd/climc/shell/loadbalancerclusters.go | 2 +- cmd/climc/shell/parameters.go | 2 +- cmd/climc/shell/routetables.go | 2 +- cmd/climc/shell/secgrouprules.go | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/cmd/climc/shell/devtooltemplate.go b/cmd/climc/shell/devtooltemplate.go index 615f3d6889..2c49ac6328 100644 --- a/cmd/climc/shell/devtooltemplate.go +++ b/cmd/climc/shell/devtooltemplate.go @@ -107,7 +107,7 @@ func init() { R( &options.DevtoolTemplateBindingOptions{}, "devtooltemplate-unbind", - "Binding devtool template to a host/vm", + "UnBinding devtool template to a host/vm", func(s *mcclient.ClientSession, opts *options.DevtoolTemplateBindingOptions) error { params := jsonutils.NewDict() params.Set("server_id", jsonutils.NewString(opts.ServerID)) diff --git a/cmd/climc/shell/itsm_histroic_process_instance.go b/cmd/climc/shell/itsm_histroic_process_instance.go index c1b74438a5..440fc72be7 100644 --- a/cmd/climc/shell/itsm_histroic_process_instance.go +++ b/cmd/climc/shell/itsm_histroic_process_instance.go @@ -68,7 +68,7 @@ func init() { type HistoricProcessInstanceStaticticsOptions struct { ID string `help:"ID of user"` } - R(&HistoricProcessInstanceStaticticsOptions{}, "historic-process-instance-statistics", "Delete all contacts for the user", func(s *mcclient.ClientSession, args *HistoricProcessInstanceStaticticsOptions) error { + R(&HistoricProcessInstanceStaticticsOptions{}, "historic-process-instance-statistics", "Show statistics for historic process instance", func(s *mcclient.ClientSession, args *HistoricProcessInstanceStaticticsOptions) error { params := jsonutils.NewDict() params.Add(jsonutils.NewString(args.ID), "user_id") diff --git a/cmd/climc/shell/loadbalancerclusters.go b/cmd/climc/shell/loadbalancerclusters.go index 92ad782440..c116cceecd 100644 --- a/cmd/climc/shell/loadbalancerclusters.go +++ b/cmd/climc/shell/loadbalancerclusters.go @@ -65,7 +65,7 @@ func init() { printList(result, modules.LoadbalancerClusters.GetColumns(s)) return nil }) - R(&options.LoadbalancerClusterDeleteOptions{}, "lbcluster-delete", "Show lbcluster", func(s *mcclient.ClientSession, opts *options.LoadbalancerClusterDeleteOptions) error { + R(&options.LoadbalancerClusterDeleteOptions{}, "lbcluster-delete", "Delete lbcluster", func(s *mcclient.ClientSession, opts *options.LoadbalancerClusterDeleteOptions) error { lbagent, err := modules.LoadbalancerClusters.Delete(s, opts.ID, nil) if err != nil { return err diff --git a/cmd/climc/shell/parameters.go b/cmd/climc/shell/parameters.go index 384195cb16..7542330bb7 100644 --- a/cmd/climc/shell/parameters.go +++ b/cmd/climc/shell/parameters.go @@ -173,7 +173,7 @@ func init() { NAME string `help:"The name of parameter"` } - R(&ParametersDeleteOptions{}, "parameter-delete", "delete notice", func(s *mcclient.ClientSession, args *ParametersDeleteOptions) error { + R(&ParametersDeleteOptions{}, "parameter-delete", "delete parameter", func(s *mcclient.ClientSession, args *ParametersDeleteOptions) error { params := jsonutils.NewDict() var parameter jsonutils.JSONObject diff --git a/cmd/climc/shell/routetables.go b/cmd/climc/shell/routetables.go index 19940b5031..962c6c830e 100644 --- a/cmd/climc/shell/routetables.go +++ b/cmd/climc/shell/routetables.go @@ -121,7 +121,7 @@ func init() { printObjectRecursive(routetable) return nil }) - R(&options.RouteTableDeleteOptions{}, "routetable-delete", "Show routetable", func(s *mcclient.ClientSession, opts *options.RouteTableDeleteOptions) error { + R(&options.RouteTableDeleteOptions{}, "routetable-delete", "Delete routetable", func(s *mcclient.ClientSession, opts *options.RouteTableDeleteOptions) error { routetable, err := modules.RouteTables.Delete(s, opts.ID, nil) if err != nil { return err diff --git a/cmd/climc/shell/secgrouprules.go b/cmd/climc/shell/secgrouprules.go index 28f046aa20..b326bd4d23 100644 --- a/cmd/climc/shell/secgrouprules.go +++ b/cmd/climc/shell/secgrouprules.go @@ -73,7 +73,7 @@ func init() { return nil }) - R(&SecGroupRuleDetailOptions{}, "secgroup-rule-delete", "Delete a disk", func(s *mcclient.ClientSession, args *SecGroupRuleDetailOptions) error { + R(&SecGroupRuleDetailOptions{}, "secgroup-rule-delete", "Delete a secgroup rule", func(s *mcclient.ClientSession, args *SecGroupRuleDetailOptions) error { if rule, e := modules.SecGroupRules.Delete(s, args.ID, nil); e != nil { return e } else {