fix: added comments in code

pull/4/head
kha7iq 4 years ago
parent 07f2ba7350
commit 06cabf4e57

@ -11,6 +11,7 @@ import (
"github.com/urfave/cli/v2"
)
// discordPingMe struct holds data parsed via flags for discord service.
type discordPingMe struct {
Token string
Message string

@ -11,6 +11,7 @@ import (
"github.com/urfave/cli/v2"
)
// email struct holds data parsed via flags for email service.
type email struct {
SenderAddress string
Password string

@ -11,6 +11,7 @@ import (
"github.com/urfave/cli/v2"
)
// msTeams struct holds data parsed via flags for microsoft teams service.
type msTeams struct {
Webhook string
Message string

@ -22,6 +22,7 @@ type rocketChat struct {
}
var (
// EmptyChannel variable holds default error message if no channel is provided.
EmptyChannel = "channel name or id can not be empty"
TimeValue = "⏰ " + time.Now().String()
)

@ -11,6 +11,7 @@ import (
"github.com/urfave/cli/v2"
)
// slackPingMe struct holds data parsed via flags for slack service.
type slackPingMe struct {
Token string
Message string

@ -12,6 +12,7 @@ import (
"github.com/urfave/cli/v2"
)
// teleGram struct holds data parsed via flags for telegram service.
type teleGram struct {
Token string
Message string

@ -9,6 +9,7 @@ import (
"github.com/urfave/cli/v2"
)
// Version variable is used for semVer
var Version string
func main() {
@ -20,7 +21,7 @@ func main() {
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(),

Loading…
Cancel
Save