Revert soft-delete cmd

Revert `soft-delete` cmd back to `delete`. Keeps the updated usage
This commit is contained in:
Rjan 2022-04-12 08:31:54 +02:00
parent 96ee416b96
commit c3f2f12cb2
3 changed files with 6 additions and 6 deletions

View File

@ -499,7 +499,7 @@ var walletVerify = &cli.Command{
} }
var walletDelete = &cli.Command{ var walletDelete = &cli.Command{
Name: "soft-delete", Name: "delete",
Usage: "Soft delete an address from the wallet - hard deletion needed for permanent removal", Usage: "Soft delete an address from the wallet - hard deletion needed for permanent removal",
ArgsUsage: "<address> ", ArgsUsage: "<address> ",
Action: func(cctx *cli.Context) error { Action: func(cctx *cli.Context) error {

View File

@ -265,7 +265,7 @@ func TestWalletDelete(t *testing.T) {
mockApi.EXPECT().WalletDelete(ctx, addr).Return(nil) mockApi.EXPECT().WalletDelete(ctx, addr).Return(nil)
//stm: @CLI_WALLET_DELETE_001 //stm: @CLI_WALLET_DELETE_001
err = app.Run([]string{"wallet", "soft-delete", "f01234"}) err = app.Run([]string{"wallet", "delete", "f01234"})
assert.NoError(t, err) assert.NoError(t, err)
} }

View File

@ -212,7 +212,7 @@ COMMANDS:
set-default Set default wallet address set-default Set default wallet address
sign sign a message sign sign a message
verify verify the signature of a message verify verify the signature of a message
soft-delete Soft delete an address from the wallet - hard deletion needed for permanent removal delete Soft delete an address from the wallet - hard deletion needed for permanent removal
market Interact with market balances market Interact with market balances
help, h Shows a list of commands or help for one command help, h Shows a list of commands or help for one command
@ -343,13 +343,13 @@ OPTIONS:
``` ```
### lotus wallet soft-delete ### lotus wallet delete
``` ```
NAME: NAME:
lotus wallet soft-delete - Soft delete an address from the wallet - hard deletion needed for permanent removal lotus wallet delete - Soft delete an address from the wallet - hard deletion needed for permanent removal
USAGE: USAGE:
lotus wallet soft-delete [command options] <address> lotus wallet delete [command options] <address>
OPTIONS: OPTIONS:
--help, -h show help (default: false) --help, -h show help (default: false)