Documentation
¶
Overview ¶
Package cli assembles the booking command tree from the booking 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 booking 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. This package adds the domain-global flags and the version command; 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 booking/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.