Updated Core

This commit is contained in:
Dunemask 2022-05-07 13:44:54 +00:00
parent 8b136eb565
commit 88ebfe4da2
25 changed files with 5678 additions and 1932 deletions

9
lib/core/executor.js Normal file
View 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();