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

Output for scripts and agents: empty stdout with exit 0, `--version` not machine-readable, agent detection changes nothing

Aperta
#105 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à
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
52/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
cli

Direzione di ricerca

Start by reproducing the listed cf commands and the CLAUDECODE=1 cf d1 list comparison, using the linked FINDINGS.md and findings/ as context. Trace the CLI entry points for list output, version output, and agent detection. Done means empty lists emit [], version output includes a bare semver, and agent detection produces compact JSON or the documented claim is removed.

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

Descrizione

cf version: 1.0.0-beta.5, macOS

Three things that break scripts and agents parsing cf's output:

  1. Empty stdout with exit 0. cf zero-trust access applications cas list prints nothing (0 bytes) and exits 0. Other lists print JSON ([] when empty), so cf ... | jq fails only on this one.
  2. cf --version isn't machine-readable. It prints 🍊☁️ cf · v1.0.0-beta.5 plus a box rule. There's no bare semver, which scripts need to pin or compare versions (--version --quiet, or cf version --json).
  3. Agent detection doesn't change the output. CLAUDECODE=1 cf d1 list | wc -c gives 4,293 bytes, byte-identical to running without it, still pretty-printed. The launch post describes condensed output for agents.

Expected:

  • every list prints JSON, [] when empty;
  • a bare version output;
  • compact JSON when an agent is detected, or remove the claim.

Found while evaluating cf for a dev workflow: https://github.com/joeblew999/cf-cli-test (FINDINGS.md, findings/).

Lingua principale
TypeScript
Stelle
916
Fork
53
Merge medio
19h 13m
PR unite (30g)
185

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.