// Line struct holds data parsed via flags for the service
// Line struct holds data parsed via flags for the service
typeLinestruct{
typeLinestruct{
ChanSecretstring
Secret string
ChanAccessToken string
Tokenstring
Messagestring
Messagestring
Receiversstring
Receiversstring
Titlestring
Titlestring
}
}
// Send parses values from *cli.context and returns a *cli.Command.
// Send parses values from *cli.context and returns a *cli.Command.
@ -26,24 +26,26 @@ type Line struct {
funcSend()*cli.Command{
funcSend()*cli.Command{
varlineOptsLine
varlineOptsLine
return&cli.Command{
return&cli.Command{
Name:"line",
Name:"line",
Usage:"Send message to line messenger",
Usage:"Send message to line messenger",
Description:`Line messenger uses a channel secret and a channel access token to authenticate & send messages through line to various receivers. Multiple receiver IDs can be used separated by comma ','. All configuration options are also available via environment variables.`,