feat(env): support multiple env
This commit is contained in:
parent
9b8c7c6445
commit
2aee0589c9
18
main.go
18
main.go
@ -39,42 +39,42 @@ func main() {
|
|||||||
cli.StringSliceFlag{
|
cli.StringSliceFlag{
|
||||||
Name: "photo",
|
Name: "photo",
|
||||||
Usage: "send photo message",
|
Usage: "send photo message",
|
||||||
EnvVar: "PLUGIN_PHOTO",
|
EnvVar: "PLUGIN_PHOTO,PHOTO",
|
||||||
},
|
},
|
||||||
cli.StringSliceFlag{
|
cli.StringSliceFlag{
|
||||||
Name: "document",
|
Name: "document",
|
||||||
Usage: "send document message",
|
Usage: "send document message",
|
||||||
EnvVar: "PLUGIN_DOCUMENT",
|
EnvVar: "PLUGIN_DOCUMENT,DOCUMENT",
|
||||||
},
|
},
|
||||||
cli.StringSliceFlag{
|
cli.StringSliceFlag{
|
||||||
Name: "sticker",
|
Name: "sticker",
|
||||||
Usage: "send sticker message",
|
Usage: "send sticker message",
|
||||||
EnvVar: "PLUGIN_STICKER",
|
EnvVar: "PLUGIN_STICKER,STICKER",
|
||||||
},
|
},
|
||||||
cli.StringSliceFlag{
|
cli.StringSliceFlag{
|
||||||
Name: "audio",
|
Name: "audio",
|
||||||
Usage: "send audio message",
|
Usage: "send audio message",
|
||||||
EnvVar: "PLUGIN_AUDIO",
|
EnvVar: "PLUGIN_AUDIO,AUDIO",
|
||||||
},
|
},
|
||||||
cli.StringSliceFlag{
|
cli.StringSliceFlag{
|
||||||
Name: "voice",
|
Name: "voice",
|
||||||
Usage: "send voice message",
|
Usage: "send voice message",
|
||||||
EnvVar: "PLUGIN_VOICE",
|
EnvVar: "PLUGIN_VOICE,VOICE",
|
||||||
},
|
},
|
||||||
cli.StringSliceFlag{
|
cli.StringSliceFlag{
|
||||||
Name: "location",
|
Name: "location",
|
||||||
Usage: "send location message",
|
Usage: "send location message",
|
||||||
EnvVar: "PLUGIN_LOCATION",
|
EnvVar: "PLUGIN_LOCATION,LOCATION",
|
||||||
},
|
},
|
||||||
cli.StringSliceFlag{
|
cli.StringSliceFlag{
|
||||||
Name: "venue",
|
Name: "venue",
|
||||||
Usage: "send venue message",
|
Usage: "send venue message",
|
||||||
EnvVar: "PLUGIN_VENUE",
|
EnvVar: "PLUGIN_VENUE,VENUE",
|
||||||
},
|
},
|
||||||
cli.StringSliceFlag{
|
cli.StringSliceFlag{
|
||||||
Name: "video",
|
Name: "video",
|
||||||
Usage: "send video message",
|
Usage: "send video message",
|
||||||
EnvVar: "PLUGIN_VIDEO",
|
EnvVar: "PLUGIN_VIDEO,VIDEO",
|
||||||
},
|
},
|
||||||
cli.BoolFlag{
|
cli.BoolFlag{
|
||||||
Name: "debug",
|
Name: "debug",
|
||||||
@ -95,7 +95,7 @@ func main() {
|
|||||||
Name: "format",
|
Name: "format",
|
||||||
Value: "markdown",
|
Value: "markdown",
|
||||||
Usage: "telegram message format",
|
Usage: "telegram message format",
|
||||||
EnvVar: "PLUGIN_FORMAT",
|
EnvVar: "PLUGIN_FORMAT,FORMAT",
|
||||||
},
|
},
|
||||||
cli.StringFlag{
|
cli.StringFlag{
|
||||||
Name: "repo",
|
Name: "repo",
|
||||||
|
Loading…
Reference in New Issue
Block a user