mirror of
https://github.com/ipfs/kubo.git
synced 2025-06-26 23:53:19 +08:00
key cmd: fix force option handling in rename
License: MIT Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
This commit is contained in:
@ -171,7 +171,7 @@ var keyRenameCmd = &cmds.Command{
|
|||||||
|
|
||||||
name := req.Arguments[0]
|
name := req.Arguments[0]
|
||||||
newName := req.Arguments[1]
|
newName := req.Arguments[1]
|
||||||
force := req.Options["force"].(bool)
|
force, _ := req.Options["force"].(bool)
|
||||||
|
|
||||||
key, overwritten, err := api.Key().Rename(req.Context, name, newName, options.Key.Force(force))
|
key, overwritten, err := api.Key().Rename(req.Context, name, newName, options.Key.Force(force))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Reference in New Issue
Block a user