From 2ab508b4d22a10b6f0b851c180ed9e899355a964 Mon Sep 17 00:00:00 2001 From: Thomas Hobson Date: Sun, 14 Mar 2021 19:36:12 +1300 Subject: [PATCH] cli: basename main file --- cli/commands/execute.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cli/commands/execute.js b/cli/commands/execute.js index 3d04ec6..b4baf35 100644 --- a/cli/commands/execute.js +++ b/cli/commands/execute.js @@ -52,7 +52,7 @@ exports.handler = async function(argv){ language: argv.language, version: argv['language-version'], files: files, - main: argv.file, + main: path.basename(argv.file), args: argv.args, stdin, compile_timeout: argv.ct, @@ -84,6 +84,8 @@ exports.handler = async function(argv){ chalk.bold.yellow(ctx.signal) ) } + + if(response.compile) step('Compile', response.compile) step('Run', response.run)