From: Yongfeng LI Date: Fri, 16 Mar 2018 06:19:17 +0000 (+0800) Subject: rename create-account-address command (#432) X-Git-Tag: v1.0.5-alpha~467 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=1bd1b1d6f9a56c27d8eef7d041b4e1ddb05f855e;p=bytom%2Fbytom-spv.git rename create-account-address command (#432) --- diff --git a/cmd/bytomcli/commands/account.go b/cmd/bytomcli/commands/account.go index e07a07ba..b8e19335 100755 --- a/cmd/bytomcli/commands/account.go +++ b/cmd/bytomcli/commands/account.go @@ -138,9 +138,9 @@ var updateAccountTagsCmd = &cobra.Command{ }, } -var createAccountAddressCmd = &cobra.Command{ - Use: "create-account-address ", - Short: "Create an account address", +var createAccountReceiverCmd = &cobra.Command{ + Use: "create-account-receiver ", + Short: "Create an account receiver", Args: cobra.ExactArgs(1), Run: func(cmd *cobra.Command, args []string) { var ins = struct { @@ -148,7 +148,7 @@ var createAccountAddressCmd = &cobra.Command{ ExpiresAt time.Time `json:"expires_at,omitempty"` }{AccountInfo: args[0]} - data, exitCode := util.ClientCall("/create-account-address", &ins) + data, exitCode := util.ClientCall("/create-account-receiver", &ins) if exitCode != util.Success { os.Exit(exitCode) } diff --git a/cmd/bytomcli/commands/bytomcli.go b/cmd/bytomcli/commands/bytomcli.go index 5a30d734..475c5d40 100644 --- a/cmd/bytomcli/commands/bytomcli.go +++ b/cmd/bytomcli/commands/bytomcli.go @@ -82,7 +82,7 @@ func AddCommands() { BytomcliCmd.AddCommand(deleteAccountCmd) BytomcliCmd.AddCommand(listAccountsCmd) BytomcliCmd.AddCommand(updateAccountTagsCmd) - BytomcliCmd.AddCommand(createAccountAddressCmd) + BytomcliCmd.AddCommand(createAccountReceiverCmd) BytomcliCmd.AddCommand(createAssetCmd) BytomcliCmd.AddCommand(listAssetsCmd)