Package: dgit Version: 12.3 Severity: wishlist Dear Maintainer,
It would be great if dgit supports bash-completion. I have tried to work on it. It looks like operations/commands are implemented as functions, so to get a list of all commands the following simple grep works: ,---- | egrep "^sub cmd_" dgit | sed -r "s/^sub cmd_(\w+).*$/\1/;s/_/-/g" `---- However, for options it's more complicated, and in some cases multiple options are implemented together, so grepping the source code won't work reliably. I wonder whether dgit may consider give a little help by providing some helper functions to list all available operations and options so that it's easier to implement bash-completion, and also future-proof. -- System Information: Debian Release: 12.8 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 6.1.0-28-amd64 (SMP w/16 CPU threads; PREEMPT) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages dgit depends on: ii apt 2.6.1 ii ca-certificates 20230311 ii coreutils 9.1-1 ii curl 7.88.1-10+deb12u8 ii devscripts 2.23.4+deb12u2 ii dpkg-dev 1.21.22 ii dput 1.1.3 ii git [git-core] 1:2.39.5-0+deb12u1 ii git-buildpackage 0.9.30 ii libdpkg-perl 1.21.22 ii libjson-perl 4.10000-1 ii liblist-moreutils-perl 0.430-2 ii liblocale-gettext-perl 1.07-5 ii libtext-csv-perl 2.02-2 ii libtext-glob-perl 0.11-3 ii libtext-iconv-perl 1.7-8 ii libwww-curl-perl 4.17-10 ii perl [libdigest-sha-perl] 5.36.0-7+deb12u1 Versions of packages dgit recommends: ii distro-info-data 0.58+deb12u3 ii liburi-perl 5.17-1 ii openssh-client [ssh-client] 1:9.2p1-2+deb12u3 Versions of packages dgit suggests: ii cowbuilder 0.89 ii pbuilder 0.231 ii sbuild 0.88.1~bpo12+1 -- no debconf information -- Regards, Xiyue Deng
signature.asc
Description: PGP signature