CLI dispatch duplicates the command table and exposes a test hook

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

Maintainer thường phản hồi trong vòng 1 ngày

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

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
52/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
cli

Hướng nghiên cứu

Start with cli.run, the COMMANDS table, and the top-level parser; trace how dispatch, help, and the root-query compatibility path are handled. Then inspect the catalogs and datasets registry options and the guide. Done means one table drives dispatch and the guide, root-query compatibility warns with a stated removal version, and test-only registry options are hidden from help or replaced by an environment variable.

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

Mô tả

enhancement
  • cli.run dispatches with a hand-written if argv[0] == ... chain that repeats the COMMANDS table, and repeats (prog or "orfdata") after prog is already set. A new command must be added in both places. The top-level parser is built only to print help.
  • Any argument list starting with - falls through to the query parser for compatibility with orfdata --gene .... orfdata --verbose therefore reports an error from orfdata query. A deprecation timeline would let this go.
  • catalogs --registry and datasets --registry load arbitrary registry JSON. They exist for tests, but appear in user help.

Acceptance: one table drives dispatch and the guide. The root-query compatibility path warns, with a stated removal version. The test-only registry options are hidden from help or replaced with an environment variable.

Ngôn ngữ chính
Python
Star
1
Fork
1
Merge trung bình
10 giờ 11 phút
Pull request đã merge (30 ngày)
51

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

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 openvax/orfdata

Tất cả issue của openvax/orfdata

Issue tương tự

Thêm issue về Python

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.