-
Notifications
You must be signed in to change notification settings - Fork 1
Task: Running Shell Commands
TekMonks edited this page Jun 30, 2019
·
1 revision
Full support is included to execute shell commands.
Like all XForge commands, these run in an asynchronous parallel mode by default.
Usage
CONSTANTS.shell.[shell command](parameters);
Example
await CONSTANTS.SHELL.mkdir("-p", "/path/to/the/directory/to/make");
XForge uses shelljs for the shell support, thus all shelljs commands are supported.
Command reference and syntax for the various shell commands can be found on this page - https://www.npmjs.com/package/shelljs#command-reference.