Red Hat Bugzilla – Bug 817050
Provide a way to use multiple JS files in non-interactive mode
Last modified: 2015-11-01 19:42:50 EST
Description of problem: Our JS codebase is growing and we are experiencing duplicating code. We tend to write some common.js script that would contain common functions, that would be reused in other scripts.
Currently RHQ Client does not provide a way to include or import one JS into another or pass multiple JS files as arguments.
Version-Release number of selected component (if applicable):
According to http://workingrhino.blogspot.com/2007/10/readdir.html there is a 'load' function, that could be part of one JS file to import another. In RHQ client this function is not available.
Another way would be allowing to pass multiple files to -f option of CLI
triaged 4/30/2012 by loleary, ccrouch, mfoley
fixed long time ago by adding commonjs module support