ConvertFrom/To-Hashtable and/or ConvertTo-PSCustomObject cmdlets
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 25/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Necesita aclaración
- Estado de actividad
- Estancado
- Stack tecnológico
- powershell
- Área
- cli
Línea de trabajo
Comienza con la discusión relacionada en el issue #109, especialmente con el comentario enlazado, para entender los escenarios de conversión propuestos y el alcance aún no resuelto. Determina si el trabajo debería abarcar ConvertFrom-Hashtable, ConvertTo-PSCustomObject, ConvertTo-Hashtable o varios cmdlets; para darlo por terminado sería necesario un RFC enfocado, listo para recibir comentarios del PowerShell Committee y someterse a votación.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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).
- Lenguaje dominante
- PowerShell
- Estrellas
- 468
- Forks
- 143
- Merge medio
- 9 min
- PR fusionados (30 d)
- 1
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de PowerShell/PowerShell-RFC
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
PowerShell/PowerShell-RFC#404 · 1 comentario ·
-
PowerShell/PowerShell-RFC#407 · 1 comentario · 1 asignado ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
PowerShell/PowerShell-RFC#396 ·
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 20/100
PowerShell/PowerShell-RFC#334 · 2 reacciones ·
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
PowerShell/PowerShell-RFC#327 · 28 comentarios · 31 reacciones ·
Todos los issues de PowerShell/PowerShell-RFC
Issues similares
-
triage
Dificultad 1/5 1-3 horas Aptitud para principiantes 88/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
-
app bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 73/100
-
Broadcast Documentation Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
kovidgoyal/kitty#10516 ·