id = "mole"
name = "Mole"
homepage = "https://mole.fit"
description = "Clean, uninstall, analyze, optimize, and monitor your Mac. Free open-source CLI, plus a native Mac app."
icon = "https://mole.fit/img/favicon-mole-192-ba32c29d.png"
executables = ["mo", "mole"]
platforms = ["macos"]
[dotfiles]
paths = [
"~/.config/mole/whitelist",
"~/.config/mole/purge_paths",
]
exclude = ["~/Library/Logs/mole/"]
secret = []
side_effect = false
[commands]
format = 1
label = "Mole"
description = "Mole maintenance commands. Only the cleanup preview is covered."
quality = "ai-draft"
parser = { end_of_options = "--", interleave = "permute", long_equals = true, short_attached = false, short_bundles = false }
[[commands.subcommand]]
path = ["clean"]
label = "Clean up disk space"
description = "Remove caches, logs, temporary files and leftovers of uninstalled apps. Defaults to previewing with --dry-run; the whitelist editor is left out."
[[commands.subcommand.source]]
id = "help"
kind = "help"
revision = "mo clean --help"
evidence = """Usage: mo clean [OPTIONS]
Options:
--dry-run, -n Preview cleanup without making changes
--external PATH Clean OS metadata from a mounted external volume
--debug Show detailed operation logs"""
[[commands.subcommand.field]]
id = "dry_run"
label = "Preview only (dry run)"
type = "boolean"
option = ["--dry-run", "-n"]
sources = ["help"]
[[commands.subcommand.field]]
id = "external"
label = "External volume to clean"
type = "path"
option = ["--external"]
path = { kind = "directory", role = "input" }
sources = ["help"]
[[commands.subcommand.field]]
id = "debug"
label = "Detailed logs"
type = "boolean"
option = ["--debug"]
sources = ["help"]
[[commands.subcommand.task]]
id = "preview"
label = "Preview cleanup"
fields = ["dry_run"]
required = ["dry_run"]
set = { dry_run = [true] }
[[commands.subcommand.group]]
id = "basic"
label = "Basic"
fields = ["dry_run", "external", "debug"]