-
Notifications
You must be signed in to change notification settings - Fork 621
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wanted: installer #471
Comments
This is super useful! I'll work on that |
It would be cool if this could just be a part of the
|
@zaynv this will most likely happen after we land it here. I shall have prototype before end of weekend |
Should we select first writeable dir? How about keeping it all in one place and using Also we should take a moment to figure out how to go about updating and/or reloading of installed scripts |
~/.deno/bin sounds good to me |
Thanks @bartlomieju ! Usage of denoget:
This command creates files below: 1.) 2.) If you add ~/.deno/denoget/bin into $PATH, you can execute file_server directly. The reason why denoget uses wget is to read shebang of target script. #!/usr/bin/env deno --allow-all deno's fetch doesn't support redirect, so I couldn't read shebang from script using redirect server like I'm okay to remove this feature if I would add denoget into std. |
In Go's way,
These behaviors may be helpful to decide command name ;)
|
Let’s just call it “deno install” for now. I think “deno fetch” and “deno get” are confusing next to each other. |
I think 1) can be skipped and included directly in 2)
We can automate it
Can you elaborate? Won't Re: installation @syumai let's get PR going and iterate in there, I'll help out |
Yes, this can be
directly.
Maybe what I should try is to implement feature of this TODO comment.
Thanks! I'm going to start doing it this week ;) What I'm going to do:
Is this ok? If it is, I start doing it. @bartlomieju |
Sure, you can start with |
OK, then I'll create a PR to std first. |
@bartlomieju @ry I created a PR |
This cleans up some of the unnecessary LOC for the script. Related to denoland#471
a program which installs itself into your $PATH. It will walk your $PATH, find a writable directory, writing a new shell script into it called
$PATH/deno_install
The shell script will look like this:
So now people can run this:
This will create a new executable shell script called
$PATH/file_server
, which would have the following contents:The text was updated successfully, but these errors were encountered: