Skip to content

Commit

Permalink
docs(client/debug): correct and improve debug pubkey-raw command ex…
Browse files Browse the repository at this point in the history
…ample (#21594)

(cherry picked from commit b92c173)

# Conflicts:
#	client/debug/main.go
  • Loading branch information
lilasxie authored and mergify[bot] committed Sep 9, 2024
1 parent dad56e1 commit 64726d3
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions client/debug/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,11 +179,20 @@ func PubkeyRawCmd() *cobra.Command {
cmd := &cobra.Command{
Use: "pubkey-raw [pubkey] -t [{ed25519, secp256k1}]",
Short: "Decode a ED25519 or secp256k1 pubkey from hex, base64, or bech32",
<<<<<<< HEAD

Check failure on line 182 in client/debug/main.go

View workflow job for this annotation

GitHub Actions / dependency-review

expected operand, found '<<'

Check failure on line 182 in client/debug/main.go

View workflow job for this annotation

GitHub Actions / tests (00)

syntax error: unexpected <<, expected expression
Long: fmt.Sprintf(`Decode a pubkey from hex, base64, or bech32.
Example:
$ %s debug pubkey-raw TWFuIGlzIGRpc3Rpbmd1aXNoZWQsIG5vdCBvbmx5IGJ5IGhpcyByZWFzb24sIGJ1dCBieSB0aGlz
$ %s debug pubkey-raw cosmos1e0jnq2sun3dzjh8p2xq95kk0expwmd7shwjpfg
`, version.AppName, version.AppName),

Check failure on line 187 in client/debug/main.go

View workflow job for this annotation

GitHub Actions / tests (00)

syntax error: unexpected ) in composite literal; possibly missing comma or }
=======
Long: "Decode a pubkey from hex, base64, or bech32.",
Example: fmt.Sprintf(`
%s debug pubkey-raw 8FCA9D6D1F80947FD5E9A05309259746F5F72541121766D5F921339DD061174A
%s debug pubkey-raw j8qdbR+AlH/V6aBTCSWXRvX3JUESF2bV+SEzndBhF0o=
%s debug pubkey-raw cosmospub1zcjduepq3l9f6mglsz28l40f5pfsjfvhgm6lwf2pzgtkd40eyyeem5rpza9q47axrz
`, version.AppName, version.AppName, version.AppName),
>>>>>>> b92c173ca (docs(client/debug): correct and improve `debug pubkey-raw` command example (#21594))

Check failure on line 195 in client/debug/main.go

View workflow job for this annotation

GitHub Actions / dependency-review

illegal character U+0023 '#'

Check failure on line 195 in client/debug/main.go

View workflow job for this annotation

GitHub Actions / tests (00)

invalid character U+0023 '#'
Args: cobra.ExactArgs(1),
RunE: func(cmd *cobra.Command, args []string) error {

Check failure on line 197 in client/debug/main.go

View workflow job for this annotation

GitHub Actions / tests (00)

syntax error: unexpected :, expected := or = or comma
clientCtx := client.GetClientContextFromCmd(cmd)
Expand Down

0 comments on commit 64726d3

Please sign in to comment.