Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
xe autocompletion: Only show required/optional prefixes when paramete…
…r name is empty Otherwise, these prefixes break autocompletion of common prefixes, like in: ``` $ xe pool-param-get <TAB> OPTIONAL: database: REQUIRED: param-name= OPTIONAL: param-key= REQUIRED: uuid= $ xe pool-param-get p<TAB> <- gets autocompleted before showing further suggestions $ xe pool-param-get param- param-key= param-name= ``` Without this fix, instead worked like this: ``` $ xe pool-param-get <TAB> OPTIONAL: database: REQUIRED: param-name= OPTIONAL: param-key= REQUIRED: uuid= $ xe pool-param-get p<TAB> <-- no prefix autocompletion OPTIONAL: param-key= REQUIRED: param-name= ``` This is a temporary workaround, since upgrading bash would allow us to show prefixes as section headers without polluting suggested words themselves. Signed-off-by: Andrii Sultanov <[email protected]>
- Loading branch information