Documentation
¶
Overview ¶
Command lsqueezy is a production-grade CLI for Lemon Squeezy.
main wires a cancellable context (signal.NotifyContext) so Ctrl-C cancels in-flight pagination and retry backoff, expands user aliases before cobra parses, and blank-imports the resources package so its init() self-registers every resource against the generic core.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package commands wires the cobra command tree.
|
Package commands wires the cobra command tree. |
|
internal
|
|
|
api
Package api is the generic HTTP core for the Lemon Squeezy API: one client + one generic Resource[T] power every resource.
|
Package api is the generic HTTP core for the Lemon Squeezy API: one client + one generic Resource[T] power every resource. |
|
auth
Package auth stores the API key in the OS keyring, with an encrypted-file fallback for headless environments.
|
Package auth stores the API key in the OS keyring, with an encrypted-file fallback for headless environments. |
|
config
Package config implements config precedence flag > env > config file > default, with named profiles for multi-account use.
|
Package config implements config precedence flag > env > config file > default, with named profiles for multi-account use. |
|
output
Package output is the single renderer for every resource: table (default), json, yaml, csv.
|
Package output is the single renderer for every resource: table (default), json, yaml, csv. |
|
version
Package version holds build metadata injected via -ldflags at build time.
|
Package version holds build metadata injected via -ldflags at build time. |
|
Package resources registers every Lemon Squeezy resource (and the custom action verbs and singleton command groups) against the generic core.
|
Package resources registers every Lemon Squeezy resource (and the custom action verbs and singleton command groups) against the generic core. |
|
tools
|
|
|
gendocs
command
Command gendocs generates docs/commands/*.md from the cobra tree so the reference docs stay in lockstep with the CLI (the CI drift check fails if they diverge).
|
Command gendocs generates docs/commands/*.md from the cobra tree so the reference docs stay in lockstep with the CLI (the CI drift check fails if they diverge). |
Click to show internal directories.
Click to hide internal directories.