Skip to content

Commit

Permalink
Revert soft-delete cmd
Browse files Browse the repository at this point in the history
Revert `soft-delete` cmd back to `delete`. Keeps the updated usage
  • Loading branch information
rjan90 committed Apr 12, 2022
1 parent 96ee416 commit c3f2f12
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion cli/wallet.go
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ var walletVerify = &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",
ArgsUsage: "<address> ",
Action: func(cctx *cli.Context) error {
Expand Down
2 changes: 1 addition & 1 deletion cli/wallet_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ func TestWalletDelete(t *testing.T) {
mockApi.EXPECT().WalletDelete(ctx, addr).Return(nil)

//stm: @CLI_WALLET_DELETE_001
err = app.Run([]string{"wallet", "soft-delete", "f01234"})
err = app.Run([]string{"wallet", "delete", "f01234"})
assert.NoError(t, err)
}

Expand Down
8 changes: 4 additions & 4 deletions documentation/en/cli-lotus.md
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ COMMANDS:
set-default Set default wallet address
sign sign 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
help, h Shows a list of commands or help for one command
Expand Down Expand Up @@ -343,13 +343,13 @@ OPTIONS:
```

### lotus wallet soft-delete
### lotus wallet delete
```
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:
lotus wallet soft-delete [command options] <address>
lotus wallet delete [command options] <address>
OPTIONS:
--help, -h show help (default: false)
Expand Down

0 comments on commit c3f2f12

Please sign in to comment.