-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Description
When using Read-SpectreSelection or Read-SpectreMultiSelection, the ChoiceLabelProperty must be unique.
It would be very helpful to dynamically define the label property with a script block.
Read-SpectreMultiSelection -AllowEmpty -Choices (ps pwsh) -ChoiceLabelProperty {"$($_.name) [$($_.id) - $($_.StartTime)]"}The user could try something like this:
$p = ps pwsh | select *,@{N="Proc";E={ "$($_.name) $($_.id) - $($_.StartTime)" }},
Read-SpectreMultiSelection -AllowEmpty -Choices $p -ChoiceLabelProperty procBut this feels more cumbersome, and technically this writes a selected object and not the original native objec.
Metadata
Metadata
Assignees
Labels
No labels