cli: basename main file

This commit is contained in:
Thomas Hobson 2021-03-14 19:36:12 +13:00
parent 877473b128
commit 2ab508b4d2
No known key found for this signature in database
GPG Key ID: 9F1FD9D87950DB6F
1 changed files with 3 additions and 1 deletions

View File

@ -52,7 +52,7 @@ exports.handler = async function(argv){
language: argv.language, language: argv.language,
version: argv['language-version'], version: argv['language-version'],
files: files, files: files,
main: argv.file, main: path.basename(argv.file),
args: argv.args, args: argv.args,
stdin, stdin,
compile_timeout: argv.ct, compile_timeout: argv.ct,
@ -85,6 +85,8 @@ exports.handler = async function(argv){
) )
} }
if(response.compile) step('Compile', response.compile) if(response.compile) step('Compile', response.compile)
step('Run', response.run) step('Run', response.run)