Skip to content

fix: make cf --version machine-readable - #149

Merged
penalosa merged 8 commits into
mainfrom
investigate/issue-105
Oct 2, 2026
Merged

penalosa merged 8 commits into
mainfrom
investigate/issue-105

Conversation

@penalosa

@penalosa penalosa commented Sep 30, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Print the plain version to stdout for cf --version and -v.
  • Keep the branded banner and update notice on stderr in interactive terminals; quiet mode suppresses the banner.
  • Ignore generated .cloudflare/ directories so repository checks skip local state.
  • Describe the current banner behavior in code comments.

Addresses #105, item 2.

Checks

  • pnpm check
  • pnpm test src/__tests__/update-check-runtime.test.ts (9 passed)

@pkg-pr-new

pkg-pr-new Bot commented Sep 30, 2026 •

Copy link
Copy Markdown
npm i https://pkg.pr.new/cf@149

commit: b7985f4

@ask-bonk

ask-bonk Bot commented Sep 30, 2026

Copy link
Copy Markdown
Contributor

LGTM!

github run

@github-actions

github-actions Bot commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

cf --help startup

mean stddev min max
PR 324.6 ms 6.3 ms 317.9 ms 340.9 ms
base 385.6 ms 3.7 ms 379.4 ms 392.8 ms

Δ (PR vs base): ↓ -61.0 ms (-15.8%)

Measured with hyperfine on ubuntu-latest (3 warmup runs, 20 timed runs). CI numbers carry ±a few ms of runner jitter; treat small deltas as noise.

@ask-bonk

ask-bonk Bot commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

LGTM

github run

@penalosa
penalosa marked this pull request as ready for review October 2, 2026 11:41

@petebacondarwin petebacondarwin left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Marginal non-NITs but probably worth requesting changes.

Comment thread packages/cli/src/lib/ui/banner.ts
Comment thread packages/cli/src/index.ts Outdated
Comment thread .gitignore
Comment thread AGENTS.md Outdated
Co-authored-by: Pete Bacon Darwin <pbacondarwin@cloudflare.com>
@ask-bonk

ask-bonk Bot commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

LGTM

github run

Co-authored-by: Pete Bacon Darwin <pbacondarwin@cloudflare.com>
@ask-bonk

ask-bonk Bot commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

LGTM

github run

@ask-bonk

ask-bonk Bot commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

LGTM

github run

@penalosa
penalosa added this pull request to the merge queue Oct 2, 2026
Merged via the queue into main with commit f16cc97 Oct 2, 2026
9 checks passed
@penalosa
penalosa deleted the investigate/issue-105 branch October 2, 2026 18:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants