| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
perf(api): stream --input file/stdin as request body (align with gh) - readInput now returns *os.File for file input and io.NopCloser(stdin) for stdin, instead of buffering the entire content into memory via os.ReadFile/bytes.NewReader. - run() defers Close on the returned reader when it implements io.Closer. - Mirrors GitHub CLI's openUserFile (pkg/cmd/api/api.go) which streams the file directly as the HTTP request body. - Add tests: TestReadInputEmptyReturnsNil, TestReadInputStreamsFile. | 3 个月前 | |
perf(api): stream --input file/stdin as request body (align with gh) - readInput now returns *os.File for file input and io.NopCloser(stdin) for stdin, instead of buffering the entire content into memory via os.ReadFile/bytes.NewReader. - run() defers Close on the returned reader when it implements io.Closer. - Mirrors GitHub CLI's openUserFile (pkg/cmd/api/api.go) which streams the file directly as the HTTP request body. - Add tests: TestReadInputEmptyReturnsNil, TestReadInputStreamsFile. | 3 个月前 |