regression: CLI processing of globs
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 48/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- typescript
Hướng nghiên cứu
Bắt đầu từ điểm vào CLI tại bin/httpsnippet và tái hiện lỗi bằng cách sử dụng lệnh glob với src/fixtures/requests/*.json. Theo dõi cách các đối số được phân tích cú pháp và cách một đầu vào duy nhất được xử lý, sau đó thêm các bài kiểm thử CLI bao quát nhiều tệp được glob và xác minh rằng mỗi đầu vào tạo ra một đầu ra thay vì lỗi unknown-arguments.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
The prior version of HTTPSnippet allowed processing of globs on the CLI as follows:
httpsnippet ./*.json --target node --client request --output ./snippets
$ tree snippets/
snippets/
├── endpoint-1.js
├── endpoint-2.js
└── endpoint-3.js
I wasn't aware of this prior functionality (and there were no tests covering it) so it was missed.
Shouldn't be too terrible to add back. Let's have some tests for it this time, too.
Reproduction steps
run the following:
./bin/httpsnippet src/fixtures/requests/*.json --target node --client unirest --output ./example
And it returns this input:
Unknown arguments: src/fixtures/requests/application-json.json, src/fixtures/requests/cookies.json, src/fixtures/requests/custom-method.json, src/fixtures/requests/full.json, src/fixtures/requests/headers.json, src/fixtures/requests/https.json, src/fixtures/requests/jsonObj-multiline.json, src/fixtures/requests/jsonObj-null-value.json, src/fixtures/requests/multipart-data.json, src/fixtures/requests/multipart-file.json, src/fixtures/requests/multipart-form-data.json, src/fixtures/requests/multipart-form-data-no-params.json, src/fixtures/requests/nested.json, src/fixtures/requests/query.json, src/fixtures/requests/short.json, src/fixtures/requests/text-plain.json
When it should, instead, process all of those files.
- Ngôn ngữ chính
- TypeScript
- Star
- 1.2k
- Fork
- 242
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của Kong/httpsnippet
-
BUG: Http default clientId error Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 62/100
Kong/httpsnippet#356 ·
-
v3.0.9 Bug: Can't resolve 'fs' Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
Kong/httpsnippet#389 ·
-
Support for Oracle APEX Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
Kong/httpsnippet#383 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
Kong/httpsnippet#379 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 48/100
Kong/httpsnippet#370 ·
Tất cả issue của Kong/httpsnippet
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
bug v2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
modelcontextprotocol/inspector#2458 · 1 bình luận ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 75/100
railmapgen/rmp-gallery#4068 ·
-
Mend: dependency security vulnerability status: needs triage 🕵️♀️
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
carbon-design-system/ibm-products#9907 ·