@@ -215,7 +215,7 @@ by starting julia with `--inline=no`.
215215const test = API. test
216216
217217"""
218- Pkg.gc()
218+ Pkg.gc(; io::IO=DEFAULT_IO[] )
219219
220220Garbage collect packages that are no longer reachable from any project.
221221Only packages that are tracked by version are deleted, so no packages
@@ -225,9 +225,9 @@ const gc = API.gc
225225
226226
227227"""
228- Pkg.build(; verbose = false)
229- Pkg.build(pkg::Union{String, Vector{String}}; verbose = false)
230- Pkg.build(pkgs::Union{PackageSpec, Vector{PackageSpec}}; verbose = false)
228+ Pkg.build(; verbose = false, io::IO=DEFAULT_IO[] )
229+ Pkg.build(pkg::Union{String, Vector{String}}; verbose = false, io::IO=DEFAULT_IO[] )
230+ Pkg.build(pkgs::Union{PackageSpec, Vector{PackageSpec}}; verbose = false, io::IO=DEFAULT_IO[] )
231231
232232Run the build script in `deps/build.jl` for `pkg` and all of its dependencies in
233233depth-first recursive order.
@@ -241,8 +241,8 @@ redirecting to the `build.log` file.
241241const build = API. build
242242
243243"""
244- Pkg.pin(pkg::Union{String, Vector{String}})
245- Pkg.pin(pkgs::Union{PackageSpec, Vector{PackageSpec}})
244+ Pkg.pin(pkg::Union{String, Vector{String}}; io::IO=DEFAULT_IO[] )
245+ Pkg.pin(pkgs::Union{PackageSpec, Vector{PackageSpec}}; io::IO=DEFAULT_IO[] )
246246
247247Pin a package to the current version (or the one given in the `PackageSpec`) or to a certain
248248git revision. A pinned package is never updated.
@@ -256,8 +256,8 @@ Pkg.pin(name="Example", version="0.3.1")
256256const pin = API. pin
257257
258258"""
259- Pkg.free(pkg::Union{String, Vector{String}})
260- Pkg.free(pkgs::Union{PackageSpec, Vector{PackageSpec}})
259+ Pkg.free(pkg::Union{String, Vector{String}}; io::IO=DEFAULT_IO[] )
260+ Pkg.free(pkgs::Union{PackageSpec, Vector{PackageSpec}}; io::IO=DEFAULT_IO[] )
261261
262262If `pkg` is pinned, remove the pin.
263263If `pkg` is tracking a path,
@@ -272,8 +272,8 @@ const free = API.free
272272
273273
274274"""
275- Pkg.develop(pkg::Union{String, Vector{String}})
276- Pkg.develop(pkgs::Union{Packagespec, Vector{Packagespec}})
275+ Pkg.develop(pkg::Union{String, Vector{String}}; io::IO=DEFAULT_IO[] )
276+ Pkg.develop(pkgs::Union{Packagespec, Vector{Packagespec}}; io::IO=DEFAULT_IO[] )
277277
278278Make a package available for development by tracking it by path.
279279If `pkg` is given with only a name or by a URL, the package will be downloaded
@@ -346,7 +346,7 @@ Request a `ProjectInfo` struct which contains information about the active proje
346346const project = API. project
347347
348348"""
349- Pkg.instantiate(; verbose = false)
349+ Pkg.instantiate(; verbose = false, io::IO=DEFAULT_IO[] )
350350
351351If a `Manifest.toml` file exists in the active project, download all
352352the packages declared in that manifest.
@@ -360,15 +360,15 @@ dependencies in the manifest and instantiate the resulting project.
360360const instantiate = API. instantiate
361361
362362"""
363- Pkg.resolve()
363+ Pkg.resolve(; io::IO=DEFAULT_IO[] )
364364
365365Update the current manifest with potential changes to the dependency graph
366366from packages that are tracking a path.
367367"""
368368const resolve = API. resolve
369369
370370"""
371- Pkg.status([pkgs...]; mode::PackageMode=PKGMODE_PROJECT, diff::Bool=false)
371+ Pkg.status([pkgs...]; mode::PackageMode=PKGMODE_PROJECT, diff::Bool=false, io::IO=stdout )
372372
373373Print out the status of the project/manifest.
374374If `mode` is `PKGMODE_PROJECT`, print out status only about the packages
@@ -389,7 +389,7 @@ const status = API.status
389389
390390
391391"""
392- Pkg.activate([s::String]; shared::Bool=false)
392+ Pkg.activate([s::String]; shared::Bool=false, io::IO=DEFAULT_IO[] )
393393
394394Activate the environment at `s`. The active environment is the environment
395395that is modified by executing package commands.
0 commit comments