diff --git a/ignite/templates/message/message.go b/ignite/templates/message/message.go index 8206cd0c04..8ef8f33d2f 100644 --- a/ignite/templates/message/message.go +++ b/ignite/templates/message/message.go @@ -210,7 +210,7 @@ func clientCliTxModify(replacer placeholder.Replacer, opts *Options) genny.RunFn template, typed.Placeholder2, opts.MsgName.UpperCamel, - strings.TrimSpace(fmt.Sprintf("%s %s", opts.MsgName.Kebab, opts.Fields.String())), + strings.TrimSpace(fmt.Sprintf("%s%s", opts.MsgName.Kebab, opts.Fields.String())), opts.MsgName.Original, strings.TrimSpace(positionalArgs), ) diff --git a/ignite/templates/module/create/files/base/x/{{moduleName}}/module/autocli.go.plush b/ignite/templates/module/create/files/base/x/{{moduleName}}/module/autocli.go.plush index f954b68db3..290f6cb17a 100644 --- a/ignite/templates/module/create/files/base/x/{{moduleName}}/module/autocli.go.plush +++ b/ignite/templates/module/create/files/base/x/{{moduleName}}/module/autocli.go.plush @@ -2,6 +2,7 @@ package <%= moduleName %> import ( autocliv1 "cosmossdk.io/api/cosmos/autocli/v1" + modulev1 "<%= modulePath %>/api/<%= appName %>/<%= moduleName %>" ) diff --git a/ignite/templates/query/query.go b/ignite/templates/query/query.go index 1a6ef626eb..0e7a951b2c 100644 --- a/ignite/templates/query/query.go +++ b/ignite/templates/query/query.go @@ -170,7 +170,7 @@ func cliQueryModify(replacer placeholder.Replacer, opts *Options) genny.RunFn { template, Placeholder, opts.QueryName.UpperCamel, - strings.TrimSpace(fmt.Sprintf("%s %s", opts.QueryName.Kebab, opts.ReqFields.String())), + strings.TrimSpace(fmt.Sprintf("%s%s", opts.QueryName.Kebab, opts.ReqFields.String())), opts.Description, strings.TrimSpace(positionalArgs), ) diff --git a/ignite/templates/typed/list/list.go b/ignite/templates/typed/list/list.go index e17fa03263..2149d3b322 100644 --- a/ignite/templates/typed/list/list.go +++ b/ignite/templates/typed/list/list.go @@ -367,12 +367,12 @@ func clientCliQueryModify(replacer placeholder.Replacer, opts *typed.Options) ge template := `{ RpcMethod: "%[2]vAll", Use: "list-%[3]v", - Short: "list all %[4]v", + Short: "List all %[4]v", }, { RpcMethod: "%[2]v", Use: "show-%[3]v [id]", - Short: "shows a %[4]v by id", + Short: "Shows a %[4]v by id", PositionalArgs: []*autocliv1.PositionalArgDescriptor{{ProtoField: "id"}}, }, diff --git a/ignite/templates/typed/map/map.go b/ignite/templates/typed/map/map.go index a19cadb8cb..4219a55801 100644 --- a/ignite/templates/typed/map/map.go +++ b/ignite/templates/typed/map/map.go @@ -250,12 +250,12 @@ func clientCliQueryModify(replacer placeholder.Replacer, opts *typed.Options) ge template := `{ RpcMethod: "%[2]vAll", Use: "list-%[3]v", - Short: "list all %[4]v", + Short: "List all %[4]v", }, { RpcMethod: "%[2]v", Use: "show-%[3]v [id]", - Short: "shows a %[4]v", + Short: "Shows a %[4]v", PositionalArgs: []*autocliv1.PositionalArgDescriptor{%s}, }, @@ -621,7 +621,7 @@ func clientCliTxModify(replacer placeholder.Replacer, opts *typed.Options) genny template := `{ RpcMethod: "Create%[2]v", Use: "create-%[3]v", - Short: "Create %[4]v", + Short: "Create a new %[4]v", PositionalArgs: []*autocliv1.PositionalArgDescriptor{%[5]s}, }, {