bridge/debug: refactor
Move the debug command out of vaa.go in preparation for adding additional comments. Change-Id: Id387eace5d488952331f5d7f16c43b235676df24
This commit is contained in:
parent
a3ed2fbd72
commit
b04dd1cc2f
|
@ -0,0 +1,12 @@
|
||||||
|
package debug
|
||||||
|
|
||||||
|
import "github.com/spf13/cobra"
|
||||||
|
|
||||||
|
var DebugCmd = &cobra.Command{
|
||||||
|
Use: "debug",
|
||||||
|
Short: "Debugging utilities",
|
||||||
|
}
|
||||||
|
|
||||||
|
func init() {
|
||||||
|
DebugCmd.AddCommand(decodeVaaCmd)
|
||||||
|
}
|
|
@ -9,11 +9,6 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
)
|
)
|
||||||
|
|
||||||
var DebugCmd = &cobra.Command{
|
|
||||||
Use: "debug",
|
|
||||||
Short: "Debugging utilities",
|
|
||||||
}
|
|
||||||
|
|
||||||
var decodeVaaCmd = &cobra.Command{
|
var decodeVaaCmd = &cobra.Command{
|
||||||
Use: "decode-vaa [DATA]",
|
Use: "decode-vaa [DATA]",
|
||||||
Short: "Decode a hex-encoded VAA",
|
Short: "Decode a hex-encoded VAA",
|
||||||
|
@ -34,7 +29,3 @@ var decodeVaaCmd = &cobra.Command{
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
func init() {
|
|
||||||
DebugCmd.AddCommand(decodeVaaCmd)
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in New Issue