mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-06-03 15:10:49 +00:00
gctcli: bump urfave cli depends version (#698)
* gctcli: bump version * gctcli: flag alias done differenttttttttttttt * gctcli: add autocomplete scripts to folder within gctcli cmd folder structure
This commit is contained in:
13
cmd/gctcli/autocomplete/gctcli.ps1
Normal file
13
cmd/gctcli/autocomplete/gctcli.ps1
Normal file
@@ -0,0 +1,13 @@
|
||||
# PowerShell programmable completion for gctcli
|
||||
# For info on implementation for current shell session or persistence:
|
||||
# https://github.com/urfave/cli/blob/master/docs/v2/manual.md#powershell-support
|
||||
|
||||
$fn = $($MyInvocation.MyCommand.Name)
|
||||
$name = $fn -replace "(.*)\.ps1$", '$1'
|
||||
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', $_)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user