fix: invalid --region-id should name list-regions
- Ngôn ngữ chính
- TypeScript
- Star
- 41
- Fork
- 24
- Merge trung bình
- 1 ngày 3 giờ
- Pull request đã merge (30 ngày)
- 56
Mô tả
Create requires `--region-id` copied from docs or from `elastic cloud serverless regions list-regions`. A typo comes back as a raw 400.
On create (and hosted `create-deployment` if the body is a region error): append `elastic cloud serverless regions list-regions` (or the hosted equivalent). Do not preflight the region list in MVP.
Acceptance: create with `--region-id not-a-region` mentions `list-regions` on stderr. `--json` includes `error.hint`.
Hướng dẫn đóng góp
Hướng nghiên cứu
Start at the create command's handling of region errors and the hosted create-deployment path, using the issue's invalid --region-id example to locate both flows. Verify that human-readable stderr mentions list-regions and that --json exposes error.hint, without adding a region preflight.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- typescript
- Lĩnh vực
- api, cli
- Loại issue
- Lỗi
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Sôi nổi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức phù hợp với người mới
- 75/100