mirror of
https://github.com/go-task/task.git
synced 2025-07-13 01:30:33 +02:00
Use --list-all
to PowerShell completion + Add CHANGELOG to #803
This commit is contained in:
@ -1,5 +1,11 @@
|
|||||||
# Changelog
|
# 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
|
## v3.14.0 - 2022-07-08
|
||||||
|
|
||||||
- Add ability to override the `.task` directory location with the
|
- Add ability to override the `.task` directory location with the
|
||||||
|
@ -3,7 +3,7 @@ $scriptBlock = {
|
|||||||
$curReg = "task{.exe}? (.*?)$"
|
$curReg = "task{.exe}? (.*?)$"
|
||||||
$startsWith = $wordToComplete | Select-String $curReg -AllMatches | ForEach-Object { $_.Matches.Groups[1].Value }
|
$startsWith = $wordToComplete | Select-String $curReg -AllMatches | ForEach-Object { $_.Matches.Groups[1].Value }
|
||||||
$reg = "\* ($startsWith.+?):"
|
$reg = "\* ($startsWith.+?):"
|
||||||
$listOutput = $(task -l)
|
$listOutput = $(task --list-all)
|
||||||
$listOutput | Select-String $reg -AllMatches | ForEach-Object { $_.Matches.Groups[1].Value + " " }
|
$listOutput | Select-String $reg -AllMatches | ForEach-Object { $_.Matches.Groups[1].Value + " " }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user