mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-21 04:26:28 +02:00
cli: code cleanup
This commit is contained in:
parent
e57e56037c
commit
d1b41e3c2f
3 changed files with 19 additions and 14 deletions
|
@ -50,16 +50,16 @@ exports.handler = async function(argv){
|
|||
})) || "";
|
||||
|
||||
|
||||
const response = await api.run_job(
|
||||
argv.language,
|
||||
argv['language-version'],
|
||||
files,
|
||||
argv.file,
|
||||
argv.args,
|
||||
const response = await api.run_job({
|
||||
language: argv.language,
|
||||
version: argv['language-version'],
|
||||
files: files,
|
||||
main: argv.file,
|
||||
arsg: argv.args,
|
||||
stdin,
|
||||
argv.ct,
|
||||
argv.rt
|
||||
)
|
||||
compile_timeout: argv.ct,
|
||||
run_timeout: argv.rt
|
||||
})
|
||||
|
||||
function step(name, ctx){
|
||||
console.log(chalk.bold(`== ${name} ==`))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue