Imagine you use a command like ls and you would like to list all files, including hidden files, and you don't know which option you have to use. You can simply write ''ls -" and then TAB to get autocompletion. We have a project with lot's of different options. With compgen we can possibly tell the shell which options exist and how they are described, so we are able to simply TAB and get the autocompletion like in the example of ''ls -'' above.
Hauptsächlich werden wir das ganze ja von Scala aus nutzen und dabei das JNI benutzen...
Oder meinst du mehr das Shell-Skript zum starten einer Java/Scala-Klasse?
Imagine you use a command like ls and you would like to list all files, including hidden files, and you don't know which option you have to use. You can simply write ''ls -" and then TAB to get autocompletion. We have a project with lot's of different options. With compgen we can possibly tell the shell which options exist and how they are described, so we are able to simply TAB and get the autocompletion like in the example of ''ls -'' above.