Make export/import process simpler for CLI
@ggainey đang làm issue này rồi.
Từ ngày 25/1/2023.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
Users should be able to export the repositories they want in one command and shouldn't need to know the difference between 'export' and 'exporter'. I propose we remove the 'export' commands and re-brand them under 'exporter'. Exporter should get two new subcommands: 'export' and 'history'.
The 'history' command would get three subcommands from the original 'export' command: 'list', 'show', and 'delete'. Export objects are basically history records of previous exports and thus would fit nicely under this context. If a user doesn't specify a subcommand when using 'history' the default behaviour should be 'list' so they can see all the export objects aka the history.
The new 'export' sub command will take over the original export's 'run' command. This command will have extra functionality to allow for the creation of an exporter so the whole process can be done in one command.
Examples:
with Exporter named foo:
$pulp exporter pulp export --name foo [export options]
Started export task. Task href: ...
with no Exporter:
$pulp exporter pulp export --base-path tmp/exports/ --repository file_repo file --repository rpm_repo rpm [export options]
Would you like to save these configurations? [y/n]
$y
Please give a name to the exporter config options:
$bar
Config options saved in exporter object bar
Started export task. Task href: ...
If the user would specify 'no' on saving the config options, the command would give the created exporter a default name. The other commands under 'exporter' should have their help descriptions updated to reflect the exporter's role as a config object.
A similar process should be applied to the 'importer' commands so that the experience is consistent.
- Ngôn ngữ chính
- Python
- Star
- 43
- Fork
- 52
- Merge trung bình
- 11 giờ 38 phút
- Pull request đã merge (30 ngày)
- 11
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 pulp/pulp-cli
-
bug Triage-Needed
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 58/100
-
For RPM repositories support setting package_signing_service and package_signing_fingerprint Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
-
feature request
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
-
easy fix feature request
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 25/100
-
bug Triage-Needed
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 42/100
Tất cả issue của pulp/pulp-cli
Issue tương tự
-
[Bug] reef-hermes tells me to resume with hermes --resume, which does not work from my shell Đang mởarea: harness bug status: needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Human-Agent-Society/reef#625 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 80/100
learningequality/kolibri#15351 · 2 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Name consistency Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
eellak/triplestore#65 · 1 bình luận ·