diff options
author | Michael Muré <batolettre@gmail.com> | 2022-09-10 11:09:19 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2022-11-20 17:18:09 +0100 |
commit | acc9a6f3a6df2961c3ae44352216d915cb9b5315 (patch) | |
tree | e159372673104ade1f15ddc1a84aa9da93e93552 /misc | |
parent | a3fa445a9c76631c4cd16f93e1c1c68a954adef7 (diff) | |
download | git-bug-acc9a6f3a6df2961c3ae44352216d915cb9b5315.tar.gz |
commands: reorg into different packages
Diffstat (limited to 'misc')
-rw-r--r-- | misc/completion/bash/git-bug | 2 | ||||
-rw-r--r-- | misc/completion/powershell/git-bug | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/misc/completion/bash/git-bug b/misc/completion/bash/git-bug index 2bca660b..81eb0d3c 100644 --- a/misc/completion/bash/git-bug +++ b/misc/completion/bash/git-bug @@ -128,7 +128,7 @@ __git-bug_process_completion_results() { __git-bug_handle_special_char "$cur" = # Print the activeHelp statements before we finish - if [ ${#activeHelp} -ne 0 ]; then + if [ ${#activeHelp[*]} -ne 0 ]; then printf "\n"; printf "%s\n" "${activeHelp[@]}" printf "\n" diff --git a/misc/completion/powershell/git-bug b/misc/completion/powershell/git-bug index 1b3e99d0..424ad8ac 100644 --- a/misc/completion/powershell/git-bug +++ b/misc/completion/powershell/git-bug @@ -10,7 +10,7 @@ filter __git-bug_escapeStringWithSpecialChars { $_ -replace '\s|#|@|\$|;|,|''|\{|\}|\(|\)|"|`|\||<|>|&','`$&' } -Register-ArgumentCompleter -CommandName 'git-bug' -ScriptBlock { +[scriptblock]$__git_bugCompleterBlock = { param( $WordToComplete, $CommandAst, @@ -226,3 +226,5 @@ Register-ArgumentCompleter -CommandName 'git-bug' -ScriptBlock { } } + +Register-ArgumentCompleter -CommandName 'git-bug' -ScriptBlock $__git_bugCompleterBlock |