cli: rename wallet commands

Creating accounts is done frequently so it makes
sense to have lesser name for this command.
`create` -> `init`
`create-account` -> `create`
This commit is contained in:
Evgenii Stratonikov 2020-03-16 15:08:38 +03:00
parent 03d0a6519a
commit 2d82eb89f8

View file

@ -90,7 +90,7 @@ func NewCommands() []cli.Command {
}, },
}, },
{ {
Name: "create", Name: "init",
Usage: "create a new wallet", Usage: "create a new wallet",
Action: createWallet, Action: createWallet,
Flags: []cli.Flag{ Flags: []cli.Flag{
@ -102,7 +102,7 @@ func NewCommands() []cli.Command {
}, },
}, },
{ {
Name: "create-account", Name: "create",
Usage: "add an account to the existing wallet", Usage: "add an account to the existing wallet",
Action: addAccount, Action: addAccount,
Flags: []cli.Flag{ Flags: []cli.Flag{