mirror of
https://github.com/go-task/task.git
synced 2025-03-17 21:08:01 +02:00
Update task.ps1
This commit is contained in:
parent
394afe2633
commit
2e573d37ae
@ -2,7 +2,7 @@ $scriptBlock = {
|
||||
param($commandName, $parameterName, $wordToComplete, $commandAst, $fakeBoundParameters )
|
||||
$reg = "\* ($commandName.+?):"
|
||||
$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 }
|
||||
}
|
||||
|
||||
Register-ArgumentCompleter -CommandName task -ScriptBlock $scriptBlock
|
||||
|
Loading…
x
Reference in New Issue
Block a user