|
|
|
@ -45,7 +45,7 @@ func NewGroupRpcCmd() *GroupRpcCmd {
|
|
|
|
|
}
|
|
|
|
|
ret.RootCmd = NewRootCmd(program.GetProcessName(), WithConfigMap(ret.configMap))
|
|
|
|
|
ret.ctx = context.WithValue(context.Background(), "version", config.Version)
|
|
|
|
|
ret.Command.PreRunE = func(cmd *cobra.Command, args []string) error {
|
|
|
|
|
ret.Command.RunE = func(cmd *cobra.Command, args []string) error {
|
|
|
|
|
return ret.preRunE()
|
|
|
|
|
}
|
|
|
|
|
return ret
|
|
|
|
|