Closed aude closed 2 years ago
uhrg missed that one for v0.32.1, will test/merge for next release
I did some tests today, works fine, with a small flaw (which might be a bit confusing for the users):
$ btrbk --loglevel=debug <TAB>
archive diff extents ls prune run stats
clean dryrun list origin resume snapshot usage
$ btrbk --loglevel debug <TAB>
*nothing*
Is it possible to fix that?
Nice catch!
The reason was that _btrbk_init_cmds
did not understand config options could have values. In your example $ btrbk --loglevel debug <TAB>
, it thought debug
was a command.
I have pushed a new commit which teaches _btrbk_init_cmds
about config options with values. It's ready for a new test if you want to.
finally found some time to test this, works fine, thanks!
merged in: b618c2dd901501a26495617d664b74383b1492b9
Currently, option arguments are only completed after =. For example:
This commit makes it so that both option styles are recognized:
This was the intention all along, but it was implemented incorrectly.