Skip to content

Commit efd9a29

Browse files
committed
chore(cli): move key related cli to key namespace
1 parent e89f93e commit efd9a29

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

client/cmd/flags.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ func validateGenPrivKeyJSONFlags(cfg *genPrivKeyJSONConfig) error {
493493
return nil
494494
}
495495

496-
func validateEncryptPrivKeyFlags(cfg *baseConfig) error {
496+
func validateEncryptFlags(cfg *baseConfig) error {
497497
if cmtos.FileExists(cfg.EncPrivKeyFile()) {
498498
return errors.New("already encrypted private key exists")
499499
}

client/cmd/keys.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ func newKeyCmds() *cobra.Command {
3434
cmd.AddCommand(
3535
newKeyConvertCmd(),
3636
newKeyGenPrivKeyJSONCmd(),
37-
newKeyEncryptPrivKeyCmd(),
37+
newKeyEncryptCmd(),
3838
)
3939

4040
return cmd
@@ -81,7 +81,7 @@ func newKeyGenPrivKeyJSONCmd() *cobra.Command {
8181
return cmd
8282
}
8383

84-
func newKeyEncryptPrivKeyCmd() *cobra.Command {
84+
func newKeyEncryptCmd() *cobra.Command {
8585
var cfg baseConfig
8686

8787
cmd := &cobra.Command{
@@ -93,7 +93,7 @@ func newKeyEncryptPrivKeyCmd() *cobra.Command {
9393
},
9494
RunE: runValidatorCommand(
9595
func(_ *cobra.Command) error {
96-
return validateEncryptPrivKeyFlags(&cfg)
96+
return validateEncryptFlags(&cfg)
9797
},
9898
func(_ context.Context) error { return encryptPrivKey(cfg) },
9999
),

0 commit comments

Comments
 (0)