1
0
mirror of https://github.com/go-task/task.git synced 2025-03-05 15:05:42 +02:00

Use --list-all to PowerShell completion + Add CHANGELOG to #803

This commit is contained in:
Andrey Nering 2022-07-16 22:07:24 -03:00
parent 110d1d7245
commit 8d26e34b0a
2 changed files with 7 additions and 1 deletions

View File

@ -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

View File

@ -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 + " " }
}