OSDN Git Service

rename create-account-address command (#432)
authorYongfeng LI <wliyongfeng@gmail.com>
Fri, 16 Mar 2018 06:19:17 +0000 (14:19 +0800)
committerGitHub <noreply@github.com>
Fri, 16 Mar 2018 06:19:17 +0000 (14:19 +0800)
cmd/bytomcli/commands/account.go
cmd/bytomcli/commands/bytomcli.go

index e07a07b..b8e1933 100755 (executable)
@@ -138,9 +138,9 @@ var updateAccountTagsCmd = &cobra.Command{
        },
 }
 
-var createAccountAddressCmd = &cobra.Command{
-       Use:   "create-account-address <accountID | alias>",
-       Short: "Create an account address",
+var createAccountReceiverCmd = &cobra.Command{
+       Use:   "create-account-receiver <accountID | alias>",
+       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)
                }
index 5a30d73..475c5d4 100644 (file)
@@ -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)