From a2518063016971e484bf790e5a2babef6a68dedb Mon Sep 17 00:00:00 2001 From: Miles Cranmer Date: Fri, 6 Sep 2024 18:47:32 +0100 Subject: [PATCH] Include one-liner cleanup command in README (#9) --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a899023..c5bebb1 100644 --- a/README.md +++ b/README.md @@ -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