clireg golden: economics bill --basis usage
Re-recorded with TestCLIGolden -record after merging main, which now pins CLI usage lines.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+8
−8
testdata/clireg-golden.jsonl+8 −8
CI passed — run details
diff --git a/testdata/clireg-golden.jsonl b/testdata/clireg-golden.jsonl| index f0a431d7b..52e9597a0 100644 |
| --- a/testdata/clireg-golden.jsonl |
| +++ b/testdata/clireg-golden.jsonl |
| @@ -225,14 +225,14 @@ |
| {"case":"domains | zz-unknown","argv":["domains","zz-unknown"],"exit":1,"stdout":"","stderr":"usage: carlos domains <check|buy|attach|verify|detach|list|paths|placements> [flags]\n\n check <name> [--country <cc>] [flags]\n check availability and the price for one year\n buy <name> --app <a> [--contact-file contact.json] [--yes] [--no-wait] [flags]\n buy a domain and wait for it to serve the app\n\n attach --app <a> [--route <r>] [--wildcard] [--catchall] [--platform] [flags] <hostname>\n claim a customer's hostname for the app, pointed at\n --route (default: the app's single instance record, if it\n has exactly one — otherwise --route is required).\n --wildcard/--catchall are capability flips: naming either\n one changes it, an unset flag leaves it as it was.\n --platform attaches a hostname in this deployment's own\n domains. Platform operators only.\n Where the deployment requires proof of control, the\n hostname is not served until you add the TXT record\n attach prints.\n attach --app <a> '*.<parent>'\n an instance catch-all: each of the app's instances also\n answers at <label>.<parent>, where <label> is its host's\n first label. <parent> must already be attached to an app\n in this account. Signed-in people only; takes no other\n flag. Detach it with: detach --app <a> '*.<parent>'.\n verify --app <a> [--channel <c>] [flags] <hostname>\n check the TXT record and, once it is there, make the\n hostname live. --channel is for a hostname that will be\n the app's first route, when the app follows several.\n detach --app <a> [flags] <hostname>\n release a hostname claim\n list --app <a> [flags]\n this app's hostname claims, joined to the fleet's own\n readings sweep (DNS/CERT-EXPIRES/WILDCARD/CATCHALL/DELEGATION)\n paths --app <a> [flags] <hostname>\n the leading path segments this hostname's traffic is split\n by, as PUBLISHED. Read-only: the platform that owns the\n hostname republishes the whole map, so there is no verb\n here that writes one.\n placements --app <a> [--set <region>=<instance>]... [--wildcard] [--catchall] [flags] <hostname>\n without --set, shows which instance serves the hostname in\n each region, whether it is ready, and the addresses to\n point DNS at. with --set, makes the hostname a regional\n domain. each region serves it from the instance named for\n it, and a request is never sent to another region. give\n the whole set every time. --wildcard and --catchall take\n effect only when the domain is created.\n\n --account <a> account (sqid or name; default \"ops\")\n --account-id <id> account sqid, matched as a sqid ONLY\n --console <origin> console to act through (default: the only logged-in one)\n\nSigned-in only (carlos auth login): a claim is a console-authorized write —\nthe console checks the hostname against the deploy's deny list, resolves the\nroute, and writes it. The hostname comes live on the box that owns the route\nat its next domains pass.\n"} |
| {"case":"economics backhaul | --zz-unknown-flag","argv":["economics","backhaul","--zz-unknown-flag"],"exit":2,"stdout":"","stderr":"flag provided but not defined: -zz-unknown-flag\nusage: carlos economics backhaul [--period mtd|last|7d] [--console <origin>]\n\nShows what serving through region edges costs the platform this period:\nthe part of every account's egress that was backhauled from its home box\n(usage.EdgeRow's hop subset — inside the egress totals, never on top),\npriced at the rate card's inter-region $/GB (the extra leg; the home box's\nbytes are already egress) and ABSORBED — it is in nobody's bill (#284).\nOperator only; a non-operator's token gets the same bare 404 an unknown\nroute gets.\nflags:\n --console <string> console to ask (default: the only logged-in one)\n --destination, -d <name> use the named block from .carlos/config's destinations (default: CARLOS_DESTINATION, else the file's default or only one)\n --period <string> mtd (default), last, or 7d\n"} |
| {"case":"economics backhaul | -h","argv":["economics","backhaul","-h"],"exit":0,"stdout":"","stderr":"usage: carlos economics backhaul [--period mtd|last|7d] [--console <origin>]\n\nShows what serving through region edges costs the platform this period:\nthe part of every account's egress that was backhauled from its home box\n(usage.EdgeRow's hop subset — inside the egress totals, never on top),\npriced at the rate card's inter-region $/GB (the extra leg; the home box's\nbytes are already egress) and ABSORBED — it is in nobody's bill (#284).\nOperator only; a non-operator's token gets the same bare 404 an unknown\nroute gets.\nflags:\n --console <string> console to ask (default: the only logged-in one)\n --destination, -d <name> use the named block from .carlos/config's destinations (default: CARLOS_DESTINATION, else the file's default or only one)\n --period <string> mtd (default), last, or 7d\n"} |
| -{"case":"economics bill | --zz-unknown-flag","argv":["economics","bill","--zz-unknown-flag"],"exit":2,"stdout":"","stderr":"flag provided but not defined: -zz-unknown-flag\nusage: carlos economics bill --month <YYYY-MM> --total <usd> [--line Service=usd ...] [--console <origin>]\n carlos economics backhaul [--period mtd|last|7d] [--console <origin>]\n\nRecords one month's AWS bill for the economics dashboard. Operator only: the\nconsole answers a non-operator's token with the same bare 404 it gives an\nunknown route (it must not be probeable), so \"not found\" here almost always\nmeans your account lacks the fleet-operator bit.\n\nA manual entry always overwrites whatever the console already holds for that\nmonth — a previous Cost Explorer pull or an earlier manual entry alike.\nflags:\n --console <string> console to record through (default: the only logged-in one)\n --destination, -d <name> use the named block from .carlos/config's destinations (default: CARLOS_DESTINATION, else the file's default or only one)\n --line <value> one line item, repeatable: Service=usd\n --month <string> billing month, YYYY-MM (required)\n --total <float> invoice total in US dollars (required)\n"} |
| -{"case":"economics bill | -h","argv":["economics","bill","-h"],"exit":0,"stdout":"","stderr":"usage: carlos economics bill --month <YYYY-MM> --total <usd> [--line Service=usd ...] [--console <origin>]\n carlos economics backhaul [--period mtd|last|7d] [--console <origin>]\n\nRecords one month's AWS bill for the economics dashboard. Operator only: the\nconsole answers a non-operator's token with the same bare 404 it gives an\nunknown route (it must not be probeable), so \"not found\" here almost always\nmeans your account lacks the fleet-operator bit.\n\nA manual entry always overwrites whatever the console already holds for that\nmonth — a previous Cost Explorer pull or an earlier manual entry alike.\nflags:\n --console <string> console to record through (default: the only logged-in one)\n --destination, -d <name> use the named block from .carlos/config's destinations (default: CARLOS_DESTINATION, else the file's default or only one)\n --line <value> one line item, repeatable: Service=usd\n --month <string> billing month, YYYY-MM (required)\n --total <float> invoice total in US dollars (required)\n"} |
| -{"case":"economics | --help","argv":["economics","--help"],"exit":2,"stdout":"","stderr":"usage: carlos economics bill --month <YYYY-MM> --total <usd> [--line Service=usd ...] [--console <origin>]\n carlos economics backhaul [--period mtd|last|7d] [--console <origin>]\n\nRecords one month's AWS bill for the economics dashboard. Operator only: the\nconsole answers a non-operator's token with the same bare 404 it gives an\nunknown route (it must not be probeable), so \"not found\" here almost always\nmeans your account lacks the fleet-operator bit.\n\nA manual entry always overwrites whatever the console already holds for that\nmonth — a previous Cost Explorer pull or an earlier manual entry alike.\n"} |
| -{"case":"economics | --zz-unknown-flag","argv":["economics","--zz-unknown-flag"],"exit":2,"stdout":"","stderr":"usage: carlos economics bill --month <YYYY-MM> --total <usd> [--line Service=usd ...] [--console <origin>]\n carlos economics backhaul [--period mtd|last|7d] [--console <origin>]\n\nRecords one month's AWS bill for the economics dashboard. Operator only: the\nconsole answers a non-operator's token with the same bare 404 it gives an\nunknown route (it must not be probeable), so \"not found\" here almost always\nmeans your account lacks the fleet-operator bit.\n\nA manual entry always overwrites whatever the console already holds for that\nmonth — a previous Cost Explorer pull or an earlier manual entry alike.\n"} |
| -{"case":"economics | -h","argv":["economics","-h"],"exit":2,"stdout":"","stderr":"usage: carlos economics bill --month <YYYY-MM> --total <usd> [--line Service=usd ...] [--console <origin>]\n carlos economics backhaul [--period mtd|last|7d] [--console <origin>]\n\nRecords one month's AWS bill for the economics dashboard. Operator only: the\nconsole answers a non-operator's token with the same bare 404 it gives an\nunknown route (it must not be probeable), so \"not found\" here almost always\nmeans your account lacks the fleet-operator bit.\n\nA manual entry always overwrites whatever the console already holds for that\nmonth — a previous Cost Explorer pull or an earlier manual entry alike.\n"} |
| -{"case":"economics | bare","argv":["economics"],"exit":2,"stdout":"","stderr":"usage: carlos economics bill --month <YYYY-MM> --total <usd> [--line Service=usd ...] [--console <origin>]\n carlos economics backhaul [--period mtd|last|7d] [--console <origin>]\n\nRecords one month's AWS bill for the economics dashboard. Operator only: the\nconsole answers a non-operator's token with the same bare 404 it gives an\nunknown route (it must not be probeable), so \"not found\" here almost always\nmeans your account lacks the fleet-operator bit.\n\nA manual entry always overwrites whatever the console already holds for that\nmonth — a previous Cost Explorer pull or an earlier manual entry alike.\n"} |
| -{"case":"economics | help","argv":["economics","help"],"exit":2,"stdout":"","stderr":"usage: carlos economics bill --month <YYYY-MM> --total <usd> [--line Service=usd ...] [--console <origin>]\n carlos economics backhaul [--period mtd|last|7d] [--console <origin>]\n\nRecords one month's AWS bill for the economics dashboard. Operator only: the\nconsole answers a non-operator's token with the same bare 404 it gives an\nunknown route (it must not be probeable), so \"not found\" here almost always\nmeans your account lacks the fleet-operator bit.\n\nA manual entry always overwrites whatever the console already holds for that\nmonth — a previous Cost Explorer pull or an earlier manual entry alike.\n"} |
| -{"case":"economics | zz-unknown","argv":["economics","zz-unknown"],"exit":2,"stdout":"","stderr":"usage: carlos economics bill --month <YYYY-MM> --total <usd> [--line Service=usd ...] [--console <origin>]\n carlos economics backhaul [--period mtd|last|7d] [--console <origin>]\n\nRecords one month's AWS bill for the economics dashboard. Operator only: the\nconsole answers a non-operator's token with the same bare 404 it gives an\nunknown route (it must not be probeable), so \"not found\" here almost always\nmeans your account lacks the fleet-operator bit.\n\nA manual entry always overwrites whatever the console already holds for that\nmonth — a previous Cost Explorer pull or an earlier manual entry alike.\n"} |
| +{"case":"economics bill | --zz-unknown-flag","argv":["economics","bill","--zz-unknown-flag"],"exit":2,"stdout":"","stderr":"flag provided but not defined: -zz-unknown-flag\nusage: carlos economics bill --month <YYYY-MM> --total <usd> [--line Service=usd ...] [--basis account|whole] [--console <origin>]\n carlos economics backhaul [--period mtd|last|7d] [--console <origin>]\n\nRecords one month's AWS bill for the economics dashboard. Operator only: the\nconsole answers a non-operator's token with the same bare 404 it gives an\nunknown route (it must not be probeable), so \"not found\" here almost always\nmeans your account lacks the fleet-operator bit.\n\nA manual entry always overwrites whatever the console already holds for that\nmonth — a previous Cost Explorer pull or an earlier manual entry alike.\nflags:\n --basis <string> what the total covers: account (the whole account, which runs only CARLOS) or whole (the whole account, CARLOS and other things)\n --console <string> console to record through (default: the only logged-in one)\n --destination, -d <name> use the named block from .carlos/config's destinations (default: CARLOS_DESTINATION, else the file's default or only one)\n --line <value> one line item, repeatable: Service=usd\n --month <string> billing month, YYYY-MM (required)\n --total <float> invoice total in US dollars (required)\n"} |
| +{"case":"economics bill | -h","argv":["economics","bill","-h"],"exit":0,"stdout":"","stderr":"usage: carlos economics bill --month <YYYY-MM> --total <usd> [--line Service=usd ...] [--basis account|whole] [--console <origin>]\n carlos economics backhaul [--period mtd|last|7d] [--console <origin>]\n\nRecords one month's AWS bill for the economics dashboard. Operator only: the\nconsole answers a non-operator's token with the same bare 404 it gives an\nunknown route (it must not be probeable), so \"not found\" here almost always\nmeans your account lacks the fleet-operator bit.\n\nA manual entry always overwrites whatever the console already holds for that\nmonth — a previous Cost Explorer pull or an earlier manual entry alike.\nflags:\n --basis <string> what the total covers: account (the whole account, which runs only CARLOS) or whole (the whole account, CARLOS and other things)\n --console <string> console to record through (default: the only logged-in one)\n --destination, -d <name> use the named block from .carlos/config's destinations (default: CARLOS_DESTINATION, else the file's default or only one)\n --line <value> one line item, repeatable: Service=usd\n --month <string> billing month, YYYY-MM (required)\n --total <float> invoice total in US dollars (required)\n"} |
| +{"case":"economics | --help","argv":["economics","--help"],"exit":2,"stdout":"","stderr":"usage: carlos economics bill --month <YYYY-MM> --total <usd> [--line Service=usd ...] [--basis account|whole] [--console <origin>]\n carlos economics backhaul [--period mtd|last|7d] [--console <origin>]\n\nRecords one month's AWS bill for the economics dashboard. Operator only: the\nconsole answers a non-operator's token with the same bare 404 it gives an\nunknown route (it must not be probeable), so \"not found\" here almost always\nmeans your account lacks the fleet-operator bit.\n\nA manual entry always overwrites whatever the console already holds for that\nmonth — a previous Cost Explorer pull or an earlier manual entry alike.\n"} |
| +{"case":"economics | --zz-unknown-flag","argv":["economics","--zz-unknown-flag"],"exit":2,"stdout":"","stderr":"usage: carlos economics bill --month <YYYY-MM> --total <usd> [--line Service=usd ...] [--basis account|whole] [--console <origin>]\n carlos economics backhaul [--period mtd|last|7d] [--console <origin>]\n\nRecords one month's AWS bill for the economics dashboard. Operator only: the\nconsole answers a non-operator's token with the same bare 404 it gives an\nunknown route (it must not be probeable), so \"not found\" here almost always\nmeans your account lacks the fleet-operator bit.\n\nA manual entry always overwrites whatever the console already holds for that\nmonth — a previous Cost Explorer pull or an earlier manual entry alike.\n"} |
| +{"case":"economics | -h","argv":["economics","-h"],"exit":2,"stdout":"","stderr":"usage: carlos economics bill --month <YYYY-MM> --total <usd> [--line Service=usd ...] [--basis account|whole] [--console <origin>]\n carlos economics backhaul [--period mtd|last|7d] [--console <origin>]\n\nRecords one month's AWS bill for the economics dashboard. Operator only: the\nconsole answers a non-operator's token with the same bare 404 it gives an\nunknown route (it must not be probeable), so \"not found\" here almost always\nmeans your account lacks the fleet-operator bit.\n\nA manual entry always overwrites whatever the console already holds for that\nmonth — a previous Cost Explorer pull or an earlier manual entry alike.\n"} |
| +{"case":"economics | bare","argv":["economics"],"exit":2,"stdout":"","stderr":"usage: carlos economics bill --month <YYYY-MM> --total <usd> [--line Service=usd ...] [--basis account|whole] [--console <origin>]\n carlos economics backhaul [--period mtd|last|7d] [--console <origin>]\n\nRecords one month's AWS bill for the economics dashboard. Operator only: the\nconsole answers a non-operator's token with the same bare 404 it gives an\nunknown route (it must not be probeable), so \"not found\" here almost always\nmeans your account lacks the fleet-operator bit.\n\nA manual entry always overwrites whatever the console already holds for that\nmonth — a previous Cost Explorer pull or an earlier manual entry alike.\n"} |
| +{"case":"economics | help","argv":["economics","help"],"exit":2,"stdout":"","stderr":"usage: carlos economics bill --month <YYYY-MM> --total <usd> [--line Service=usd ...] [--basis account|whole] [--console <origin>]\n carlos economics backhaul [--period mtd|last|7d] [--console <origin>]\n\nRecords one month's AWS bill for the economics dashboard. Operator only: the\nconsole answers a non-operator's token with the same bare 404 it gives an\nunknown route (it must not be probeable), so \"not found\" here almost always\nmeans your account lacks the fleet-operator bit.\n\nA manual entry always overwrites whatever the console already holds for that\nmonth — a previous Cost Explorer pull or an earlier manual entry alike.\n"} |
| +{"case":"economics | zz-unknown","argv":["economics","zz-unknown"],"exit":2,"stdout":"","stderr":"usage: carlos economics bill --month <YYYY-MM> --total <usd> [--line Service=usd ...] [--basis account|whole] [--console <origin>]\n carlos economics backhaul [--period mtd|last|7d] [--console <origin>]\n\nRecords one month's AWS bill for the economics dashboard. Operator only: the\nconsole answers a non-operator's token with the same bare 404 it gives an\nunknown route (it must not be probeable), so \"not found\" here almost always\nmeans your account lacks the fleet-operator bit.\n\nA manual entry always overwrites whatever the console already holds for that\nmonth — a previous Cost Explorer pull or an earlier manual entry alike.\n"} |
| {"case":"edge | --zz-unknown-flag","argv":["edge","--zz-unknown-flag"],"exit":2,"stdout":"","stderr":"flag provided but not defined: -zz-unknown-flag\nusage: carlos edge [flags]\nflags:\n --acme-cache <string> autocert certificate cache dir (default $CARLOS_DATA_DIR/acme) (default: $DIR/data/acme)\n --dev plain-HTTP mode: serve routes on --http with no TLS/ACME (local development only)\n --fallback <string> redirect requests for unknown hosts here, e.g. an apex marketing site; empty keeps the plain 404\n --http <string> HTTP listen address (ACME HTTP-01 challenge + redirect to https; in --dev mode, the only listener) (default: :80)\n --https <string> HTTPS listen address (default: :443)\n --registry <string> registry SQLite path (default $CARLOS_DATA_DIR/registry.db) (default: $DIR/data/registry.db)\n"} |
| {"case":"edge | -h","argv":["edge","-h"],"exit":0,"stdout":"","stderr":"usage: carlos edge [flags]\nflags:\n --acme-cache <string> autocert certificate cache dir (default $CARLOS_DATA_DIR/acme) (default: $DIR/data/acme)\n --dev plain-HTTP mode: serve routes on --http with no TLS/ACME (local development only)\n --fallback <string> redirect requests for unknown hosts here, e.g. an apex marketing site; empty keeps the plain 404\n --http <string> HTTP listen address (ACME HTTP-01 challenge + redirect to https; in --dev mode, the only listener) (default: :80)\n --https <string> HTTPS listen address (default: :443)\n --registry <string> registry SQLite path (default $CARLOS_DATA_DIR/registry.db) (default: $DIR/data/registry.db)\n"} |
| {"case":"email credentials create | --zz-unknown-flag","argv":["email","credentials","create","--zz-unknown-flag"],"exit":2,"stdout":"","stderr":"flag provided but not defined: -zz-unknown-flag\nusage: carlos email credentials create [flags]\nflags:\n --account <string> account (sqid or name) the app belongs to (default: your only account, or the configured/chosen one; ops in direct mode)\n --account-id <string> account sqid, matched as a sqid ONLY — supersedes --account; this is the flag an ambiguity error tells you to use\n --app, -a <string> app to mint a standalone credential for\n --console <string> console origin (API mode only; default: the only logged-in one)\n --destination, -d <name> use the named block from .carlos/config's destinations (default: CARLOS_DESTINATION, else the file's default or only one)\n --name <string> credential name (lowercase, digits, hyphens)\n --registry <string> registry database (resolves --account) (default: $DIR/data/registry.db)\n"} |