Files
chain33-dtalk/service/offline-push/tools/mock/cmd/main.go
2022-03-17 15:59:24 +08:00

32 lines
501 B
Go

package main
import (
"fmt"
"os"
"github.com/spf13/cobra"
"gitlab.33.cn/chat/dtalk/service/offline-push/tools/mock/cmd/push"
)
var rootCmd = &cobra.Command{
Use: "tools",
Short: "offline push mock tools",
Example: " tools auth -d <data>\n",
}
func init() {
rootCmd.AddCommand(push.SinglePushCmd)
}
// Execute executes the root command and its subcommands.
func Execute() {
if err := rootCmd.Execute(); err != nil {
fmt.Println(err)
os.Exit(1)
}
}
func main() {
Execute()
}