You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs(status-page): correct the command names in the README and e2e tests
The status page group is registered as `status-page`, but the README and the
e2e suite still used `statuspage` with subcommands (`changes`,
`create-incident`, `create-timeline`, space-separated `migrate ...`) and a
`--id` flag that never existed. Anyone following them — a person or an agent
reading the docs — got "unknown command".
Corrected against the registrations in zz_generated_status_pages.go, and
documented the two things that trip up a first call: `change-create` takes
page-id as a positional that overrides the `--data` key, and the required
`updates` array has no flag, so every real call carries `--data` (or
`--data -` to read the body from stdin).
The e2e suite is behind the e2e build tag and skips without an app key, so
it was not failing CI, but it was broken in both directions: the positive
tests could not have passed, and the negative ones passed for the wrong
reason — asserting a validation error while actually getting "unknown
command". Two further defects surfaced while fixing them: the list helpers
unmarshalled a top-level array where the CLI prints an {"items":[...]}
envelope, and the header assertion named columns the reflective heuristic
never emits.
Two tests had no valid replacement verb and were retargeted rather than
deleted: `list` has no --id filter, so single-page lookup became
`status-page info`, and the invalid-id case moved to `change-active-list`.
The generated fences and the flashduty skill card were already correct and
are untouched.
--data '{"updates":[{"status":"investigating","description":"Team is investigating.","component_changes":[{"component_id":"01KC3GAZ6ZJE40H55GM31RPWZE","status":"degraded"}]}]}'
236
+
```
237
+
238
+
The whole body can also come from stdin with `--data -`:
0 commit comments