parent
74f4be962e
commit
6f0d4cabcd
@ -1,3 +1,5 @@ |
||||
deno.d.ts |
||||
.vscode |
||||
.local |
||||
.output |
||||
web/*.js |
||||
|
@ -1,3 +1,3 @@ |
||||
{ |
||||
"deno.enable": true |
||||
} |
||||
"deno.enable": true |
||||
} |
||||
|
@ -0,0 +1 @@ |
||||
--allow-env=CWD,HOME --allow-read=.local/config.json --allow-run=zenity,xclip |
@ -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