summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go16
1 files changed, 14 insertions, 2 deletions
diff --git a/main.go b/main.go
index 437ebff..9e23ee6 100644
--- a/main.go
+++ b/main.go
@@ -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)
+ }
}