@@ -65,26 +65,6 @@ func NewRootCmd() (*cobra.Command, params.EncodingConfig) {
65
65
return rootCmd , encodingConfig
66
66
}
67
67
68
- // Execute executes the root command.
69
- func Execute (rootCmd * cobra.Command ) error {
70
- // Create and set a client.Context on the command's Context. During the pre-run
71
- // of the root command, a default initialized client.Context is provided to
72
- // seed child command execution with values such as AccountRetriver, Keyring,
73
- // and a Tendermint RPC. This requires the use of a pointer reference when
74
- // getting and setting the client.Context. Ideally, we utilize
75
- // https://github.com/spf13/cobra/pull/1118.
76
- srvCtx := server .NewDefaultContext ()
77
- ctx := rootCmd .Context ()
78
- ctx = context .WithValue (ctx , client .ClientContextKey , & client.Context {})
79
- ctx = context .WithValue (ctx , server .ServerContextKey , srvCtx )
80
-
81
- rootCmd .PersistentFlags ().String (flags .FlagLogLevel , zerolog .InfoLevel .String (), "The logging level (trace|debug|info|warn|error|fatal|panic)" )
82
- rootCmd .PersistentFlags ().String (flags .FlagLogFormat , tmcfg .LogFormatJSON , "The logging format (json|plain)" )
83
-
84
- executor := tmcli .PrepareBaseCmd (rootCmd , "" , simapp .DefaultNodeHome )
85
- return executor .ExecuteContext (ctx )
86
- }
87
-
88
68
func initRootCmd (rootCmd * cobra.Command , encodingConfig params.EncodingConfig ) {
89
69
authclient .Codec = encodingConfig .Marshaler
90
70
0 commit comments