Skip to content

Commit

Permalink
fix: force ForEach-Object to return array in pwsh completion (#1850)
Browse files Browse the repository at this point in the history
Fixes #1847
  • Loading branch information
totkeks committed Nov 25, 2022
1 parent 4305498 commit c6b9971
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion powershell_completions.go
Expand Up @@ -137,7 +137,7 @@ filter __%[1]s_escapeStringWithSpecialChars {
}
$Longest = 0
$Values = $Out | ForEach-Object {
[Array]$Values = $Out | ForEach-Object {
#Split the output in name and description
`+" $Name, $Description = $_.Split(\"`t\",2)"+`
__%[1]s_debug "Name: $Name Description: $Description"
Expand Down

0 comments on commit c6b9971

Please sign in to comment.