diff --git a/CHANGELOG.md b/CHANGELOG.md index 7690be2a..9ff23ba0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## Unreleased + +- Fix ZSH and PowerShell completions to consider all tasks instead of just the + public ones (those with descriptions) + ([#803](https://github.com/go-task/task/pull/803)). + ## v3.14.0 - 2022-07-08 - Add ability to override the `.task` directory location with the diff --git a/completion/ps/task.ps1 b/completion/ps/task.ps1 index 948d333e..dfee63f5 100644 --- a/completion/ps/task.ps1 +++ b/completion/ps/task.ps1 @@ -3,7 +3,7 @@ $scriptBlock = { $curReg = "task{.exe}? (.*?)$" $startsWith = $wordToComplete | Select-String $curReg -AllMatches | ForEach-Object { $_.Matches.Groups[1].Value } $reg = "\* ($startsWith.+?):" - $listOutput = $(task -l) + $listOutput = $(task --list-all) $listOutput | Select-String $reg -AllMatches | ForEach-Object { $_.Matches.Groups[1].Value + " " } }