elastic / elastic/cli

fix: invalid --region-id should name list-regions

未關閉
#653 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
cloud enhancement
主要語言
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

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。