Let's say I issue the following command:
deno run --allow-read /scripts/where-am-i.ts
What would need to be inside where-am-i.ts
for it to output:
/scripts
I've tried:
console.log(Deno.cwd());
which prints the directory the script was called from (/
in this example).
I have also tried:
console.log(Deno.execPath());
which prints the location of the deno binary (~/.cargo/bin/deno
for me).