Skip to content

Commit

Permalink
refactor: rename command param-change into change-param (#3169)
Browse files Browse the repository at this point in the history
* change name

* rename file
  • Loading branch information
lumtis authored Nov 25, 2022
1 parent 1295dec commit de076b9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion ignite/cmd/network_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Each request has a status:
NewNetworkRequestAddAccount(),
NewNetworkRequestRemoveAccount(),
NewNetworkRequestRemoveValidator(),
NewNetworkRequestParamChange(),
NewNetworkRequestChangeParam(),
)

return c
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ import (
"github.com/ignite/cli/ignite/services/network"
)

// NewNetworkRequestParamChange creates a new command to send param change request
func NewNetworkRequestParamChange() *cobra.Command {
// NewNetworkRequestChangeParam creates a new command to send param change request
func NewNetworkRequestChangeParam() *cobra.Command {
c := &cobra.Command{
Use: "param-change [launch-id] [module-name] [param-name] [value (json, string, number)]",
Short: "Send request to change param",
RunE: networkRequestParamChangeHandler,
Use: "change-param [launch-id] [module-name] [param-name] [value (json, string, number)]",
Short: "Send request to change a module param",
RunE: networkRequestChangeParamHandler,
Args: cobra.ExactArgs(4),
}

Expand All @@ -24,7 +24,7 @@ func NewNetworkRequestParamChange() *cobra.Command {
return c
}

func networkRequestParamChangeHandler(cmd *cobra.Command, args []string) error {
func networkRequestChangeParamHandler(cmd *cobra.Command, args []string) error {
session := cliui.New(cliui.StartSpinner())
defer session.End()

Expand Down

0 comments on commit de076b9

Please sign in to comment.