Skip to content

Commit 94e9ae8

Browse files
LachlanGunntkelman
authored andcommitted
Added documentation and tests for Pkg.setprotocol.
1 parent 5491de5 commit 94e9ae8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

base/pkg.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,11 @@ test(pkgs::AbstractString...; coverage::Bool=false) = cd(Entry.test,AbstractStri
370370

371371
dependents(packagename::AbstractString) = Reqs.dependents(packagename)
372372

373+
doc"""
374+
setprotocol!(proto)
375+
376+
Set the protocol used to access GitHub-hosted packages. Defaults to 'https', with a blank `proto` delegating the choice to the package developer.
377+
"""
373378
setprotocol!(proto::AbstractString) = Cache.setprotocol!(proto)
374379

375380

0 commit comments

Comments
 (0)