function init(domainManager) {
        if (!domainManager.hasDomain("shellCommand")) {
            domainManager.registerDomain("shellCommand", {major: 0, minor: 1});
        }
        domainManager.registerCommand(
            "shellCommand",                     // domain name
            "runShellCmd",                      // command name
            runShellCmd,                        // command handler function
            false,                              // this command is synchronous in Node
            "Executes a shell command",   // description
            [                                   // parameters
                {
                    name: "command",
                    type: "string",
                    description: "The command to be run in the shell"
                }
            ]
        );
    }
/**
     * Initializes the test domain with several test commands.
     * @param {DomainManager} domainManager The DomainManager for the server
     */
Initializes the test domain with several test commands.
@param {DomainManager} domainManager The DomainManager for the server
Initializes the test domain with several test commands . @param { DomainManager } domainManager The DomainManager for the server
function init(domainManager) {
        if (!domainManager.hasDomain("shellCommand")) {
            domainManager.registerDomain("shellCommand", {major: 0, minor: 1});
        }
        domainManager.registerCommand(
            "shellCommand",                     
            "runShellCmd",                      
            runShellCmd,                        
            false,                              
            "Executes a shell command",   
            [                                   
                {
                    name: "command",
                    type: "string",
                    description: "The command to be run in the shell"
                }
            ]
        );
    }
function init ( domainManager ) { if ( ! domainManager . hasDomain ( "shellCommand" ) ) { domainManager . registerDomain ( "shellCommand" , { major : 0 , minor : 1 } ) ; } domainManager . registerCommand ( "shellCommand" , "runShellCmd" , runShellCmd , false , "Executes a shell command" , [ { name : "command" , type : "string" , description : "The command to be run in the shell" } ] ) ; }
Initializes the test domain with several test commands.
Initializes the test domain with several test commands .
// domain name // command name // command handler function // this command is synchronous in Node // description // parameters