diff options
author | 2023-11-08 11:50:41 +0000 | |
---|---|---|
committer | 2023-11-08 11:50:41 +0000 | |
commit | 7204ccedc3ca48008ad2d5359343e52bf977778d (patch) | |
tree | c5d772bb0351001a21f1a159e2a4486d2c73c550 /vendor/github.com/spf13/cobra/powershell_completions.go | |
parent | [chore]: Bump github.com/jackc/pgx/v5 from 5.4.3 to 5.5.0 (#2336) (diff) | |
download | gotosocial-7204ccedc3ca48008ad2d5359343e52bf977778d.tar.xz |
[chore]: Bump github.com/spf13/cobra from 1.7.0 to 1.8.0 (#2338)
Diffstat (limited to 'vendor/github.com/spf13/cobra/powershell_completions.go')
-rw-r--r-- | vendor/github.com/spf13/cobra/powershell_completions.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vendor/github.com/spf13/cobra/powershell_completions.go b/vendor/github.com/spf13/cobra/powershell_completions.go index 177d2755f..551951939 100644 --- a/vendor/github.com/spf13/cobra/powershell_completions.go +++ b/vendor/github.com/spf13/cobra/powershell_completions.go @@ -47,7 +47,7 @@ filter __%[1]s_escapeStringWithSpecialChars { `+" $_ -replace '\\s|#|@|\\$|;|,|''|\\{|\\}|\\(|\\)|\"|`|\\||<|>|&','`$&'"+` } -[scriptblock]$__%[2]sCompleterBlock = { +[scriptblock]${__%[2]sCompleterBlock} = { param( $WordToComplete, $CommandAst, @@ -122,7 +122,7 @@ filter __%[1]s_escapeStringWithSpecialChars { __%[1]s_debug "Calling $RequestComp" # First disable ActiveHelp which is not supported for Powershell - $env:%[10]s=0 + ${env:%[10]s}=0 #call the command store the output in $out and redirect stderr and stdout to null # $Out is an array contains each line per element @@ -279,7 +279,7 @@ filter __%[1]s_escapeStringWithSpecialChars { } } -Register-ArgumentCompleter -CommandName '%[1]s' -ScriptBlock $__%[2]sCompleterBlock +Register-ArgumentCompleter -CommandName '%[1]s' -ScriptBlock ${__%[2]sCompleterBlock} `, name, nameForVar, compCmd, ShellCompDirectiveError, ShellCompDirectiveNoSpace, ShellCompDirectiveNoFileComp, ShellCompDirectiveFilterFileExt, ShellCompDirectiveFilterDirs, ShellCompDirectiveKeepOrder, activeHelpEnvVar(name))) |