How does Bash in Ubuntu know a tool's specific list of actions?
For example if I type apt-get and tab twice I only see remove, update, upgrade ...etc, but not the actions for another command or the files in the current directory.
I'm developing a command-line tool in Go and would like to provide this feature for the distros that support it.