Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

project create: dynamic platform auto-complete from release registry

Đang mở
#345 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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/sdks at 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

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

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của getsentry/cli

Tất cả issue của getsentry/cli

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.