6f85dc2389b415011b844ff2a8cbd948be566ec3
- Author
- Gustavo Maia <gurumaia@users.noreply.github.com>
- Committer
- GitHub <noreply@github.com>
- Date
Message
kitchen: change sed regex in completion to capture all commands (#5820)
Co-authored-by: Marc Cornellà <marc.cornella@live.com>
Diff
1diff --git a/plugins/kitchen/_kitchen b/plugins/kitchen/_kitchen
2index 29a3125e4ffa03ffbb3005a09b77e33a17bd545c..d93d93d78bc606d48fc34e4d357d0c8f9c910925 100644
3--- a/plugins/kitchen/_kitchen
4+++ b/plugins/kitchen/_kitchen
5@@ -67,7 +67,7 @@ _kitchen() {
6 _kitchen_commands() {
7 local commands
8
9- commands=("${(@f)$(_call_program commands $service help | sed -n 's/^ kitchen \([[:alpha:]]*\) [ [].*# \(.*\)$/\1:\2/p')}")
10+ commands=("${(@f)$(_call_program commands $service help | sed -n 's/^ kitchen \([[:alpha:]]*\) [ A-Z[].*# \(.*\)$/\1:\2/p')}")
11 _describe -t commands 'kitchen commands' commands
12 }
13