Consider using an external argument parser

Đang mở
#97 5 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
35/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
rust
Lĩnh vực
cli

Hướng nghiên cứu

Bắt đầu bằng việc xem xét việc phân tích cú pháp đối số thủ công trong lệnh diff và lệnh cmp WIP, sau đó đọc uutils/coreutils#4254 và tài liệu của uutils-args. Đánh giá liệu uutils-args có thể tái tạo các đối số của GNU diffutils hay không; để hoàn thành sẽ cần một đánh giá rõ ràng về khả năng tương thích cùng mọi phản hồi hoặc đóng góp phát sinh.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Argument parsing in the diff command (and in the WIP cmp command) is implemented manually. The rationale for not using a general-purpose parser like clap is that it does not offer the flexibility we need to replicate the GNU diffutils arguments. We'd lose in compatibility what we would gain in code simplicity.

While researching how it's done in uutils/coreutils, I came across uutils/coreutils#4254, which looks especially relevant. Perhaps we should consider giving uutils-args a test run to understand if it fits the needs of the diffutils applications, and provide constructive feedback and contributions in case it doesn't.

There are currently only two CLI applications (out of a total of 4) to migrate, so the advantage over uutils/coreutils is that the effort would be rather limited.

Ngôn ngữ chính
Rust
Star
276
Fork
39
Merge trung bình
3 giờ 27 phút
Pull request đã merge (30 ngày)
3

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của uutils/diffutils

Tất cả issue của uutils/diffutils

Issue tương tự

Thêm issue về Rust

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.