PowerShell / PowerShell/PowerShellEditorServices
Provide a way to enable auto-loading of editor command modules
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- C#
- Star
- 767
- Fork
- 266
- Merge trung bình
- 3 ngày 16 giờ
- Pull request đã merge (30 ngày)
- 1
Mô tả
It would be nice if there was a way for the user to opt in to the auto-loading of any PowerShell Gallery modules they've installed which include editor commands written with the new extensibilty model. The user would add a cmdlet call to their chosen editor's profile which invokes this module auto-loading process. It might look something like this:
Import-EditorCommandModules [-Exclude <String[]> [-Repository <String[]>]`
The -Exclude parameter would take a list of module names which should be excluded from the auto-loading process. The -Repository parameter would restrict auto module loading to only the modules which were installed from the specified repositories.
When invoked, this command would use Get-InstalledModule to find all modules and then filter them down to the specified repositories. It'd then filter them down even further to only those with a conventional tag called EditorCommand. This would allow module authors to indicate that their module contains editor commands which can be auto-loaded.
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.
Hướng nghiên cứu
Bắt đầu với điểm vào được đề xuất Import-EditorCommandModules và cấu hình editor nơi người dùng sẽ gọi nó. Xem xét cách Get-InstalledModule cung cấp các module và repository đã cài đặt, sau đó xác định việc lọc cho -Exclude, -Repository và tag EditorCommand. Hoàn tất khi việc tải theo opt-in chỉ tìm thấy các module đủ điều kiện và tuân thủ cả hai bộ lọc.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- powershell
- Lĩnh vực
- tooling
- Loại issue
- Tính năng
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100