From 8f0c041de881f242c74851eeade6ab57c0d72580 Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Wed, 25 Sep 2019 18:46:25 +0800 Subject: [PATCH] support github action Signed-off-by: Bo-Yi Wu --- main.go | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/main.go b/main.go index 7593283..5614d41 100644 --- a/main.go +++ b/main.go @@ -24,78 +24,78 @@ func main() { cli.StringFlag{ Name: "token", Usage: "telegram token", - EnvVar: "PLUGIN_TOKEN,TELEGRAM_TOKEN", + EnvVar: "PLUGIN_TOKEN,TELEGRAM_TOKEN,INPUT_TOKEN", }, cli.StringSliceFlag{ Name: "to", Usage: "telegram user", - EnvVar: "PLUGIN_TO,TELEGRAM_TO", + EnvVar: "PLUGIN_TO,TELEGRAM_TO,INPUT_TOKEN", }, cli.StringSliceFlag{ Name: "message", Usage: "send telegram message", - EnvVar: "PLUGIN_MESSAGE,TELEGRAM_MESSAGE", + EnvVar: "PLUGIN_MESSAGE,TELEGRAM_MESSAGE,INPUT_MESSAGE", }, cli.StringSliceFlag{ Name: "photo", Usage: "send photo message", - EnvVar: "PLUGIN_PHOTO,PHOTO", + EnvVar: "PLUGIN_PHOTO,PHOTO,INPUT_PHOTO", }, cli.StringSliceFlag{ Name: "document", Usage: "send document message", - EnvVar: "PLUGIN_DOCUMENT,DOCUMENT", + EnvVar: "PLUGIN_DOCUMENT,DOCUMENT,INPUT_DOCUMENT", }, cli.StringSliceFlag{ Name: "sticker", Usage: "send sticker message", - EnvVar: "PLUGIN_STICKER,STICKER", + EnvVar: "PLUGIN_STICKER,STICKER,INPUT_STICKER", }, cli.StringSliceFlag{ Name: "audio", Usage: "send audio message", - EnvVar: "PLUGIN_AUDIO,AUDIO", + EnvVar: "PLUGIN_AUDIO,AUDIO,INPUT_AUDIO", }, cli.StringSliceFlag{ Name: "voice", Usage: "send voice message", - EnvVar: "PLUGIN_VOICE,VOICE", + EnvVar: "PLUGIN_VOICE,VOICE,INPUT_VOICE", }, cli.StringSliceFlag{ Name: "location", Usage: "send location message", - EnvVar: "PLUGIN_LOCATION,LOCATION", + EnvVar: "PLUGIN_LOCATION,LOCATION,INPUT_LOCATION", }, cli.StringSliceFlag{ Name: "venue", Usage: "send venue message", - EnvVar: "PLUGIN_VENUE,VENUE", + EnvVar: "PLUGIN_VENUE,VENUE,INPUT_VENUE", }, cli.StringSliceFlag{ Name: "video", Usage: "send video message", - EnvVar: "PLUGIN_VIDEO,VIDEO", + EnvVar: "PLUGIN_VIDEO,VIDEO,INPUT_VIDEO", }, cli.BoolFlag{ Name: "debug", Usage: "enable debug message", - EnvVar: "PLUGIN_DEBUG,DEBUG", + EnvVar: "PLUGIN_DEBUG,DEBUG,INPUT_DEBUG", }, cli.BoolFlag{ Name: "match.email", Usage: "send message when only match email", - EnvVar: "PLUGIN_ONLY_MATCH_EMAIL", + EnvVar: "PLUGIN_ONLY_MATCH_EMAIL,INPUT_ONLY_MATCH_EMAIL", }, cli.BoolTFlag{ Name: "webpage.preview", Usage: "toggle web-page preview", - EnvVar: "PLUGIN_WEBPAGE_PREVIEW", + EnvVar: "PLUGIN_WEBPAGE_PREVIEW,INPUT_WEBPAGE_PREVIEW", }, cli.StringFlag{ Name: "format", Value: "markdown", Usage: "telegram message format", - EnvVar: "PLUGIN_FORMAT,FORMAT", + EnvVar: "PLUGIN_FORMAT,FORMAT,INPUT_FORMAT", }, cli.StringFlag{ Name: "repo",