You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add user confirmation for keys rm command (#2452)
### What
Add a confirmation prompt when deleting keys. The confirmation prompt
can be bypassed with a `--force` flag. Confirmation also works by piping
`y` into `stdin`.
```bash
$ stellar keys rm rmtest
⚠️ Are you sure you want to remove the key 'rmtest' at '/my-config-path/.config/stellar/identity/rmtest.toml'? This action cannot be undone. (y/N)
y
ℹ️ Removing the key's cli config file
```
```bash
$ stellar keys rm rmtest --force
ℹ️ Removing the key's cli config file
```
```bash
$ stellar keys rm rmtest
⚠️ Are you sure you want to remove the key 'rmtest'? This action cannot be undone. (y/N)
N
❌ error: removal cancelled by user
```
### Why
Closes: #2420
### Known limitations
None
---------
Co-authored-by: Nando Vieira <me@fnando.com>
0 commit comments