package main import ( "log" "os" "github.com/kha7iq/pingme/cmd" "github.com/urfave/cli/v2" ) // Version variable is used for semVer var Version string func main() { app := cli.NewApp() app.Name = "PingMe" app.Version = Version app.Usage = "Send message to multiple platforms" app.Description = `PingMe is a CLI tool which provides the ability to send messages or alerts to multiple messaging platforms and also email, everything is configurable via environment variables and command line switches.Currently supported platforms include Slack, Telegram, RocketChat, Discord, Microsoft Teams and email address.` // app.Commands contains the subcommands as functions which return []*cli.Command. app.Commands = []*cli.Command{ cmd.SendToTelegram(), cmd.SendToRocketChat(), cmd.SendToSlack(), cmd.SendToDiscord(), cmd.SendToTeams(), cmd.SendToEmail(), } err := app.Run(os.Args) if err != nil { log.Fatal(err) } }