2023-02-23 18:20:45 +08:00
|
|
|
package main
|
|
|
|
|
|
|
|
|
|
import (
|
2023-03-16 10:46:06 +08:00
|
|
|
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/cmd"
|
2023-02-23 18:20:45 +08:00
|
|
|
)
|
|
|
|
|
|
2023-03-07 12:12:16 +08:00
|
|
|
func main() {
|
2023-03-08 11:45:54 +08:00
|
|
|
msgUtilsCmd := cmd.NewMsgUtilsCmd()
|
|
|
|
|
msgUtilsCmd.AddSuperGroupIDFlag()
|
|
|
|
|
msgUtilsCmd.AddUserIDFlag()
|
|
|
|
|
seqCmd := cmd.NewSeqCmd()
|
|
|
|
|
msgCmd := cmd.NewMsgCmd()
|
|
|
|
|
cmd.GetCmd.AddCommand(seqCmd.Command, msgCmd.Command)
|
|
|
|
|
cmd.FixCmd.AddCommand(seqCmd.Command)
|
|
|
|
|
cmd.GetCmd.AddCommand(msgCmd.Command)
|
|
|
|
|
msgUtilsCmd.AddCommand(cmd.GetCmd, cmd.FixCmd, cmd.ClearCmd)
|
|
|
|
|
if err := msgUtilsCmd.Execute(); err != nil {
|
2023-03-13 15:39:47 +08:00
|
|
|
panic(err.Error())
|
2023-03-07 12:12:16 +08:00
|
|
|
}
|
|
|
|
|
}
|