|
From: | Kenneth Loafman |
Subject: | Re: [Duplicity-talk] bash completion for duplicity |
Date: | Tue, 26 Jun 2018 07:34:30 -0500 |
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.
1.
it contains a regex bash comparision, which is not backward compatible with older bash and would need to be replaced
[[ "$cur" == -* ]]
.
2.
we would need a license or written approval of the original author to license it preferably under the same license duplicity is currently under.
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.
@Ken: what do you think?
.. ede/duply.net
[Prev in Thread] | Current Thread | [Next in Thread] |