Bug 817050

Summary: Provide a way to use multiple JS files in non-interactive mode
Product: [Other] RHQ Project Reporter: Libor Zoubek <lzoubek>
Component: CLIAssignee: RHQ Project Maintainer <rhq-maint>
Status: CLOSED CURRENTRELEASE QA Contact: Mike Foley <mfoley>
Severity: unspecified Docs Contact:
Priority: medium    
Version: 4.4CC: hrupp, theute
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-09-05 14:27:57 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Libor Zoubek 2012-04-27 14:07:22 UTC
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):
RHQ 4.4
  
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

Comment 1 Mike Foley 2012-04-30 16:02:08 UTC
triaged 4/30/2012 by loleary, ccrouch, mfoley

Comment 2 Libor Zoubek 2014-09-05 14:27:57 UTC
fixed long time ago by adding commonjs module support