Rewrite itctl to use urfave/cli instead of spf13/cobra

This commit is contained in:
2022-02-24 21:26:40 -08:00
parent 9e63401db3
commit a885eacc70
36 changed files with 576 additions and 2333 deletions

17
cmd/itctl/notify.go Normal file
View File

@@ -0,0 +1,17 @@
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)
}
err := client.Notify(c.Args().Get(0), c.Args().Get(1))
if err != nil {
return err
}
return nil
}