clap/clap_generate
Josh Holland 5948754d2f fix(completions): improve correctness of completions when whitespace is involved
compgen takes exactly one "word" argument; if multiple are passed, it
will ignore all but the first. If `$cur` is not quoted and contains
whitespace, it will be expanded into multiple words, so the completions
will be based only on the first word of `$cur`, which is clearly not
correct.

To fix this, quote `$cur` to prevent word splitting, where necessary
(Bash does not perform word splitting inside the extended test command
`[[`, so quotes aren't necessary there).
2020-05-12 01:32:15 +02:00
..
examples Added helper methods to generator 2020-02-07 07:52:04 +01:00
src fix(completions): improve correctness of completions when whitespace is involved 2020-05-12 01:32:15 +02:00
tests fix(completions): improve correctness of completions when whitespace is involved 2020-05-12 01:32:15 +02:00
Cargo.toml Some modifications to allow cargo verification to work 2020-05-03 11:48:01 +02:00
README.md Refactor clap_generate 2020-02-07 07:52:04 +01:00

clap_generate