|
|
@ -15,7 +15,9 @@
|
|
|
|
package main
|
|
|
|
package main
|
|
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
import (
|
|
|
|
|
|
|
|
"fmt"
|
|
|
|
"github.com/openimsdk/open-im-server/v3/pkg/common/cmd"
|
|
|
|
"github.com/openimsdk/open-im-server/v3/pkg/common/cmd"
|
|
|
|
|
|
|
|
"os"
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
func main() {
|
|
|
|
func main() {
|
|
|
@ -54,6 +56,7 @@ func main() {
|
|
|
|
// openIM clear msg --clearAll
|
|
|
|
// openIM clear msg --clearAll
|
|
|
|
msgUtilsCmd.AddCommand(&getCmd.Command, &fixCmd.Command, &clearCmd.Command)
|
|
|
|
msgUtilsCmd.AddCommand(&getCmd.Command, &fixCmd.Command, &clearCmd.Command)
|
|
|
|
if err := msgUtilsCmd.Execute(); err != nil {
|
|
|
|
if err := msgUtilsCmd.Execute(); err != nil {
|
|
|
|
panic(err)
|
|
|
|
fmt.Fprintf(os.Stderr, "\n\nexit -1: \n%+v\n\n", err)
|
|
|
|
|
|
|
|
os.Exit(-1)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|