package main import ( "fmt" "github.com/Masterminds/cookoo" ) func main() { registry, router, context := cookoo.Cookoo() context.Add("Name", "John") router.Handle("example", cookoo.NoRouting, func(ctx cookoo.Context, params *cookoo.Params) (interface{}, cookoo.Interrupt) { name := ctx.Get("Name", "unknown").(string) return fmt.Sprintf("Hello, %s!", name), nil }) result, err := router.HandleRequest("example", context, false) if err != nil { fmt.Printf("Error occurred: %v", err) return } fmt.Printf("%s", result) }In this example, we first create a new `Context` object and add a `Name` key with value `John` to it. We then define a new route `example` which retrieves the `Name` from the `Context` using `Get` method, and returns a greeting message. Finally, we invoke the `HandleRequest` method to execute the route. The result of the route execution is printed to the console. Overall, the `github.com/masterminds/cookoo` package provides a convenient way to build robust command-line applications in Go, complete with support for contexts and easy-to-use routing mechanisms.