ConvertFrom/To-Hashtable and/or ConvertTo-PSCustomObject cmdlets
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ệ
- powershell
- Lĩnh vực
- cli
Hướng nghiên cứu
Bắt đầu với cuộc thảo luận liên quan trong issue #109, đặc biệt là bình luận được liên kết, để hiểu các kịch bản chuyển đổi được đề xuất và phạm vi chưa được giải quyết. Xác định xem công việc nên bao gồm ConvertFrom-Hashtable, ConvertTo-PSCustomObject, ConvertTo-Hashtable hay nhiều cmdlet; để được coi là hoàn thành, cần có một RFC tập trung, sẵn sàng nhận phản hồi từ PowerShell Committee và tiến hành bỏ phiếu.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Related discussion in #109, specifically this comment:
Finally got around to reviewing this with @PowerShell/powershell-committee.
It sounds like the problem that's being solved here is to convert nested hashtables to PSCustomObjects when the keys are all strings (when they're not strings, conversion will likely result in key collision due to ToString() returning type names).
To that end, we think it's more generically useful to build a ConvertFrom-Hashtable cmdlet that would allow more generic and custom conversion of hashtables to PSCustomObjects and potentially other types using constructors that expect specific hashtable "schemas". Another possible implementation is to do a ConvertTo-PSCustomObject that does more custom handling (and these aren't mutually exclusive). Additionally, a ConvertTo-Hashtable is probably useful.
We don't have this on our radar right now, but if someone wants to give a go at a ConvertFrom-Hashtable RFC and implementation, go for it.
We think the scenario we're trying to address is primarily casting nested hashtables of hashtables into PSCustomObjects (or possibly even other types).
- Ngôn ngữ chính
- PowerShell
- Star
- 468
- Fork
- 143
- Merge trung bình
- 9 phút
- Pull request đã merge (30 ngày)
- 1
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 PowerShell/PowerShell-RFC
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
PowerShell/PowerShell-RFC#404 · 1 bình luận ·
-
PowerShell/PowerShell-RFC#407 · 1 bình luận · 1 người được giao ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
PowerShell/PowerShell-RFC#396 ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 20/100
PowerShell/PowerShell-RFC#334 · 2 reaction ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
PowerShell/PowerShell-RFC#327 · 28 bình luận · 31 reaction ·
Tất cả issue của PowerShell/PowerShell-RFC
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
qgis/QGIS-Documentation#11275 ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 92/100
milvus-io/birdwatcher#545 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
-
area:tools bug good first issue help wanted priority:P2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 90/100
TaewoooPark/Motifcode#14 ·
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
newrelic-experimental/preflight#793 · 1 bình luận ·