1
0
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:
Trim21 2022-10-18 00:09:07 +08:00 committed by GitHub
parent 394afe2633
commit 2e573d37ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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