# Assumming you have the context...
list(click.core._complete_visible_commands(ctx, ""))