mirror of
https://github.com/grafana/grafana.git
synced 2024-11-29 20:24:18 -06:00
9 lines
367 B
PowerShell
9 lines
367 B
PowerShell
|
$name = "grafana"
|
||
|
Register-ArgumentCompleter -Native -CommandName $name -ScriptBlock {
|
||
|
param($commandName, $wordToComplete, $cursorPosition)
|
||
|
$other = "$wordToComplete --generate-bash-completion"
|
||
|
Invoke-Expression $other | ForEach-Object {
|
||
|
[System.Management.Automation.CompletionResult]::new($_, $_, 'ParameterValue', $_)
|
||
|
}
|
||
|
}
|