Either
COMPREPLY=($(compgen -W '$(pwd)' -- "$cur") $(compgen -W '$(hostname)' -- "$cur"))
(you want a bigger array, just make one) or
COMPREPLY=($( compgen -W '$(pwd; hostname)' -- "$cur" ) )
(still autocompleting one command).