profile
viewpoint

Ask questionsdeno install path/to/target_exe <URL>

I think the syntax deno install --dir /path/to target_exe is annoying if you just want to create a local alias. It can be improved by detecting a path separator in the exe name and treating it as a path in that case, just like when running executables in the shell.

deno install target_exe <URL> -> ~/.deno/bin/target_exe deno install ./target_exe <URL> -> $(pwd)/target_exe deno install path/to/target_exe <URL> -> $(pwd)/path/to/target_exe deno install /usr/local/bin/target_exe <URL> -> /usr/local/bin/target_exe

denoland/deno

Answer questions ry

The difference between path and name is subtle in that CLI you've suggested.. I wonder if we couldn't brain storm other ideas?

What if when you don't specify the "name" but only the URL, you get the shell script printed to stdout. Then users can do deno install $URL > /usr/local/bin/myprogram.sh ... This would be similar to how deno bundle works - and I think that CLI is quite nice.

useful!

Related questions

{WSL 2} Permission denied (os error 13) hot 1
gRPC in Deno? hot 1
deno remove/uninstall subcommand hot 1
Insight required: Resource (TCP) errors hot 1
TCP accept loop doesn't use for-await hot 1
Support d.ts files hot 1
Restore runtime lib generation capability hot 1
disable flaky tests _048_media_types_jsx and _019_media_types hot 1
Typescript Custom Transformers Support hot 1
reorg directory structure hot 1
Centos 7 GLIBC_2.18 not found hot 1
"deno ast script.ts" hot 1
Text decoding performance abysmally slow. hot 1
"deno ast script.ts" hot 1
Can't build master hot 1
Github User Rank List