1
0
Fork 0
telegram-group2mastodon/cmd/root.go
Daniele Tricoli 32d5a2285d
All checks were successful
continuous-integration/drone Build is passing
Move the main code in a run sub-command
2022-02-28 23:22:49 +01:00

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() {
}