| index 20440d80b..55a3bb9dd 100644 |
| --- a/testdata/clireg-golden.jsonl |
| +++ b/testdata/clireg-golden.jsonl |
| @@ -52,8 +52,8 @@ |
| {"case":"analytics | -h","argv":["analytics","-h"],"exit":0,"stdout":"","stderr":"usage: carlos analytics --app <a> [flags]\n\nPage views, daily visitors, bytes served, top pages, top referers and named\nevents, counted at the edge. New accounts start with analytics on. Existing\naccounts keep their current setting.\n\n--range is today, 7d or 30d; multi-day visitor totals are daily visitors\nsummed. The same view is the Analytics tab on the app's dashboard.\nflags:\n --account <string> account (sqid or name) the app belongs to (default: your only account, or the configured/chosen one)\n --account-id <string> account sqid, matched as a sqid ONLY — supersedes --account\n --app, -a <string> app whose analytics to read\n --console <string> console to read 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 --range <string> window: today | 7d | 30d (default: today)\n --set-count <string> set analytics counting: edge | off\n --set-door <string> set door: on | off\n"} |
| {"case":"apps build-probe | --zz-unknown-flag","argv":["apps","build-probe","--zz-unknown-flag"],"exit":2,"stdout":"","stderr":"flag provided but not defined: -zz-unknown-flag\nusage: carlos apps build-probe --app <name> </path|-> [--account <sqid|name>] [--account-id <sqid>] [--console <origin>]\n\n </path> an absolute path, no query, whose response body names the running\n build — \"/healthz\" serving \"ok abc1234\" is the shape. carlos deploy\n polls it instead of the X-Carlos-Version header, which reports the\n release adoption INTENDED rather than the build actually serving.\n - clear the probe, back to watching the header.\nflags:\n --account <string> account (sqid or name) the app belongs to (default: your only account, or the configured/chosen one)\n --account-id <string> account sqid, matched as a sqid ONLY — supersedes --account\n --app, -a <string> app whose build probe to set\n --console <string> console to act 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"} |
| {"case":"apps build-probe | -h","argv":["apps","build-probe","-h"],"exit":0,"stdout":"","stderr":"usage: carlos apps build-probe --app <name> </path|-> [--account <sqid|name>] [--account-id <sqid>] [--console <origin>]\n\n </path> an absolute path, no query, whose response body names the running\n build — \"/healthz\" serving \"ok abc1234\" is the shape. carlos deploy\n polls it instead of the X-Carlos-Version header, which reports the\n release adoption INTENDED rather than the build actually serving.\n - clear the probe, back to watching the header.\nflags:\n --account <string> account (sqid or name) the app belongs to (default: your only account, or the configured/chosen one)\n --account-id <string> account sqid, matched as a sqid ONLY — supersedes --account\n --app, -a <string> app whose build probe to set\n --console <string> console to act 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"} |
| -{"case":"apps create | --zz-unknown-flag","argv":["apps","create","--zz-unknown-flag"],"exit":2,"stdout":"","stderr":"flag provided but not defined: -zz-unknown-flag\nusage: carlos apps create [flags]\nflags:\n --account <string> account (sqid or name) to claim the app in (default: your only account, or the configured/chosen one)\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 --analytics turn analytics on for the new app (default: follow the account)\n --app, -a <string> app name to claim (lowercase letters, digits, dashes)\n --build-probe <path> path whose response body carries the running build, e.g. \"/healthz\" — carlos deploy polls it instead of the X-Carlos-Version header, which the edge stamps from the route row and which therefore lies until the process restarts; the build must appear as a whole whitespace-delimited word in the body, e.g. \"ok abc1234\"\n --console <string> console to create it through (default: the only logged-in one)\n --control-plane mark the app as the control plane: it refuses trash, purge, rename and transfer, and refuses a service credential's promote (owner only)\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 --ha COPY-PENDING:cli.apps_create.ha_flag\n --no-analytics turn analytics off for the new app (default: follow the account)\n --place <string> place the app on a customer fleet at create time — \"\" (default) or \"fleet/<name>\"\n --region <string> region this app's instances start in (default: the region nearest you)\n"} |
| -{"case":"apps create | -h","argv":["apps","create","-h"],"exit":0,"stdout":"","stderr":"usage: carlos apps create [flags]\nflags:\n --account <string> account (sqid or name) to claim the app in (default: your only account, or the configured/chosen one)\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 --analytics turn analytics on for the new app (default: follow the account)\n --app, -a <string> app name to claim (lowercase letters, digits, dashes)\n --build-probe <path> path whose response body carries the running build, e.g. \"/healthz\" — carlos deploy polls it instead of the X-Carlos-Version header, which the edge stamps from the route row and which therefore lies until the process restarts; the build must appear as a whole whitespace-delimited word in the body, e.g. \"ok abc1234\"\n --console <string> console to create it through (default: the only logged-in one)\n --control-plane mark the app as the control plane: it refuses trash, purge, rename and transfer, and refuses a service credential's promote (owner only)\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 --ha COPY-PENDING:cli.apps_create.ha_flag\n --no-analytics turn analytics off for the new app (default: follow the account)\n --place <string> place the app on a customer fleet at create time — \"\" (default) or \"fleet/<name>\"\n --region <string> region this app's instances start in (default: the region nearest you)\n"} |
| +{"case":"apps create | --zz-unknown-flag","argv":["apps","create","--zz-unknown-flag"],"exit":2,"stdout":"","stderr":"flag provided but not defined: -zz-unknown-flag\nusage: carlos apps create [flags]\nflags:\n --account <string> account (sqid or name) to claim the app in (default: your only account, or the configured/chosen one)\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 --analytics turn analytics on for the new app (default: follow the account)\n --app, -a <string> app name to claim (lowercase letters, digits, dashes)\n --build-probe <path> path whose response body carries the running build, e.g. \"/healthz\" — carlos deploy polls it instead of the X-Carlos-Version header, which the edge stamps from the route row and which therefore lies until the process restarts; the build must appear as a whole whitespace-delimited word in the body, e.g. \"ok abc1234\"\n --console <string> console to create it through (default: the only logged-in one)\n --control-plane mark the app as the control plane: it refuses trash, purge, rename and transfer, and refuses a service credential's promote (owner only)\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 --ha turn on high availability (needs --region; only for accounts that have it)\n --no-analytics turn analytics off for the new app (default: follow the account)\n --place <string> place the app on a customer fleet at create time — \"\" (default) or \"fleet/<name>\"\n --region <string> region this app's instances start in (default: the region nearest you)\n"} |
| +{"case":"apps create | -h","argv":["apps","create","-h"],"exit":0,"stdout":"","stderr":"usage: carlos apps create [flags]\nflags:\n --account <string> account (sqid or name) to claim the app in (default: your only account, or the configured/chosen one)\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 --analytics turn analytics on for the new app (default: follow the account)\n --app, -a <string> app name to claim (lowercase letters, digits, dashes)\n --build-probe <path> path whose response body carries the running build, e.g. \"/healthz\" — carlos deploy polls it instead of the X-Carlos-Version header, which the edge stamps from the route row and which therefore lies until the process restarts; the build must appear as a whole whitespace-delimited word in the body, e.g. \"ok abc1234\"\n --console <string> console to create it through (default: the only logged-in one)\n --control-plane mark the app as the control plane: it refuses trash, purge, rename and transfer, and refuses a service credential's promote (owner only)\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 --ha turn on high availability (needs --region; only for accounts that have it)\n --no-analytics turn analytics off for the new app (default: follow the account)\n --place <string> place the app on a customer fleet at create time — \"\" (default) or \"fleet/<name>\"\n --region <string> region this app's instances start in (default: the region nearest you)\n"} |
| {"case":"apps delete | --zz-unknown-flag","argv":["apps","delete","--zz-unknown-flag"],"exit":2,"stdout":"","stderr":"flag provided but not defined: -zz-unknown-flag\nusage: carlos apps delete [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 --console <string> console origin to delete through (signed-in 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 --registry <string> registry database (resolves --account) (default: $DIR/data/registry.db)\n"} |
| {"case":"apps delete | -h","argv":["apps","delete","-h"],"exit":0,"stdout":"","stderr":"usage: carlos apps delete [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 --console <string> console origin to delete through (signed-in 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 --registry <string> registry database (resolves --account) (default: $DIR/data/registry.db)\n"} |
| {"case":"apps keep | --zz-unknown-flag","argv":["apps","keep","--zz-unknown-flag"],"exit":2,"stdout":"","stderr":"flag provided but not defined: -zz-unknown-flag\nusage: carlos apps keep [flags]\nflags:\n --account <string> account (sqid or name) the app is in (default: your only account, or the configured/chosen one)\n --account-id <string> account sqid, matched as a sqid only; supersedes --account\n --app, -a <string> app name\n --console <string> console to use (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"} |