Julia Package Management
Manage Julia packages in the current environment.
Arguments
action- One of: add, rm, status, update, instantiate, resolve, test, develop, freepackages- Package names or paths (required for add/rm/develop/free, optional for update/test)
Instructions
Parse the user's arguments to determine the action and packages:
| User Input | Action | Packages |
|---|---|---|
add JSON |
add | JSON |
add JSON DataFrames CSV |
add | JSON, DataFrames, CSV |
rm OldPackage |
rm | OldPackage |
status |
status | (none) |
update |
update | (none - updates all) |
update JSON |
update | JSON |
instantiate |
instantiate | (none) |
resolve |
resolve | (none) |
test |
test | (none - tests current project) |
test MyPackage |
test | MyPackage |
develop ./MyLocalPkg |
develop | ./MyLocalPkg |
free MyPackage |
free | MyPackage |
Call pkg with the appropriate action and packages parameters.
Notes
- After adding packages, remind the user to load them with
using PackageName - The
instantiateaction installs dependencies from Project.toml/Manifest.toml - The
testaction runs Pkg.test() - can be slow for large test suites - The
developaction puts a package in development mode (uses local code) - The
freeaction exits development mode (returns to registry version) - After
develop, consider usingrevise(action="revise")to hot-reload changes