mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-21 04:26:28 +02:00
piston improvements. adds version endpoint, new execution output, awk language support, and installs all dependencies directly when possible and avoids apt unless not possible
This commit is contained in:
parent
f6af99bbee
commit
8fcdec7275
7 changed files with 143 additions and 85 deletions
49
lxc/execute
49
lxc/execute
|
@ -42,17 +42,11 @@ exec 200>&-
|
|||
|
||||
bin=
|
||||
case "$lang" in
|
||||
"python2")
|
||||
bin=python2
|
||||
"awk")
|
||||
bin=awk
|
||||
;;
|
||||
"python" | "python3")
|
||||
bin=python3
|
||||
;;
|
||||
"ruby")
|
||||
bin=ruby
|
||||
;;
|
||||
"javascript" | "js" | "node")
|
||||
bin=node
|
||||
"bash")
|
||||
bin=bash
|
||||
;;
|
||||
"c")
|
||||
bin=c
|
||||
|
@ -60,29 +54,38 @@ case "$lang" in
|
|||
"cpp" | "c++")
|
||||
bin=cpp
|
||||
;;
|
||||
"go")
|
||||
bin=go
|
||||
;;
|
||||
"c#" | "csharp" | "cs")
|
||||
"csharp" | "cs" | "c#")
|
||||
bin=csharp
|
||||
;;
|
||||
"php")
|
||||
bin=php
|
||||
;;
|
||||
"nasm" | "asm")
|
||||
bin=nasm
|
||||
"go")
|
||||
bin=go
|
||||
;;
|
||||
"java")
|
||||
bin=java
|
||||
;;
|
||||
"swift")
|
||||
bin=swift
|
||||
"nasm" | "asm")
|
||||
bin=nasm
|
||||
;;
|
||||
"node" | "js" | "javascript")
|
||||
bin=node
|
||||
;;
|
||||
"php")
|
||||
bin=php
|
||||
;;
|
||||
"python2")
|
||||
bin=python2
|
||||
;;
|
||||
"python3" | "python")
|
||||
bin=python3
|
||||
;;
|
||||
"ruby")
|
||||
bin=ruby
|
||||
;;
|
||||
"rust")
|
||||
bin=rust
|
||||
;;
|
||||
"bash")
|
||||
bin=bash
|
||||
"swift")
|
||||
bin=swift
|
||||
;;
|
||||
"typescript" | "ts")
|
||||
bin=typescript
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue