File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change 11# Debian apt-cache(8) completion -*- shell-script -*-
22
33# List APT binary packages
4+ # TODO:API: rework to use vars rather than outputting
45_comp_xfunc_apt_cache_packages ()
56{
67 apt-cache --no-generate pkgnames " $cur " 2> /dev/null || :
78}
89
910# List APT source packages
11+ # TODO:API: rework to use vars rather than outputting
1012_comp_xfunc_apt_cache_sources ()
1113{
1214 compgen -W " $( apt-cache dumpavail |
1315 awk ' $1 == "Source:" { print $2 }' | sort -u) " -- " $1 "
1416}
1517
1618# List APT source packages
19+ # TODO:API: rework to use vars rather than outputting
1720_comp_xfunc_apt_cache_src_packages ()
1821{
1922 compgen -W ' $(_comp_xfunc_apt_cache_sources "$cur")' -- " $cur "
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ _comp_cmd_ssh__queries()
1010 _comp_compgen -ac " ${cur,,} " -- -W " $queries help"
1111}
1212
13+ # TODO:API:rework to use vars rather than outputting
1314_comp_xfunc_ssh_query ()
1415{
1516 ${1:- ssh} -Q " $2 " 2> /dev/null
You can’t perform that action at this time.
0 commit comments