diff options
| -rw-r--r-- | main.go | 16 |
1 files changed, 14 insertions, 2 deletions
@@ -2,12 +2,24 @@ package main import ( "context" + "fmt" + "log" "os" "github.com/urfave/cli/v3" ) func main() { - cmd := new(cli.Command) - cmd.Run(context.Background(), os.Args) + cmd := new(cli.Command{ + Name: "boom", + Usage: "make an explosive entrance", + Action: func(context.Context, *cli.Command) error { + fmt.Println("Boom! I say!") + return nil + }, + }) + + if err := cmd.Run(context.Background(), os.Args); err != nil { + log.Fatal(err) + } } |
