Skip to content

fix(cli): --json 无命令只写 stderr,发布 0.3.1 - #7

Merged
UltimeLam merged 1 commit into
mainfrom
release/0.3.1
Nov 15, 2026
Merged

UltimeLam merged 1 commit into
mainfrom
release/0.3.1

Conversation

@UltimeLam

Copy link
Copy Markdown
Contributor

Summary

  • --json 且无命令时不再向 stdout 写 usage,改为只向 stderr 输出 { error }。
  • 补回归测试,版本升到 0.3.1。

Test plan

  • pnpm test:41 项通过
  • pnpm check
  • pnpm build

无命令分支此前无条件把 usage 写到 stdout,--json 调用方拿到的不是 JSON。
改为 json 时走 reportError,只写 stderr,并补回归测试。
@UltimeLam
UltimeLam merged commit f2cf90d into main Nov 15, 2026
2 checks passed
@UltimeLam
UltimeLam deleted the release/0.3.1 branch November 15, 2026 13:47
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