|
|
@ -23,7 +23,7 @@ type TextMagic struct {
|
|
|
|
func Send() *cli.Command {
|
|
|
|
func Send() *cli.Command {
|
|
|
|
var textMagicOpts TextMagic
|
|
|
|
var textMagicOpts TextMagic
|
|
|
|
return &cli.Command{
|
|
|
|
return &cli.Command{
|
|
|
|
Name: "textMagic",
|
|
|
|
Name: "textmagic",
|
|
|
|
Usage: "Send message via TextMagic",
|
|
|
|
Usage: "Send message via TextMagic",
|
|
|
|
UsageText: "pingme textmagic --token 'tokenabc' --user 'sid123' " +
|
|
|
|
UsageText: "pingme textmagic --token 'tokenabc' --user 'sid123' " +
|
|
|
|
"--receiver '+140001442' --msg 'some message'",
|
|
|
|
"--receiver '+140001442' --msg 'some message'",
|
|
|
@ -55,7 +55,7 @@ You can specify multiple receivers by separating the value with a comma.`,
|
|
|
|
EnvVars: []string{"TEXTMAGIC_SUBJECT"},
|
|
|
|
EnvVars: []string{"TEXTMAGIC_SUBJECT"},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&cli.StringFlag{
|
|
|
|
&cli.StringFlag{
|
|
|
|
Destination: &textMagicOpts.Message,
|
|
|
|
Destination: &textMagicOpts.Receivers,
|
|
|
|
Name: "receiver",
|
|
|
|
Name: "receiver",
|
|
|
|
Usage: "Receiver(s) of the message",
|
|
|
|
Usage: "Receiver(s) of the message",
|
|
|
|
Aliases: []string{"r"},
|
|
|
|
Aliases: []string{"r"},
|
|
|
|