Skip to content

Commit

Permalink
Include one-liner cleanup command in README (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
MilesCranmer authored Sep 6, 2024
1 parent b98f3a2 commit a251806
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,11 @@ using PkgCleanup
* `PkgCleanup.manifests()`: to remove unneeded `Manifest.toml` from your
`~/.julia/logs/manifest_usage.toml`.

Yes, that's it.
Execute the following line in your terminal to create a temp environment, install this package, and then clean up everything:

```bash
julia --startup-file=no --project=$(mktemp -d) -e 'using Pkg; Pkg.add(; url="https://github.com/giordano/PkgCleanup.jl"); using PkgCleanup, Dates; PkgCleanup.artifacts(); PkgCleanup.manifests(); Pkg.gc(; collect_delay=Dates.Day(0))'
```

### Demo

Expand Down

0 comments on commit a251806

Please sign in to comment.