5 changed files with 28 additions and 7 deletions
@ -0,0 +1 @@ |
|||
--allow-read --allow-net --location https://rs.thunderk.net/ |
@ -0,0 +1 @@ |
|||
--allow-read --allow-net --location https://test.rs.thunderk.net/ |
@ -0,0 +1,19 @@ |
|||
#!/bin/sh |
|||
# Simplified run tool for deno commands |
|||
|
|||
if test $# -eq 0 |
|||
then |
|||
echo "Usage: $0 [file or command]" |
|||
exit 1 |
|||
elif echo $1 | grep -q '.*.ts' |
|||
then |
|||
denocmd=run |
|||
denoargs=$1 |
|||
shift |
|||
else |
|||
denocmd=$1 |
|||
shift |
|||
fi |
|||
|
|||
denoargs="$(cat config/$denocmd.flags 2> /dev/null) $denoargs $@" |
|||
exec deno $denocmd $denoargs |
Loading…
Reference in new issue