Specify a config file per Collection... possible?

Đang mở
#978 0 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
25/100
Loại issue
Tính năng
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
python
Lĩnh vực
cli, tooling

Hướng nghiên cứu

Start by examining tasks/init.py, tasks/stuff.py, and the two YAML configuration files described in the issue. Determine how collections currently load configuration and define what support for separate config_a.yaml and config_b.yaml would require; done means collections A and B can load their respective configurations independently.

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

Mô tả

I would like to be able to define a set of tasks, and then load those tasks into multiple collections, each with a separate configuration.

Something like this:

tasks
├── __init__.py
├── config_a.yaml
├── config_b.yaml
└── stuff.py

And in the __init__.py

from invoke import Collection
import tasks.stuff

ns = Collection()
ns.add_collection(stuff, 'A')
ns.add_collection(stuff, 'B')

How do I make the 'A' collection use config_a.yaml and 'B' use config_b.yaml?

Ngôn ngữ chính
Python
Star
4.8k
Fork
412
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

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

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 pyinvoke/invoke

Tất cả issue của pyinvoke/invoke

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.