mirror of
https://github.com/go-task/task.git
synced 2025-03-19 21:17:46 +02:00
9 lines
341 B
PowerShell
9 lines
341 B
PowerShell
$scriptBlock = {
|
|
param($commandName, $parameterName, $wordToComplete, $commandAst, $fakeBoundParameters )
|
|
$reg = "\* ($commandName.+?):"
|
|
$listOutput = $(task --list-all)
|
|
$listOutput | Select-String $reg -AllMatches | ForEach-Object { $_.Matches.Groups[1].Value }
|
|
}
|
|
|
|
Register-ArgumentCompleter -CommandName task -ScriptBlock $scriptBlock
|