[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Duplicity-talk] bash completion for duplicity
From: |
Aaron |
Subject: |
Re: [Duplicity-talk] bash completion for duplicity |
Date: |
Tue, 26 Jun 2018 13:49:47 +0100 |
Hello Jose,
On 2018-06-25 10:28, edgar.soldin--- via Duplicity-talk wrote:
On 25.06.2018 09:26, Jozef Riha via Duplicity-talk wrote:
hello list,
i found a bash completion config for duplicity at
http://neuling.org/devel/junkcode/duplicity-completion so i wonder
whether (if author agrees) this could be added to duplicity.
hey Jose,
nice catch. i'd agree to add it provided some enhancements are done.
[...]
3.
main issue - maintaining the list of options is tiresome. there should
be a way of either asking duplicity for it's options (eg. parsing
help) or generating the list during distro build.
if that does not happen the list will become outdated very fast as
contributors regularly forget to document their changes. we have to
point out update the man page in pretty much every merge request.
if you'd be willing to tackle these points, i'd see no further
obstacles so far.
Without digging into the detail, this:
http://argcomplete.readthedocs.io/en/latest/
apparently automatically collects options for bash completion from
argparse, which feels like a sensible approach.
Moving from Optparse to Argparse is on the roadmap already anyway:
https://bugs.launchpad.net/duplicity/+bug/1480565
Kind regards,
Aaron
- [Duplicity-talk] bash completion for duplicity, Jozef Riha, 2018/06/25
- Re: [Duplicity-talk] bash completion for duplicity, edgar . soldin, 2018/06/25
- Re: [Duplicity-talk] bash completion for duplicity, Kenneth Loafman, 2018/06/26
- Re: [Duplicity-talk] bash completion for duplicity,
Aaron <=
- Re: [Duplicity-talk] bash completion for duplicity, edgar . soldin, 2018/06/26
- Re: [Duplicity-talk] bash completion for duplicity, Kenneth Loafman, 2018/06/26
- Re: [Duplicity-talk] bash completion for duplicity, edgar . soldin, 2018/06/27
- Re: [Duplicity-talk] bash completion for duplicity, Jose Riha, 2018/06/29
- Re: [Duplicity-talk] bash completion for duplicity, Kenneth Loafman, 2018/06/29