Browse Source

kitchen: change sed regex in completion to capture all commands (#5820)

Co-authored-by: Marc Cornellà <marc.cornella@live.com>
Gustavo Maia 4 years ago
parent
commit
6f85dc2389
1 changed files with 1 additions and 1 deletions
  1. 1 1
      plugins/kitchen/_kitchen

+ 1 - 1
plugins/kitchen/_kitchen

@@ -67,7 +67,7 @@ _kitchen() {
 _kitchen_commands() {
   local commands
 
-  commands=("${(@f)$(_call_program commands $service help | sed -n 's/^  kitchen \([[:alpha:]]*\) [ [].*# \(.*\)$/\1:\2/p')}")
+  commands=("${(@f)$(_call_program commands $service help | sed -n 's/^  kitchen \([[:alpha:]]*\) [ A-Z[].*# \(.*\)$/\1:\2/p')}")
   _describe -t commands 'kitchen commands' commands
 }