17 lines
421 B
JavaScript
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);
|
|
}
|