How can we get this more flexible?

My initial idea was to lookup the command based on the given argument
e.g. files:scan would load apps\files\console\scan.php

For displaying all available commands an recursive search through all apps would do it.

What's the solution to this with the symfony console? THX