mirror of
https://github.com/grafana/grafana.git
synced 2024-11-29 20:24:18 -06:00
9c4051bfa1
* switch grafana server to use urfave/cli/v2 * autocomplete support * lint fix
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', $_)
|
|
}
|
|
}
|