Skip to content

Commit f4fdc13

Browse files
committed
chore(apt-cache,ssh): mark some more functions needing API work
1 parent 1011aba commit f4fdc13

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

completions/apt-cache

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,22 @@
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"

completions/ssh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)