host/tests/manual/process-args.js
2019-12-23 13:06:33 +01:00

17 lines
421 B
JavaScript

import {host, Host} from "../../dist";
/** @type {Host} **/// Would really wish we can eliminate the need for this...
const local = host.from(__dirname);
let dummyScript = `process-args-dummy`;
let testCommands = [
`-xfv arg1 var1="some option value"`
];
for(let testCmd of testCommands){
let cmd = `node -r @babel/register ${dummyScript} ${testCmd}`;
console.log(`Test: ${cmd}`);
local.exec(cmd);
}