Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add: improve long message
  • Loading branch information
JulianToledano committed Aug 17, 2023
commit e5b1d2e135250d04b3f01436a4f7757b794cc2aa
2 changes: 1 addition & 1 deletion client/keys/import.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func ImportKeyHexCommand() *cobra.Command {
return &cobra.Command{
Use: "import-hex <name> <hex> <key-type>",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe it is a better UX if the 3rd argument is optional and have a default algo string?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, completely agree!! nice catch!

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

key-type is now a flag with secp256k1 as default value

Short: "Import private keys into the local keybase",
Long: "Import hex encoded private key into the local keybase.",
Long: "Import hex encoded private key into the local keybase.\nSupported key-types can be obtained with:\n<appd> list-key-types",
Args: cobra.ExactArgs(3),
RunE: func(cmd *cobra.Command, args []string) error {
clientCtx, err := client.GetClientQueryContext(cmd)
Expand Down