cli

package
v0.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 14, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

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

View Source
var (
	Version = "dev"
	Commit  = "none"
	Date    = "unknown"
)

Build metadata, set via -ldflags at release time.

Functions

func NewApp

func NewApp() *kit.App

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL