Documentation
¶
Overview ¶
Package cli wires httpfly's command-line arguments to its subcommands.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrSilent = errors.New("")
ErrSilent marks a returned error whose message must not be printed -- used when the caller (currently just "run -json") has already written its complete, parseable output to stdout and a human-readable summary alongside it would risk corrupting that output for a tool reading it (e.g. one that merges stdout and stderr). The exit code still reflects failure; wrap it with fmt.Errorf's %w or return it directly.
var Version = "dev"
Version is httpfly's version. It defaults to "dev" for local builds (go run, go build without flags) and is overridden at release-build time via:
go build -ldflags "-X github.com/cristianradulescu/httpfly/internal/cli.Version=X.Y.Z"
(see the Makefile's build target).
Functions ¶
Types ¶
This section is empty.