carlos / platform Public

accounts: lowercase the -name in the production-flag e2e and README

TestAccountsMigrateDoesNotCopyTheProductionFlag ran `accounts create -name
Kass`, which the account-name validation (lowercase a-z, 0-9) now refuses —
the two branches merged independently and main's suite went red where they
met. Same stale casing in README's three `accounts create` examples.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Paul Campbell 7e77c53a8918eb128102c787ba03cdfe18ddd48b parent 088358d
2 files changed, +6 −4
  • README.md +5 −3
  • e2e_test.go +1 −1
diff --git a/README.md b/README.md
index c21cef5ab..a4ccc69a5 100644
--- a/README.md
+++ b/README.md
@@ -76,9 +76,11 @@ Clicking it while signed in as that address creates the membership.
defaulting to `ops`:
carlos auth login -console https://platform.carlosframework.com
- carlos accounts create -name Kass # you own it
- carlos accounts create -name Kass -owner paul@keymail.dev # headless
+ carlos accounts create -name kass # you own it
+ carlos accounts create -name kass -owner paul@keymail.dev # headless
carlos accounts list # sqid, name, app count
+ carlos apps create -account kass -app blog # claim the name (rate limited;
+ # the console's New app form is not)
carlos ship -account kass -app blog ...
carlos add -account kass -app blog blog.example.com
@@ -135,7 +137,7 @@ long-lived token sitting on a box is a standing credential nobody is watching.
Name the owner outright instead — it needs no identity of its own and takes
precedence over any logged-in one:
- carlos accounts create -name Kass -owner paul@keymail.dev
+ carlos accounts create -name kass -owner paul@keymail.dev
Either way an owner is named. `carlos accounts create` **refuses** with no
login and no `-owner`: an account with no owner materializes into the console
diff --git a/e2e_test.go b/e2e_test.go
index 4e992452a..8c8f4f4d9 100644
--- a/e2e_test.go
+++ b/e2e_test.go
@@ -1083,7 +1083,7 @@ func TestAccountsMigrateDoesNotCopyTheProductionFlag(t *testing.T) {
t.Fatal(err)
}
- out, err := run("accounts", "create", "-registry", regPath, "-name", "Kass", "-owner", "paul@keymail.dev")
+ out, err := run("accounts", "create", "-registry", regPath, "-name", "kass", "-owner", "paul@keymail.dev")
if err != nil {
t.Fatalf("accounts create: %v\n%s", err, out)
}