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

Standardize logging between handwritten and generated commands

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

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript
Lĩnh vực
cli

Hướng nghiên cứu

Start by locating the handwritten and generated command entry points and their current output helpers. Compare how normal, quiet, JSON, and NDJSON modes route messages, then identify the snapshot-test structure needed for success, warning, failure, cancellation, and non-interactive paths. Done means both command types share equivalent output structure without decorative text in machine-readable modes.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

enhancement priority: p2

Problem

Handwritten commands use a mixture of raw console output and structured UI helpers, while generated commands follow a more consistent lifecycle. The result is inconsistent indentation, progress states, error presentation, quiet-mode behavior, and stream selection.

Expected behavior

Define shared output primitives that both handwritten and generated commands can use for:

  • sections and progress lifecycle;
  • informational messages, warnings, and errors;
  • copy-friendly commands and code blocks;
  • normal, quiet, JSON, and NDJSON modes;
  • consistent stdout and stderr routing.

Acceptance criteria

  • Representative handwritten and generated commands produce the same output structure for equivalent operations.
  • --quiet suppresses nonessential status output.
  • JSON and NDJSON output contain no decorative terminal text.
  • Code snippets remain directly copyable.
  • Snapshot coverage includes success, warning, failure, cancellation, and non-interactive paths.
Ngôn ngữ chính
TypeScript
Star
960
Fork
62
Merge trung bình
17 giờ 15 phút
Pull request đã merge (30 ngày)
194

Chuẩn bị môi trường

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 cloudflare/cf

Tất cả issue của cloudflare/cf

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.