support github action
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
parent
e6bc04f39c
commit
8f0c041de8
30
main.go
30
main.go
@ -24,78 +24,78 @@ func main() {
|
|||||||
cli.StringFlag{
|
cli.StringFlag{
|
||||||
Name: "token",
|
Name: "token",
|
||||||
Usage: "telegram token",
|
Usage: "telegram token",
|
||||||
EnvVar: "PLUGIN_TOKEN,TELEGRAM_TOKEN",
|
EnvVar: "PLUGIN_TOKEN,TELEGRAM_TOKEN,INPUT_TOKEN",
|
||||||
},
|
},
|
||||||
cli.StringSliceFlag{
|
cli.StringSliceFlag{
|
||||||
Name: "to",
|
Name: "to",
|
||||||
Usage: "telegram user",
|
Usage: "telegram user",
|
||||||
EnvVar: "PLUGIN_TO,TELEGRAM_TO",
|
EnvVar: "PLUGIN_TO,TELEGRAM_TO,INPUT_TOKEN",
|
||||||
},
|
},
|
||||||
cli.StringSliceFlag{
|
cli.StringSliceFlag{
|
||||||
Name: "message",
|
Name: "message",
|
||||||
Usage: "send telegram message",
|
Usage: "send telegram message",
|
||||||
EnvVar: "PLUGIN_MESSAGE,TELEGRAM_MESSAGE",
|
EnvVar: "PLUGIN_MESSAGE,TELEGRAM_MESSAGE,INPUT_MESSAGE",
|
||||||
},
|
},
|
||||||
cli.StringSliceFlag{
|
cli.StringSliceFlag{
|
||||||
Name: "photo",
|
Name: "photo",
|
||||||
Usage: "send photo message",
|
Usage: "send photo message",
|
||||||
EnvVar: "PLUGIN_PHOTO,PHOTO",
|
EnvVar: "PLUGIN_PHOTO,PHOTO,INPUT_PHOTO",
|
||||||
},
|
},
|
||||||
cli.StringSliceFlag{
|
cli.StringSliceFlag{
|
||||||
Name: "document",
|
Name: "document",
|
||||||
Usage: "send document message",
|
Usage: "send document message",
|
||||||
EnvVar: "PLUGIN_DOCUMENT,DOCUMENT",
|
EnvVar: "PLUGIN_DOCUMENT,DOCUMENT,INPUT_DOCUMENT",
|
||||||
},
|
},
|
||||||
cli.StringSliceFlag{
|
cli.StringSliceFlag{
|
||||||
Name: "sticker",
|
Name: "sticker",
|
||||||
Usage: "send sticker message",
|
Usage: "send sticker message",
|
||||||
EnvVar: "PLUGIN_STICKER,STICKER",
|
EnvVar: "PLUGIN_STICKER,STICKER,INPUT_STICKER",
|
||||||
},
|
},
|
||||||
cli.StringSliceFlag{
|
cli.StringSliceFlag{
|
||||||
Name: "audio",
|
Name: "audio",
|
||||||
Usage: "send audio message",
|
Usage: "send audio message",
|
||||||
EnvVar: "PLUGIN_AUDIO,AUDIO",
|
EnvVar: "PLUGIN_AUDIO,AUDIO,INPUT_AUDIO",
|
||||||
},
|
},
|
||||||
cli.StringSliceFlag{
|
cli.StringSliceFlag{
|
||||||
Name: "voice",
|
Name: "voice",
|
||||||
Usage: "send voice message",
|
Usage: "send voice message",
|
||||||
EnvVar: "PLUGIN_VOICE,VOICE",
|
EnvVar: "PLUGIN_VOICE,VOICE,INPUT_VOICE",
|
||||||
},
|
},
|
||||||
cli.StringSliceFlag{
|
cli.StringSliceFlag{
|
||||||
Name: "location",
|
Name: "location",
|
||||||
Usage: "send location message",
|
Usage: "send location message",
|
||||||
EnvVar: "PLUGIN_LOCATION,LOCATION",
|
EnvVar: "PLUGIN_LOCATION,LOCATION,INPUT_LOCATION",
|
||||||
},
|
},
|
||||||
cli.StringSliceFlag{
|
cli.StringSliceFlag{
|
||||||
Name: "venue",
|
Name: "venue",
|
||||||
Usage: "send venue message",
|
Usage: "send venue message",
|
||||||
EnvVar: "PLUGIN_VENUE,VENUE",
|
EnvVar: "PLUGIN_VENUE,VENUE,INPUT_VENUE",
|
||||||
},
|
},
|
||||||
cli.StringSliceFlag{
|
cli.StringSliceFlag{
|
||||||
Name: "video",
|
Name: "video",
|
||||||
Usage: "send video message",
|
Usage: "send video message",
|
||||||
EnvVar: "PLUGIN_VIDEO,VIDEO",
|
EnvVar: "PLUGIN_VIDEO,VIDEO,INPUT_VIDEO",
|
||||||
},
|
},
|
||||||
cli.BoolFlag{
|
cli.BoolFlag{
|
||||||
Name: "debug",
|
Name: "debug",
|
||||||
Usage: "enable debug message",
|
Usage: "enable debug message",
|
||||||
EnvVar: "PLUGIN_DEBUG,DEBUG",
|
EnvVar: "PLUGIN_DEBUG,DEBUG,INPUT_DEBUG",
|
||||||
},
|
},
|
||||||
cli.BoolFlag{
|
cli.BoolFlag{
|
||||||
Name: "match.email",
|
Name: "match.email",
|
||||||
Usage: "send message when only 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{
|
cli.BoolTFlag{
|
||||||
Name: "webpage.preview",
|
Name: "webpage.preview",
|
||||||
Usage: "toggle web-page preview",
|
Usage: "toggle web-page preview",
|
||||||
EnvVar: "PLUGIN_WEBPAGE_PREVIEW",
|
EnvVar: "PLUGIN_WEBPAGE_PREVIEW,INPUT_WEBPAGE_PREVIEW",
|
||||||
},
|
},
|
||||||
cli.StringFlag{
|
cli.StringFlag{
|
||||||
Name: "format",
|
Name: "format",
|
||||||
Value: "markdown",
|
Value: "markdown",
|
||||||
Usage: "telegram message format",
|
Usage: "telegram message format",
|
||||||
EnvVar: "PLUGIN_FORMAT,FORMAT",
|
EnvVar: "PLUGIN_FORMAT,FORMAT,INPUT_FORMAT",
|
||||||
},
|
},
|
||||||
cli.StringFlag{
|
cli.StringFlag{
|
||||||
Name: "repo",
|
Name: "repo",
|
||||||
|
Loading…
Reference in New Issue
Block a user