mirror of
https://github.com/kha7iq/pingme.git
synced 2025-05-15 14:20:18 -07:00
fix: syntax errors in the help commands
This commit is contained in:
parent
f6a7d22c81
commit
88d051558e
@ -31,7 +31,7 @@ func SendToDiscord() *cli.Command {
|
||||
Description: `Discord uses bot token to authenticate & send messages to defined channels.
|
||||
Multiple channel ids can be used separated by comma ','.
|
||||
All configuration options are also available via environment variables.`,
|
||||
UsageText: "pingme discord --token '123' --channel '12345,67890' --message 'some message'",
|
||||
UsageText: "pingme discord --token '123' --channel '12345,67890' --msg 'some message'",
|
||||
Flags: []cli.Flag{
|
||||
&cli.StringFlag{
|
||||
Destination: &discordOpts.Token,
|
||||
|
@ -57,7 +57,7 @@ func SendToMattermost() *cli.Command {
|
||||
Name: "mattermost",
|
||||
Usage: "Send message to mattermost",
|
||||
UsageText: "pingme mattermost --token '123' --channel '12345567' --url 'localhost' --scheme http " +
|
||||
"--message 'some message'",
|
||||
"--msg 'some message'",
|
||||
Description: `Mattermost uses token to authenticate and channel ids for targets.
|
||||
You can specify multiple channels by separating the value with ','.`,
|
||||
Flags: []cli.Flag{
|
||||
|
@ -29,7 +29,7 @@ func SendToTeams() *cli.Command {
|
||||
Usage: "Send message to microsoft teams",
|
||||
Description: `Teams uses webhooks to send messages, you can add multiple webhooks separated by comma ',' or
|
||||
you can add permissions for multiple channels to single webhook.`,
|
||||
UsageText: "pingme teams --webhook 'https://example.webhook.office.com/xx' --message 'some message'",
|
||||
UsageText: "pingme teams --webhook 'https://example.webhook.office.com/xx' --msg 'some message'",
|
||||
Flags: []cli.Flag{
|
||||
&cli.StringFlag{
|
||||
Destination: &msTeamOpt.Webhook,
|
||||
|
@ -26,7 +26,7 @@ func SendToPushOver() *cli.Command {
|
||||
return &cli.Command{
|
||||
Name: "pushover",
|
||||
Usage: "Send message to pushover",
|
||||
UsageText: "pingme pushover --token '123' --user '12345,567' --message 'some message'",
|
||||
UsageText: "pingme pushover --token '123' --user '12345,567' --msg 'some message'",
|
||||
Description: `Pushover uses token to authenticate application and user token to send messages to the user.
|
||||
All configuration options are also available via environment variables.`,
|
||||
Flags: []cli.Flag{
|
||||
|
@ -28,7 +28,7 @@ func SendToSlack() *cli.Command {
|
||||
return &cli.Command{
|
||||
Name: "slack",
|
||||
Usage: "Send message to slack",
|
||||
UsageText: "pingme slack --token '123' --channel '12345,67890' --message 'some message'",
|
||||
UsageText: "pingme slack --token '123' --channel '12345,67890' --msg 'some message'",
|
||||
Description: `Slack uses token to authenticate and send messages to defined channels.
|
||||
Multiple channel ids can be used separated by comma ','.
|
||||
All configuration options are also available via environment variables.`,
|
||||
|
@ -111,7 +111,7 @@ jobs:
|
||||
## Pushover
|
||||
|
||||
```bash
|
||||
pingme pushover --token '123' --user '12345567' --title 'some title' --message 'some message'
|
||||
pingme pushover --token '123' --user '12345567' --title 'some title' --msg 'some message'
|
||||
```
|
||||
|
||||
- Github Action
|
||||
@ -158,7 +158,7 @@ Latest api version 4 is used for interacting with server, this can also be chan
|
||||
You can specify multiple channels by separating the value with ','.
|
||||
|
||||
```bash
|
||||
pingme mattermost --token '123' --channel '12345,567' --url 'localhost' --scheme 'http' --message 'some message'
|
||||
pingme mattermost --token '123' --channel '12345,567' --url 'localhost' --scheme 'http' --msg 'some message'
|
||||
```
|
||||
|
||||
- Github Action
|
||||
@ -207,7 +207,7 @@ Slack uses token to authenticate and send messages to defined channels.
|
||||
Multiple channel ids can be used separated by comma ','.
|
||||
|
||||
```bash
|
||||
pingme slack --token '123' --channel '1234567890' --message 'some message'
|
||||
pingme slack --token '123' --channel '1234567890' --msg 'some message'
|
||||
```
|
||||
|
||||
- Github Action
|
||||
@ -251,7 +251,7 @@ Discord uses bot token to authenticate & send messages to defined channels.
|
||||
Multiple channel ids can be used separated by comma ','.
|
||||
|
||||
```bash
|
||||
pingme discord --token '123' --channel '1234567890' --message 'some message'
|
||||
pingme discord --token '123' --channel '1234567890' --msg 'some message'
|
||||
```
|
||||
|
||||
- Github Action
|
||||
@ -295,7 +295,7 @@ Teams uses webhooks to send messages, you can add multiple webhooks separated by
|
||||
you can add permissions for multiple channels to single webhook.
|
||||
|
||||
```bash
|
||||
pingme teams --webhook 'https://example.webhook.office.com/xx' --message 'some message'
|
||||
pingme teams --webhook 'https://example.webhook.office.com/xx' --msg 'some message'
|
||||
```
|
||||
|
||||
- Github Action
|
||||
|
Loading…
x
Reference in New Issue
Block a user