Skip to content

feat(terminal): man builtin and live watch - #2545

Merged
chaliy merged 1 commit into
mainfrom
claude/project-thread-vu3h37
Oct 7, 2026
Merged

chaliy merged 1 commit into
mainfrom
claude/project-thread-vu3h37

Conversation

@chaliy

@chaliy chaliy commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

What changed

  • New man CMD builtin: shows the command's --help text (or help CMD for shell builtins) as a manual page. Inside a terminal session it pages through less; elsewhere it prints. Unknown commands print No manual entry for X and exit 16, like man-db.
  • watch is live in a terminal session: it reruns the command on the alternate screen every -n seconds until Ctrl-C, or until output changes with -g. -t hides the header, -x runs argv directly. Outside a terminal it keeps the existing one-shot notice.

Why

Agents driving the terminal reach for man to learn flags and for watch to observe state; both previously failed.

Before / After

Before: man grep → man: command not found (127); watch -n1 date → one-shot notice, no refresh.
After: man grep → grep usage page in less, q returns to the prompt; watch -n1 date → refreshing header + output on the alternate screen, Ctrl-C restores the primary screen.

Risk

  • Low. terminal feature is off by default; non-terminal watch behavior unchanged apart from flag parsing errors now reported.

Checklist

  • Tests added or updated
  • Backward compatibility considered

Generated by Claude Code

man CMD shows the command's --help text (help CMD for shell builtins) as a
page, in less inside a terminal session. watch reruns its command on the
alternate screen until Ctrl-C, or until output changes with -g; outside a
terminal it keeps the one-shot notice.
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
bashkit d429c4d Commit Preview URL

Branch Preview URL
Oct 07 2026, 06:05 AM

@chaliy
chaliy merged commit a2e8f5b into main Oct 7, 2026
47 checks passed
@chaliy
chaliy deleted the claude/project-thread-vu3h37 branch October 7, 2026 06:23
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.

1 participant