Skip to content

stevenacoffman/go-craft

v0.1.0MIT

Go application design: packages, dependency injection, errors, HTTP services, and CLIs.

cli-configuration-hierarchy

Use when deciding how a CLI should accept a setting — flag, environment variable, project or user config file, or system-wide config — and their precedence, or when designing a new CLI tool's configuration system. Covers .env files vs real config files and users retyping flags.

Read SKILL.md at the source

Pinned to revision e4081cbb4d29, so it is the text this page describes rather than whatever the author pushed since.

Files

Every link opens the file at its source, pinned to the revision this page describes.