Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Add an init command

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

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
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
python
Lĩnh vực
cli, tooling

Hướng nghiên cứu

Start with the upgrade-packages documentation linked in the issue and trace the existing plonecli command entry points and registry handling. Implement plonecli init [directory] so it writes a root bobtemplate.cfg using a selected global template name, and update configure.zcml with the required placeholder lines; verify both current-directory and named-directory usage.

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

Mô tả

04 type: enhancement 31 needs: help

To allow people to use plonecli command like build and serve in existing packages, we could provide an init command which will prepare a directory for plonecli.

What it needs is documented here:
https://bobtemplatesplone.readthedocs.io/en/latest/upgrade-packages.html#bobtemplate-cfg

We basically need a bobtemplate.cfg in the root directory of a package or buildout.
We should ask for a bobtemplate name like addon and write it to the bobtemplate.cfg.
The template name should be a list of existing templates, comming from the plonecli registry.
It has to be the global name, 'plone_addon' not just 'addon'.
Because the configuration is for mrbob and not only for bobtemplates.pone.

The command can be used then like:

plonecli init mybuildout

or just without a directory, for the current directory

plonecli init

also we need to update configure.zcml files to have the placeholder lines, where we inject config.

Ngôn ngữ chính
Python
Star
20
Fork
12
Merge trung bình
11 ngày 13 giờ
Pull request đã merge (30 ngày)
2

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

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

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 plone/plonecli

Tất cả issue của plone/plonecli

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.