ui: remove misleading training template problemId

This commit is contained in:
undefined committed 2022-03-25 16:48:24 +08:00
1 parent 21865f20fc
commit 0989c369a8
3 files changed
+3 -15

No files matched your search

+1 -13
View File
@@ -14,18 +14,6 @@ function getWorkspaces() {
});
}
function spawnSync(command, silent) {
if (!silent) console.log(`$ ${command}`);
const args = command.split(/\s+/);
const result = spawn.sync(args[0], [...args.slice(1), '--color'], { cwd, encoding: 'utf8' });
if (result.status) {
throw new Error(result.stderr);
} else {
if (!silent) console.log(result.stdout);
return result.stdout.trim();
}
}
function spawnAsync(command, path) {
const args = command.split(/\s+/);
const options = { stdio: 'inherit' };
@@ -38,5 +26,5 @@ function spawnAsync(command, path) {
}
module.exports = {
cwd, spawnSync, spawnAsync, getWorkspaces,
cwd, spawnAsync, getWorkspaces,
};