Updated Core
This commit is contained in:
parent
8b136eb565
commit
88ebfe4da2
25 changed files with 5678 additions and 1932 deletions
9
lib/core/executor.js
Normal file
9
lib/core/executor.js
Normal file
|
@ -0,0 +1,9 @@
|
|||
import Executor from "../sockets/clients/Executor.js";
|
||||
|
||||
const args = process.argv.slice(2);
|
||||
const url = args[0];
|
||||
const jobId = args[1];
|
||||
const command = args.slice(2);
|
||||
const job = { id: jobId, command };
|
||||
const exec = new Executor(url, job, command);
|
||||
exec.runJob();
|
Loading…
Add table
Add a link
Reference in a new issue