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
- 471
- Fork
- 144
- Merge trung bình
- 17 giờ 10 phút
- Pull request đã merge (30 ngày)
- 1
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc 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
-
Update template Plan to implement to allow additional optionCó thể đã có người làm @kilasuit đã nhận 344 ngày trước. Đang mở
Độ 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 Community Dashboard: No Data After October 2024Có thể làm lại được @theJasonHelmick đã nhận 276 ngày trước và không có pull request nào đang mở. Đang mở
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ự
-
status/need-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
google-gemini/gemini-cli#30328 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
severity:medium triage:confirmed triage:in-progress triage:reproduced
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
Cotal-AI/Cotal#7231 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 3 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
can4hou6joeng4/boss-agent-cli#1487 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
NuSkooler/enigma-bbs#1056 ·
Maintainer thường phản hồi trong vòng 1 ngày