| index bf3caaf00..cb17159e2 100644 |
| --- a/copy-review/strings.json |
| +++ b/copy-review/strings.json |
| @@ -1,114 +1,274 @@ |
| [ |
| { |
| - "id": "FD-C1", |
| - "section": "app", |
| - "label": "app name taken", |
| - "text": "app {app} already exists. If it is in the Trash, restore it before deploying.", |
| - "context": "Shown when a second lookup finds that the app name is already in use, including in the Trash. Deploy stops without restoring it." |
| + "id": "cli.subdomain.short", |
| + "section": "CLI help", |
| + "label": "subdomain command", |
| + "text": "give an account a readable name in its app addresses", |
| + "context": "One-line help for `carlos accounts subdomain`, listed under `carlos accounts`. Operators only.", |
| + "notes": "" |
| }, |
| { |
| - "id": "FD-C2", |
| - "section": "app", |
| - "label": "app created", |
| - "text": "created app {app} in account {account}", |
| - "context": "Printed after a new app is created. The next line reports its region." |
| + "id": "cli.subdomain.set.short", |
| + "section": "CLI help", |
| + "label": "set", |
| + "text": "give the account a subdomain", |
| + "context": "One-line help for `carlos accounts subdomain set`.", |
| + "notes": "" |
| }, |
| { |
| - "id": "FD-C3", |
| - "section": "app", |
| - "label": "app list failed", |
| - "text": "could not check whether {app} exists: {error}", |
| - "context": "Shown when deploy cannot verify that an app name is unused. It stops before trying to create the app." |
| + "id": "cli.subdomain.remove.short", |
| + "section": "CLI help", |
| + "label": "remove", |
| + "text": "take the account's subdomain away", |
| + "context": "One-line help for `carlos accounts subdomain remove`.", |
| + "notes": "" |
| }, |
| { |
| - "id": "FD-C4", |
| - "section": "instance", |
| - "label": "channel required", |
| - "text": "no release channel was chosen, so no instance was created.", |
| - "context": "Shown if deploy has no channel to use for the first instance. It stops before creating the instance." |
| + "id": "cli.subdomain.show.short", |
| + "section": "CLI help", |
| + "label": "show", |
| + "text": "show the account's subdomain", |
| + "context": "One-line help for `carlos accounts subdomain show`.", |
| + "notes": "" |
| }, |
| { |
| - "id": "FD-C5", |
| - "section": "instance", |
| - "label": "no domain", |
| - "text": "the console did not provide an instance domain for {app}. No instance was created.", |
| - "context": "Shown when the console returns no domain for the default instance address. The app may already have been created." |
| + "id": "cli.subdomain.inventory.short", |
| + "section": "CLI help", |
| + "label": "inventory", |
| + "text": "list unused labels under the apps domain", |
| + "context": "One-line help for `carlos accounts subdomain inventory`, run before assigning names on a deployment.", |
| + "notes": "" |
| }, |
| { |
| - "id": "FD-C6", |
| - "section": "instance", |
| - "label": "instance created", |
| - "text": "created instance {host} on channel {channel}", |
| - "context": "Printed after the first instance is created. It names the address and release channel." |
| + "id": "cli.subdomain.flag.account", |
| + "section": "CLI help", |
| + "label": "--account flag", |
| + "text": "account sqid to change or show", |
| + "context": "Help text for the --account flag on set, remove and show.", |
| + "notes": "" |
| }, |
| { |
| - "id": "FD-C7", |
| - "section": "env", |
| - "label": "env not a pair", |
| - "text": "env argument {n} is not a KEY=value pair", |
| - "context": "Shown before contacting the console when a --env argument is missing a name or equals sign. Only its position is printed so a secret cannot leak into the error." |
| + "id": "cli.subdomain.set.done", |
| + "section": "CLI output", |
| + "label": "set: done", |
| + "text": "account %s has the subdomain %s. its apps answer at <app>.%s, and at their old addresses too", |
| + "context": "Printed after an operator gives an account a subdomain. %s: account sqid, name, name.apps-domain.", |
| + "notes": "lower case, no em dashes" |
| }, |
| { |
| - "id": "FD-C8", |
| - "section": "env", |
| - "label": "env bad name", |
| - "text": "env argument {n} has an invalid variable name. Use letters, digits and underscores, starting with a letter or underscore.", |
| - "context": "Shown before contacting the console for an invalid --env variable name. The argument itself is not printed." |
| + "id": "cli.subdomain.set.serving", |
| + "section": "CLI output", |
| + "label": "set: serving", |
| + "text": "checked: %s answers over https", |
| + "context": "Printed after set once one app answers under the name with a valid certificate. %s is an app's new address.", |
| + "notes": "" |
| }, |
| { |
| - "id": "FD-C9", |
| - "section": "env", |
| - "label": "env bad value", |
| - "text": "env argument {n} contains a backslash, quote, newline or NUL in its value.", |
| - "context": "Shown before contacting the console when an environment value cannot be delivered to an instance. The value is not printed." |
| + "id": "cli.subdomain.set.issuing", |
| + "section": "CLI output", |
| + "label": "set: still issuing", |
| + "text": "the certificate for *.%s is still being issued. addresses under it should work in a minute or two", |
| + "context": "Printed when set stops waiting before the certificate is ready. Not an error; exit code is 0.", |
| + "notes": "" |
| }, |
| { |
| - "id": "FD-C10", |
| - "section": "env", |
| - "label": "watched host has no route", |
| - "text": "cannot determine the environment bundle for {host}. No environment variables were changed.", |
| - "context": "Shown when deploy cannot match a selected hostname to an environment bundle. It stops before writing the variables." |
| + "id": "cli.subdomain.remove.done", |
| + "section": "CLI output", |
| + "label": "remove: done", |
| + "text": "account %s no longer has a subdomain. its apps answer only at their %s addresses", |
| + "context": "Printed after remove. %s: account sqid, then the sqid label.", |
| + "notes": "" |
| }, |
| { |
| - "id": "FD-C11", |
| - "section": "env", |
| - "label": "mixed bundles", |
| - "text": "the selected instances use different environment bundles. Select one with --host. No environment variables were changed.", |
| - "context": "Shown when --env would affect instances using different environment bundles. The user can narrow the deploy with --host." |
| + "id": "cli.subdomain.show.none", |
| + "section": "CLI output", |
| + "label": "show: none", |
| + "text": "account %s has no subdomain", |
| + "context": "Printed by show when the account has none.", |
| + "notes": "" |
| }, |
| { |
| - "id": "FD-C12", |
| - "section": "env", |
| - "label": "routes but none watched", |
| - "text": "no instance serves the selected channel. No environment variables were changed.", |
| - "context": "Shown when --env is supplied but no instance serves the chosen channel. It stops before writing variables." |
| + "id": "cli.subdomain.show.name", |
| + "section": "CLI output", |
| + "label": "show: has one", |
| + "text": "account %s has the subdomain %s", |
| + "context": "Printed by show. %s: account sqid, name.", |
| + "notes": "" |
| }, |
| { |
| - "id": "FD-C13", |
| - "section": "Deploy help", |
| - "label": "Environment flag help", |
| - "text": "set an ordinary environment variable before shipping; repeat for more variables", |
| - "context": "Shown beside --env in deploy help. The value has the form KEY=value." |
| + "id": "cli.subdomain.show.foreign", |
| + "section": "CLI output", |
| + "label": "show: foreign hosts", |
| + "text": "these hosts under it belong to other accounts:", |
| + "context": "Heading above a list printed by show, only when something another account made (before the rule, or by a direct bucket write) sits under the name. The operator should detach them.", |
| + "notes": "" |
| }, |
| { |
| - "id": "FD-C14", |
| - "section": "Deploy help", |
| - "label": "Unsupported artifact kind", |
| - "text": "deploy supports binary or static artifacts", |
| - "context": "Shown before setup when --kind is neither binary nor static." |
| + "id": "cli.subdomain.inventory.heading", |
| + "section": "CLI output", |
| + "label": "inventory: heading", |
| + "text": "unused labels under %s. give one to an account to add hosts under it:", |
| + "context": "Heading of the inventory list; each line after it is a label, its account and its hosts. %s is the apps domain.", |
| + "notes": "" |
| }, |
| { |
| - "id": "FD-C15", |
| - "section": "Deploy help", |
| - "label": "Wrong artifact shape", |
| - "text": "pass a file for a binary deploy, or one directory for a static deploy", |
| - "context": "Shown before setup when the artifact does not match the selected kind." |
| + "id": "cli.subdomain.inventory.empty", |
| + "section": "CLI output", |
| + "label": "inventory: empty", |
| + "text": "every label under %s is an account sqid or an assigned subdomain", |
| + "context": "Printed by inventory when there is nothing to assign.", |
| + "notes": "" |
| }, |
| { |
| - "id": "FD-D1", |
| - "section": "Documentation", |
| - "label": "First deploy documentation", |
| - "text": "`carlos deploy --app hello --env PORT=8080 ./hello` creates the app and its first instance if they are missing, then deploys your built binary and waits for it to serve. Existing instances stay unchanged. Use `--region` to choose a new app\u2019s region; for an existing app, it checks the region.\n\nRepeat `--env KEY=value` to set ordinary variables before shipping. They go into the environment bundle shared by the selected instances. If those instances use different bundles, select one with `--host`. Values are not printed, but remain in shell history; use `carlos secrets set` for secrets.\n\nThe console must support instances and provide a platform domain. Trashed apps are not restored. If setup fails partway through, the app, instance or variables already created remain. Fix the reported error and retry.", |
| - "context": "New text in the carlos deploy documentation, beside the first command example." |
| + "id": "refuse.shape", |
| + "section": "Refusals: setting a name", |
| + "label": "bad shape", |
| + "text": "%q cannot be a subdomain. use lowercase letters, digits and hyphens, up to 63 characters, and do not start or end with a hyphen", |
| + "context": "The operator typed something that is not a single DNS label.", |
| + "notes": "" |
| + }, |
| + { |
| + "id": "refuse.sqid_shaped", |
| + "section": "Refusals: setting a name", |
| + "label": "looks like a sqid", |
| + "text": "%q could be another account's own label later. pick a name with 7 or more letters, or with i, l, o, a digit or a hyphen in it", |
| + "context": "Short names made only of the letters sqids use could collide with a future account's built-in label.", |
| + "notes": "" |
| + }, |
| + { |
| + "id": "refuse.reserved", |
| + "section": "Refusals: setting a name", |
| + "label": "reserved", |
| + "text": "%q is kept for the platform. pick another name", |
| + "context": "dev, edge, www and similar.", |
| + "notes": "" |
| + }, |
| + { |
| + "id": "refuse.held", |
| + "section": "Refusals: setting a name", |
| + "label": "taken", |
| + "text": "%q is taken. pick another name", |
| + "context": "Another account has this name, or it is an account's sqid. Says nothing about which account.", |
| + "notes": "" |
| + }, |
| + { |
| + "id": "refuse.infrastructure", |
| + "section": "Refusals: setting a name", |
| + "label": "over infrastructure", |
| + "text": "%q would conflict with an address this deployment uses. pick another name", |
| + "context": "The name collides with the console, the tunnel, the steering host or an operator deny entry.", |
| + "notes": "" |
| + }, |
| + { |
| + "id": "refuse.occupied", |
| + "section": "Refusals: setting a name", |
| + "label": "occupied", |
| + "text": "other accounts already have hosts under %s:", |
| + "context": "Heading above a list of hosts that block the name.", |
| + "notes": "" |
| + }, |
| + { |
| + "id": "refuse.has_one", |
| + "section": "Refusals: setting a name", |
| + "label": "already has one", |
| + "text": "account %s already has the subdomain %s. remove it first to change it", |
| + "context": "An account can hold one name.", |
| + "notes": "" |
| + }, |
| + { |
| + "id": "refuse.unreadable", |
| + "section": "Refusals: setting a name", |
| + "label": "could not check", |
| + "text": "could not check which accounts hold names under %s. nothing changed. try again", |
| + "context": "A read failed, so the console refuses rather than guess.", |
| + "notes": "" |
| + }, |
| + { |
| + "id": "refuse.rolled_back", |
| + "section": "Refusals: setting a name", |
| + "label": "rolled back", |
| + "text": "something else appeared under %s while it was being set. the subdomain was not set:", |
| + "context": "The re-check after writing found a conflict and undid the change. A list follows.", |
| + "notes": "" |
| + }, |
| + { |
| + "id": "refuse.rollback_failed", |
| + "section": "Refusals: setting a name", |
| + "label": "rollback failed", |
| + "text": "could not undo the change, so %s is still held by account %s. run `carlos accounts subdomain remove --account %s`", |
| + "context": "Rare: undoing the change itself failed.", |
| + "notes": "" |
| + }, |
| + { |
| + "id": "refuse.remove_blocked", |
| + "section": "Refusals: setting a name", |
| + "label": "remove blocked", |
| + "text": "account %s still has hosts under %s. detach them first:", |
| + "context": "Remove refused while the account has hosts it added by hand under the name. A list follows.", |
| + "notes": "" |
| + }, |
| + { |
| + "id": "refuse.not_operator", |
| + "section": "Refusals: setting a name", |
| + "label": "not an operator", |
| + "text": "only a platform operator can change subdomains", |
| + "context": "Anyone else who runs the command.", |
| + "notes": "" |
| + }, |
| + { |
| + "id": "refuse.host_claims", |
| + "section": "Refusals: setting a name", |
| + "label": "host claims on", |
| + "text": "subdomains cannot be changed while host claims are on", |
| + "context": "Only on a deployment running the shelved host-claim mode.", |
| + "notes": "" |
| + }, |
| + { |
| + "id": "refuse.create.unassigned", |
| + "section": "Refusals: adding a host", |
| + "label": "label not assigned", |
| + "text": "nothing can be added under %s until an account has that subdomain. ask a platform operator to assign it to this account", |
| + "context": "Shown when someone attaches a domain, creates an instance or turns on a catch-all at an address two labels under the apps domain, under a label nobody holds. %s is label.apps-domain.", |
| + "notes": "" |
| + }, |
| + { |
| + "id": "refuse.create.other_account", |
| + "section": "Refusals: adding a host", |
| + "label": "label is another account's", |
| + "text": "%s belongs to another account", |
| + "context": "Same doors, when the label is another account's sqid or subdomain. %s is label.apps-domain.", |
| + "notes": "" |
| + }, |
| + { |
| + "id": "refuse.create.unreadable", |
| + "section": "Refusals: adding a host", |
| + "label": "could not check", |
| + "text": "could not check which account holds %s. try again", |
| + "context": "Same doors, when the read that decides ownership failed.", |
| + "notes": "" |
| + }, |
| + { |
| + "id": "console.settings.subdomain.label", |
| + "section": "Console", |
| + "label": "settings row label", |
| + "text": "Subdomain", |
| + "context": "Row label in the Identity table on the account settings page, next to the account's sqid. Read-only for everyone.", |
| + "notes": "" |
| + }, |
| + { |
| + "id": "console.settings.subdomain.none", |
| + "section": "Console", |
| + "label": "settings: none", |
| + "text": "None", |
| + "context": "Value in that row when the account has no subdomain.", |
| + "notes": "" |
| + }, |
| + { |
| + "id": "console.app.sqid_url.label", |
| + "section": "Console", |
| + "label": "permanent address label", |
| + "text": "Permanent address", |
| + "context": "Shown on app and instance pages under the app's main link when the account has a subdomain. Labels the sqid URL, which keeps working and never changes.", |
| + "notes": "" |
| } |
| -] |
| +] |
| \ No newline at end of file |