Merge pull request #692 from syohex/syohex/update-kitchen

kitchen: fix regexp which collects subcommands
This commit is contained in:
Shohei YOSHIDA 2020-03-24 08:00:46 +09:00 committed by GitHub
commit a264c2d123
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -35,6 +35,7 @@
# -------
#
# * Peter Eisentraut (https://github.com/petere)
# * Shohei YOSHIDA (https://github.com/syohex)
#
# ------------------------------------------------------------------------------
@ -67,7 +68,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:]]*\) .*# \(.*\)$/\1:\2/p')}")
_describe -t commands 'kitchen commands' commands
}