Description of problem: $RHQ_CLI_HOME/bin/rhq-cli.sh -f 'scripts/*.js' or $RHQ_CLI_HOME/bin/rhq-cli.sh -f scripts (for example) doesn't work. Same with 'exec'. For complicated installations, it would be nice to not have to manually exec each script source file individually. And it would be nice to start with all the RHQ supplied 'examples' as a default. I would see supporting syntax such as: $RHQ_CLI_HOME/bin/rhq-cli.sh -d scripts But ideally, there might be one directory that's always read at start up time.
per BZ traige (crouch, foley, loleary), medium priority, not targetted for JON 3.1
I think this is a good idea
Assigning to Lukas, as he is currently working in the area of making scripts modular, so this could fit into his work.
While RHQ 4.5.1 doesn't specifically contain this feature, it added CommonJS support to the CLI and thus the ability to load modules from within the scripts. I think CommonJS provides a much cleaner and nicer alternative to the above mentioned approach. Do you agree, Elias?
This is fine. The CommonJS solution is more elegant than what I proposed.