Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Standardize logging between handwritten and generated commands

Aperta
#53 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
cli

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.
Lingua principale
TypeScript
Stelle
960
Fork
62
Merge medio
23h 17m
PR unite (30g)
220

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di cloudflare/cf

Tutte le issue di cloudflare/cf

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.