mirror of
https://github.com/go-task/task.git
synced 2025-11-23 22:24:45 +02:00
Update task.ps1
This commit is contained in:
@@ -2,7 +2,7 @@ $scriptBlock = {
|
|||||||
param($commandName, $parameterName, $wordToComplete, $commandAst, $fakeBoundParameters )
|
param($commandName, $parameterName, $wordToComplete, $commandAst, $fakeBoundParameters )
|
||||||
$reg = "\* ($commandName.+?):"
|
$reg = "\* ($commandName.+?):"
|
||||||
$listOutput = $(task --list-all)
|
$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
|
Register-ArgumentCompleter -CommandName task -ScriptBlock $scriptBlock
|
||||||
|
|||||||
Reference in New Issue
Block a user