Repository navigation
carwash os: clean the operating system's space hogs - #12
Merged
Merged
Conversation
`carwash os` lists the areas present on this machine, numbered, with what cleaning each would free (a dry-run sweep, so age floors and kept names are applied), apps that must be closed, and how report-only areas are cleaned by hand. `--json` for scripts. `carwash os clean` cleans the default tier, or areas named by id or number (1,3-5). Swept areas skip running apps' caches; commands run with the terminal attached. Commands that need root or administrator rights are printed, or run through sudo or a UAC prompt with --escalate; carwash refuses to run as root. Same confirmation, --yes, --dry-run and history as the other clean commands. Named areas left undone exit 1; an open app does not fail a default-tier clean. User areas and overrides live in ~/.config/carwash/system.toml.
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
carwash os, the CLI for OS mode on top of the sweep engine (#10) and the area catalog (#11).List the areas present on this machine, numbered, with what cleaning each frees, apps that must be closed, and how to clean report-only areas by hand (
--jsontoo)Clean the default tier with
carwash os clean, or areas by id or number (2,5-7 trash)Print commands that need root or administrator, or run them through sudo or a UAC prompt with
--escalate; refuse to run as rootReuse the existing confirmation,
--yes,--dry-runand history behaviour; named areas left undone exit 1Read user areas and overrides from
~/.config/carwash/system.tomlDocument OS mode in the README and changelog
The tests define their own areas through the override file, so they don't depend on what's installed on the runner.