mirror of
https://github.com/spf13/cobra
synced 2025-07-01 00:27:23 +00:00
Fix broken test
The breakage was caused by the change at line 336, which changed the completion from ``` --option[Help message]: ``` to ``` --option[Help message]:option ``` Semantically this does not change the behavior of the completion, but it does tell zsh to tell you which flag it is currently completing
This commit is contained in:
parent
c87d78cfc6
commit
684fd47788
1 changed files with 1 additions and 1 deletions
|
@ -77,7 +77,7 @@ func TestGenZshCompletion(t *testing.T) {
|
|||
`_arguments -C \\\n.*'--debug\[description]'`,
|
||||
`function _rootcmd_subcmd1 {`,
|
||||
`function _rootcmd_subcmd1 {`,
|
||||
`_arguments \\\n.*'\(-o --option\)'{-o,--option}'\[option description]:' \\\n`,
|
||||
`_arguments \\\n.*'\(-o --option\)'{-o,--option}'\[option description]:option' \\\n`,
|
||||
},
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue