move around files

This commit is contained in:
Brian Seymour 2021-01-25 12:54:39 -06:00
parent 11ccbd9e15
commit 5cf2d5853d
9 changed files with 7 additions and 8 deletions

View File

@ -1,5 +1,5 @@
const express = require('express');
const { execute } = require('../../shared/execute');
const { execute } = require('../../lxc/execute.js');
const { languages } = require('./languages');
const { checkSchema, validationResult } = require('express-validator');

View File

@ -1,8 +1,8 @@
const { spawn } = require('child_process');
const languages = require('../../shared/languages.json');
const languages = require('../../config/languages.json');
{
const process = spawn(__dirname + '/../../lxc/versions');
const process = spawn(__dirname + '/../../lxc/util/versions');
let output = '';
process.stderr.on('data', chunk => output += chunk);

View File

@ -1,8 +1,8 @@
#!/usr/bin/env node
const { execute } = require('../shared/execute');
const { execute } = require('../lxc/execute.js');
const { readFileSync } = require('fs');
const languages = require('../shared/languages.json');
const languages = require('../config/languages.json');
const [languageName, sourceFile, ...args] = process.argv.slice(2);

View File

@ -13,7 +13,7 @@ function execute(language, source, stdin = '', args = []) {
writeFileSync(`${LXC_ROOT}/tmp/${id}/stdin.stdin`, stdin);
writeFileSync(`${LXC_ROOT}/tmp/${id}/args.args`, args.join('\n'));
const process = spawn(__dirname + '/../lxc/execute', [
const process = spawn(__dirname + '/execute', [
language.name,
id,
]);

View File

@ -1,5 +1,4 @@
#!/usr/bin/env bash
cd tests
echo -n 'testing awk = '
../../cli/execute awk awk.awk