mirror of https://github.com/sbt/sbt.git
11 lines
408 B
PowerShell
11 lines
408 B
PowerShell
$scriptblock = {
|
|
param($commandName, $line, $position)
|
|
$len = $line.ToString().length
|
|
$spaces = " " * ($position - $len)
|
|
$arg="--completions=$line$spaces"
|
|
& 'sbtn.exe' @('--no-tab', '--no-stderr', $arg)
|
|
}
|
|
Set-Alias -Name sbtn -Value sbtn.exe
|
|
Register-ArgumentCompleter -CommandName sbtn.exe -ScriptBlock $scriptBlock
|
|
Register-ArgumentCompleter -CommandName sbtn -ScriptBlock $scriptBlock
|