It could probably make sens to leverage the mechanism allowing to discover and instantiate module that have been added to the core.
See https://github.com/Slicer/Slicer/blob/master/Base/QTCLI/qSlicerCLIExecutableModuleFactory.h to see how the ctkAbstractFileBasedFactory is used.
@pieper and @finetjul I guess that would be helpful to integrate it within Slicer ?
I would definitely use the factory mechanism from the Core but I cannot yet see how to put it to good use. There is no default command line module discovery mechanism in the CTK implementation. Only a "directory watcher" is provided as a high-level convenience class which tries to register all executables from a given list of directories with the ctkCmdLineModuleManager.