Documentation
¶
Overview ¶
Package cli assembles the cocktaildb command tree from the cocktaildb domain on top of the any-cli/kit framework.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( Version = "dev" Commit = "none" Date = "unknown" )
Build metadata, set via -ldflags at release time.
Functions ¶
func NewApp ¶
NewApp assembles the kit application from the cocktaildb domain. The domain's Register installs the client factory and every operation, so the binary and a host (ant, which blank-imports the package) share one source of truth. kit.Run turns the App into the CLI, plus the serve and mcp surfaces and the typed-error-to-exit-code mapping.
To add a command, declare it in cocktaildb/domain.go with kit.Handle and it appears here automatically. Reach for app.AddCommand only for a verb that does not fit the emit-records shape, the way version does below.
Types ¶
This section is empty.