2022-02-25 05:26:40 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
import "github.com/urfave/cli/v2"
|
|
|
|
|
|
|
|
func notify(c *cli.Context) error {
|
|
|
|
// Ensure required arguments
|
|
|
|
if c.Args().Len() != 2 {
|
|
|
|
return cli.Exit("Command notify requires two arguments", 1)
|
|
|
|
}
|
|
|
|
|
2022-05-01 22:22:28 +00:00
|
|
|
err := client.Notify(c.Context, c.Args().Get(0), c.Args().Get(1))
|
2022-02-25 05:26:40 +00:00
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|