Skip to content

Commit

Permalink
fix precompiling packages specifically
Browse files Browse the repository at this point in the history
  • Loading branch information
IanButterworth committed Sep 3, 2024
1 parent 43e7849 commit 0619cc7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
1 change: 1 addition & 0 deletions src/REPLMode/command_declarations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,7 @@ Create a minimal project called `pkgname` in the current folder. For more featur
],
PSA[:name => "precompile",
:api => API.precompile,
:should_splat => false,
:arg_count => 0 => Inf,
:completions => :complete_installed_packages,
:description => "precompile all the project dependencies",
Expand Down
10 changes: 4 additions & 6 deletions test/new.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2232,16 +2232,14 @@ end
@test arg == "Foo"
@test isempty(opts)

api, arg1, arg2, opts = first(Pkg.pkg"precompile Foo Bar")
api, arg, opts = first(Pkg.pkg"precompile Foo Bar")
@test api == Pkg.precompile
@test arg1 == "Foo"
@test arg2 == "Bar"
@test arg == ["Foo", "Bar"]
@test isempty(opts)

api, arg1, arg2, opts = first(Pkg.pkg"precompile Foo, Bar")
api, arg, opts = first(Pkg.pkg"precompile Foo, Bar")
@test api == Pkg.precompile
@test arg1 == "Foo"
@test arg2 == "Bar"
@test arg == ["Foo", "Bar"]
@test isempty(opts)
end
end
Expand Down

0 comments on commit 0619cc7

Please sign in to comment.