Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
julienrbrt committed Oct 18, 2023
1 parent e376398 commit 22463c1
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion ignite/templates/message/message.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package <%= moduleName %>

import (
autocliv1 "cosmossdk.io/api/cosmos/autocli/v1"

modulev1 "<%= modulePath %>/api/<%= appName %>/<%= moduleName %>"
)

Expand Down
2 changes: 1 addition & 1 deletion ignite/templates/query/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),

Check warning on line 175 in ignite/templates/query/query.go

View check run for this annotation

Codecov / codecov/patch

ignite/templates/query/query.go#L173-L175

Added lines #L173 - L175 were not covered by tests
)
Expand Down
4 changes: 2 additions & 2 deletions ignite/templates/typed/list/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"}},
},
Expand Down
6 changes: 3 additions & 3 deletions ignite/templates/typed/map/map.go
Original file line number Diff line number Diff line change
Expand Up @@ -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},
},
Expand Down Expand Up @@ -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},
},
{
Expand Down

0 comments on commit 22463c1

Please sign in to comment.