project create: dynamic platform auto-complete from release registry
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 38/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- typescript
- Lĩnh vực
- cli
Hướng nghiên cứu
Bắt đầu tại src/commands/project/create.ts và đọc cuộc thảo luận PR được liên kết, sau đó kiểm tra phản hồi của registry bản phát hành tại URL được tham chiếu. Xác minh phép biến đổi slug đã nêu và xác định tính năng hoàn tất tương tác khác với đầu ra không tương tác như thế nào. Được xem là hoàn tất khi các nền tảng đến từ registry, các mã định danh hợp lệ được gợi ý trong chế độ tương tác, và dữ liệu đầu vào không hợp lệ hoặc bị thiếu tạo ra chế độ xem cây được nhóm như đã chỉ định.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Summary
sentry project create currently accepts a <platform> argument but provides no guidance on valid values beyond a static docs link (recently removed). Sourcing the platform list dynamically from the release registry would enable shell auto-complete in interactive sessions and a formatted tree-view in non-interactive ones.
Current behavior
The platform argument for sentry project create is a free-form string. The error message for invalid input lists available platforms but has no shell completion support. The platform list is hardcoded/static and not sourced from a live registry.
// src/commands/project/create.ts
"Run 'sentry project create <name> <platform>' with any valid Sentry platform identifier."
Gap
Users have no discoverability for valid platform identifiers at the CLI level. They must look up values externally, and the CLI cannot validate or suggest values at input time.
Options
Option A — Dynamic auto-complete + interactive tree-view
- Fetch platform slugs from
https://release-registry.services.sentry.io/sdksat runtime. - Derive platform identifiers by stripping the
sentry.prefix and converting.to-(matching the slugification logic in the Sentry monorepo). - In interactive shells: register completions so the user gets tab-completion suggestions.
- In non-interactive mode (e.g., CI, pipes): print a formatted tree-view grouped by language/category when an invalid or missing platform is supplied.
Option B — Cached static list baked at build time
- Snapshot the platform list from the registry at release time and embed it in the binary.
- Simpler implementation but goes stale between releases.
Recommendation
Option A. The release registry is the authoritative source and is already used by other Sentry tooling. Dynamic fetching keeps the list accurate without re-releases, and the interactive/non-interactive split gives the best UX in both contexts.
References
- Source comment: https://github.com/getsentry/cli/pull/237#discussion_r2879844335
- Release registry: https://release-registry.services.sentry.io/sdks
- Ngôn ngữ chính
- TypeScript
- Star
- 121
- Fork
- 14
- Merge trung bình
- 1 ngày 1 giờ
- Pull request đã merge (30 ngày)
- 92
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của getsentry/cli
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
jared
getsentry/cli#1633 · 1 bình luận · 2 reaction · 1 người được giao ·
-
jared
getsentry/cli#1632 · 1 bình luận · 2 reaction · 1 người được giao ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 65/100
Tất cả issue của getsentry/cli
Issue tương tự
-
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 88/100
motiondivision/motion#3849 ·
-
Add: S Play Event HD Đang mởcheck:passed streams:add
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
Improvement for contact popover Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
LiteLLM proxy response_cost (x-litellm-response-cost) is never applied to ChatModelOutput.cost Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
i-am-bee/beeai-framework#1697 · 1 reaction ·
-
Support bun dedupe Đang mởenhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
antfu/node-modules-inspector#214 ·