fix: invalid --region-id should name list-regions
- 主要语言
- TypeScript
- 星标
- 41
- 派生
- 24
- 平均合并
- 1 天 3 小时
- 30 天内合并 PR
- 56
描述
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`.
贡献指南
调研方向
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.
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- typescript
- 领域
- api, cli
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 活跃
- 描述清晰度
- 描述清楚
- 新手友好度
- 75/100