Documentation
¶
Overview ¶
Package appname is the single source of truth for the running app's *path-safe identifier* — the slug used in `~/.<app>/` for DB, logs, agents Layout, gate spec/socket. Every artefact lands under one tree.
Resolution order (first non-empty wins):
- BuildAppName — ldflag-baked at compile time by `wick build`
- wick.yml — top-level `name:` field, walked from cwd
- "wick" — last-ditch fallback
`APP_NAME` env var is intentionally NOT in this chain. That env holds the human-readable display label (e.g. "My App" with spaces and capitalization) used by the UI / login / systray title — it must not contaminate filesystem paths. Path identifiers come from `name:` in wick.yml, which already enforces no-space slug rules.
The package has zero deps on the rest of the codebase so any other internal package can import it without risking cycles.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var BuildAppName = ""
BuildAppName is the ldflag injection target. Builder writes here via `-X github.com/yogasw/wick/internal/appname.BuildAppName=<name>`. Empty when not built via `wick build` (e.g. `go run`, VSCode debug).
Functions ¶
Types ¶
This section is empty.