Extract bash command suggestions from a node script

Viewed 31

Is there a way to fetch the output that bash input autocompletion will display when pressing "TAB" + "TAB" in a terminal?

I want to write a node script which will display these suggestions for a specific string. It might be a part of a command, a command with already provided options etc.

0 Answers
Related