Removed runroot plugin CLI part to separate file (plugins/cli/runroot.py) and altered behaviour of CLI to look in pluginspath and load all found commands. Commands are injected to CLI namespace which is not intuitive and maybe thing to change.
My reason to do that was, that CLI is heavily influencing its behaviour in main function. If we don't want to go this way, other option is to get rid of CLI globals and make plugins more independent on CLI code.
Suggestions?
Note: What is missing are .spec modifications - as it could be influenced by suggested changes.
Removed runroot plugin CLI part to separate file (plugins/cli/runroot.py) and altered behaviour of CLI to look in pluginspath and load all found commands. Commands are injected to CLI namespace which is not intuitive and maybe thing to change.
My reason to do that was, that CLI is heavily influencing its behaviour in main function. If we don't want to go this way, other option is to get rid of CLI globals and make plugins more independent on CLI code.
Suggestions?
Note: What is missing are .spec modifications - as it could be influenced by suggested changes.