cli: basename main file
This commit is contained in:
parent
877473b128
commit
2ab508b4d2
|
@ -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,
|
||||||
|
@ -84,6 +84,8 @@ exports.handler = async function(argv){
|
||||||
chalk.bold.yellow(ctx.signal)
|
chalk.bold.yellow(ctx.signal)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if(response.compile) step('Compile', response.compile)
|
if(response.compile) step('Compile', response.compile)
|
||||||
step('Run', response.run)
|
step('Run', response.run)
|
||||||
|
|
Loading…
Reference in New Issue