Namespace Sys
Sys namespace used for things such as executing external commands.
Defined in: sys.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Method Attributes | Method Name and Description |
---|---|
<static> |
Sys.exit(An)
Initiates the termination of the application, returning an exit code.
|
<static> |
Sys.run(parameters)
Runs the command given as the first parameter with the arguments given as the remaining
parameters and returns an object containing the exit status (as the exitStatus property)
and command output (as the output property).
|
Method Detail
<static>
Sys.exit(An)
Initiates the termination of the application, returning an exit code.
- Parameters:
- {int} An
- exit code (only 0 or 1 can be returned). invoke the command with.
<static>
{Object}
Sys.run(parameters)
Runs the command given as the first parameter with the arguments given as the remaining
parameters and returns an object containing the exit status (as the exitStatus property)
and command output (as the output property).
- Parameters:
- {String[]} parameters
- First parameter is command name, rest are arguments to invoke the command with.
- Returns:
- {Object} Object with 'exitStatus' and 'output' properties.