@@ -10,6 +10,7 @@ _comp_cmd_ssh__queries()
1010 _comp_compgen -ac " ${cur,,} " -- -W " $queries help"
1111}
1212
13+ # @since 2.12
1314# TODO:API:rework to use vars rather than outputting
1415_comp_xfunc_ssh_query ()
1516{
@@ -35,6 +36,7 @@ _comp_cmd_ssh__macs()
3536 _comp_compgen -a -- -W " $macs "
3637}
3738
39+ # @since 2.12
3840_comp_xfunc_ssh_options ()
3941{
4042 # curl --silent https://raw.githubusercontent.com/openssh/openssh-portable/master/ssh_config.5 | awk '$1==".It" && $2=="Cm" && $3!="Host" && $3!="Match" {print " "$3}' | sort
@@ -215,6 +217,7 @@ _comp_cmd_ssh__suboption()
215217# Try to complete -o SubOptions=
216218#
217219# Returns 0 if the completion was handled or non-zero otherwise.
220+ # @since 2.12
218221_comp_xfunc_ssh_suboption_check ()
219222{
220223 # Get prev and cur words without splitting on =
@@ -250,6 +253,7 @@ _comp_cmd_ssh__configfile()
250253}
251254
252255# With $1 set, look for public key files, else private
256+ # @since 2.12
253257# shellcheck disable=SC2120
254258_comp_xfunc_ssh_identityfile ()
255259{
@@ -432,6 +436,7 @@ _comp_cmd_scp__path_esc='[][(){}<>"'"'"',:;^&!$=?`\\|[:space:]]'
432436
433437# Complete remote files with ssh. If the first arg is -d, complete on dirs
434438# only. Returns paths escaped with three backslashes.
439+ # @since 2.12
435440# shellcheck disable=SC2120
436441_comp_xfunc_ssh_scp_remote_files ()
437442{
@@ -475,6 +480,7 @@ _comp_deprecate_func _scp_remote_files _comp_xfunc_ssh_scp_remote_files
475480# appended after local file/dir completions, and -o nospace retained for
476481# others. If first arg is -d, complete on directory names only. The next arg
477482# is an optional prefix to add to returned completions.
483+ # @since 2.12
478484_comp_xfunc_ssh_scp_local_files ()
479485{
480486 local IFS=$' \n '
0 commit comments