Documentation
¶
Overview ¶
Package orgctx persists the user's "active org" between CLI invocations. Cloud-aware commands (e.g. `bw ledger init --cloud`) read this instead of taking an --org-id flag on every call.
Index ¶
Constants ¶
View Source
const Hint = "No active org. Run `bitwave org use` to pick one, or `bitwave org create` to make a new one."
Hint is the standard remediation message shown when ErrNoActiveOrg is hit.
Variables ¶
View Source
var ErrNoActiveOrg = errors.New("no active org")
ErrNoActiveOrg signals that no org has been selected. Callers should print the user-facing hint via Hint() and exit non-zero.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.