-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Added a silent mode for download() function. E.g. `download("http://g… #12149
Conversation
…oogle.com", silent=true)` will make not output to STDERR or STDOUT.
You can always redirect those streams to suppress them. Also, ref JuliaPackaging/BinDeps.jl#135 |
@tkelman can you please give an example of such a call? How does such a suppression would look like when I call download(...)? |
Oh.. you mean literally the implementation of download_cmd in BinDeps? Please give an equivalent usage example otherwise I am not following. My best guess is that you suggest solving JuliaPackaging/BinDeps.jl#135 by merging its download into a Base.download? |
Sorry, the reference was to a past discussion on improvements to this function. |
Maybe you mean something like
? Well yes, if the conclusion of JuliaPackaging/BinDeps.jl#135 is to keep the shellout approach, one can split |
I'm not sure there was much of a conclusion to JuliaPackaging/BinDeps.jl#135 yet, other than we should consolidate and improve whatever downloading functionality can be reasonably done well within base. We haven't had people volunteer to work on this area yet as I guess it hasn't been much of a priority, but contributions welcome. We might want to do some design discussion first though, adding flags piecemeal is probably not the ideal way forward. |
Ok, I used BinDeps for now. But I will think of a better design in Base.download, maybe by creating a type and some symbols for all the options. |
…oogle.com", silent=true)` will make not output to STDERR or STDOUT.
Conflicts: base/interactiveutil.jl
Should we close this for now then? Also note that next time it's best to create a separate branch for pull requests rather than submitting them from your fork's master branch, otherwise you end up with a lot of messy merge commits cluttering up the history. |
…oogle.com", silent=true)` will make not output to STDERR or STDOUT.
Added a test into
test/file.jl