github.com/ari-anchor/sei-tendermint@v0.0.0-20230519144642-dc826b7b56bb/cmd/tendermint/commands/debug/debug.go (about) 1 package debug 2 3 import ( 4 "github.com/spf13/cobra" 5 6 "github.com/ari-anchor/sei-tendermint/libs/log" 7 ) 8 9 const ( 10 flagNodeRPCAddr = "rpc-laddr" 11 flagProfAddr = "pprof-laddr" 12 flagFrequency = "frequency" 13 ) 14 15 func GetDebugCommand(logger log.Logger) *cobra.Command { 16 cmd := &cobra.Command{ 17 Use: "debug", 18 Short: "A utility to kill or watch a Tendermint process while aggregating debugging data", 19 } 20 cmd.PersistentFlags().SortFlags = true 21 cmd.PersistentFlags().String( 22 flagNodeRPCAddr, 23 "tcp://localhost:26657", 24 "the Tendermint node's RPC address <host>:<port>)", 25 ) 26 27 cmd.AddCommand(getKillCmd(logger)) 28 cmd.AddCommand(getDumpCmd(logger)) 29 return cmd 30 31 }