github.com/wolfi-dev/wolfictl@v0.16.11/main.go (about) 1 package main 2 3 import ( 4 "context" 5 "log" 6 "os" 7 "os/signal" 8 9 "github.com/wolfi-dev/wolfictl/pkg/cli" 10 ) 11 12 func main() { 13 if err := mainE(context.Background()); err != nil { 14 log.Fatalf("error during command execution: %v", err) 15 } 16 } 17 18 func mainE(ctx context.Context) error { 19 ctx, done := signal.NotifyContext(ctx, os.Interrupt) 20 defer done() 21 22 return cli.New().ExecuteContext(ctx) 23 }