1
0
Fork 0
telegram-group2mastodon/cmd/root.go

24 lines
359 B
Go

package cmd
import (
"os"
"github.com/spf13/cobra"
)
// rootCmd represents the base command when called without any subcommands
var rootCmd = &cobra.Command{
Use: "tg2mastodon",
Short: "Telegram bot to post messages from a Telegram group to Mastodon",
}
func Execute() {
err := rootCmd.Execute()
if err != nil {
os.Exit(1)
}
}
func init() {
}