fix(cmd): fix "bitxhub key show" command with wrong path

fix "btxhub key show" command should return error but not bug
This commit is contained in:
Alexader 2020-10-28 20:08:51 +08:00
parent f99efe3884
commit 7e0e7f9f2e
1 changed files with 1 additions and 8 deletions

View File

@ -6,11 +6,10 @@ import (
"os"
"path/filepath"
"github.com/meshplus/bitxhub-kit/key"
"github.com/libp2p/go-libp2p-core/crypto"
"github.com/libp2p/go-libp2p-core/peer"
"github.com/meshplus/bitxhub-kit/crypto/asym/ecdsa"
"github.com/meshplus/bitxhub-kit/key"
"github.com/meshplus/bitxhub/internal/repo"
"github.com/meshplus/bitxhub/pkg/cert"
"github.com/urfave/cli"
@ -41,12 +40,6 @@ func keyCMD() cli.Command {
Name: "show",
Usage: "Show key from cert",
Action: showKey,
Flags: []cli.Flag{
cli.StringFlag{
Name: "path",
Usage: "Node Path",
},
},
},
{
Name: "pid",