Skip to content

Commit

Permalink
docs(client/debug): correct debug raw-bytes command example (#21671)
Browse files Browse the repository at this point in the history
(cherry picked from commit 0fc06f1)

# Conflicts:
#	client/debug/main.go
  • Loading branch information
lilasxie authored and mergify[bot] committed Sep 12, 2024
1 parent 63a535e commit 99392a9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions client/debug/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,7 @@ $ %s debug addr cosmos1e0jnq2sun3dzjh8p2xq95kk0expwmd7shwjpfg

func RawBytesCmd() *cobra.Command {
return &cobra.Command{
<<<<<<< HEAD

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

View workflow job for this annotation

GitHub Actions / dependency-review

expected operand, found '<<'

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

View workflow job for this annotation

GitHub Actions / tests (00)

syntax error: unexpected <<, expected expression
Use: "raw-bytes [raw-bytes]",
Short: "Convert raw bytes output (eg. [10 21 13 255]) to hex",
Long: fmt.Sprintf(`Convert raw-bytes to hex.
Expand All @@ -306,6 +307,13 @@ Example:
$ %s debug raw-bytes [72 101 108 108 111 44 32 112 108 97 121 103 114 111 117 110 100]
`, version.AppName),

Check failure on line 308 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 }
Args: cobra.ExactArgs(1),
=======
Use: "raw-bytes <raw-bytes>",
Short: "Convert raw bytes output (eg. [10 21 13 255]) to hex",
Long: "Convert raw-bytes to hex.",
Example: fmt.Sprintf("%s debug raw-bytes '[72 101 108 108 111 44 32 112 108 97 121 103 114 111 117 110 100]'", version.AppName),
Args: cobra.ExactArgs(1),
>>>>>>> 0fc06f141 (docs(client/debug): correct `debug raw-bytes` command example (#21671))

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

View workflow job for this annotation

GitHub Actions / dependency-review

illegal character U+0023 '#'

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

View workflow job for this annotation

GitHub Actions / tests (00)

invalid character U+0023 '#'
RunE: func(_ *cobra.Command, args []string) error {
stringBytes := args[0]
stringBytes = strings.Trim(stringBytes, "[")
Expand Down

0 comments on commit 99392a9

Please sign in to comment.