Documentation
¶
Overview ¶
Package alegracli embeds the agent-skill assets (SKILL.md + references) into the binary so `alegra skills install` can write them into an AI agent's skills directory. The same files under skills/alegra-cli/ are what `npx skills add jjuanrivvera/alegra-cli` and the Claude Code plugin consume.
Index ¶
Constants ¶
View Source
const SkillName = "alegra-cli"
SkillName is the directory the skill installs into within an agent's skills dir.
Variables ¶
View Source
var SkillFS = mustSub(embedded, "skills/"+SkillName)
SkillFS is rooted at the skill directory, so it contains SKILL.md and references/ at its top level.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
alegra
command
Command alegra is a command-line interface for the Alegra accounting API.
|
Command alegra is a command-line interface for the Alegra accounting API. |
|
Package commands implements the alegra CLI command tree.
|
Package commands implements the alegra CLI command tree. |
|
internal
|
|
|
api
Package api implements a typed client for the Alegra accounting API (https://developer.alegra.com).
|
Package api implements a typed client for the Alegra accounting API (https://developer.alegra.com). |
|
auth
Package auth stores and retrieves Alegra API tokens in the OS keyring, with graceful fallback when no keyring backend is available.
|
Package auth stores and retrieves Alegra API tokens in the OS keyring, with graceful fallback when no keyring backend is available. |
|
catalog
Package catalog serves Alegra's per-country reference catalogs (units of measure and reference enums such as identification types, tax types, and payment methods) from data embedded at build time.
|
Package catalog serves Alegra's per-country reference catalogs (units of measure and reference enums such as identification types, tax types, and payment methods) from data embedded at build time. |
|
config
Package config loads and persists alegra-cli configuration: named profiles (base URL + credentials), global settings, and environment overrides.
|
Package config loads and persists alegra-cli configuration: named profiles (base URL + credentials), global settings, and environment overrides. |
|
output
Package output renders API results in json, yaml, csv, or table form.
|
Package output renders API results in json, yaml, csv, or table form. |
|
ui
Package ui provides small terminal-styling helpers that respect NO_COLOR and automatically disable themselves when output is not an interactive terminal.
|
Package ui provides small terminal-styling helpers that respect NO_COLOR and automatically disable themselves when output is not an interactive terminal. |
|
version
Package version exposes build metadata injected at link time via -ldflags.
|
Package version exposes build metadata injected at link time via -ldflags. |
|
tools
|
|
|
catalogen
command
Command catalogen regenerates the embedded per-country reference catalogs (internal/catalog/data/*.json) from Alegra's published country parameter pages (https://developer.alegra.com/reference/<country>.md).
|
Command catalogen regenerates the embedded per-country reference catalogs (internal/catalog/data/*.json) from Alegra's published country parameter pages (https://developer.alegra.com/reference/<country>.md). |
|
gendocs
command
Command gendocs generates the CLI command reference as Markdown from the cobra command tree into docs/commands, for the MkDocs site.
|
Command gendocs generates the CLI command reference as Markdown from the cobra command tree into docs/commands, for the MkDocs site. |
|
specsync
command
Command specsync reconstructs Alegra's documented API surface and writes two committed manifests (raw fetches land in .alegra-spec/, gitignored):
|
Command specsync reconstructs Alegra's documented API surface and writes two committed manifests (raw fetches land in .alegra-spec/, gitignored): |
Click to show internal directories.
Click to hide internal directories.