1
0
mirror of https://github.com/tw93/Mole.git synced 2026-03-22 19:05:07 +00:00
Commit Graph

300 Commits

Author SHA1 Message Date
Tw93
6ce1ea17d8 chore: auto format code 2026-03-05 07:31:50 +00:00
tw93
9ee425766d chore: Update Mole version to 1.29.0 2026-03-05 15:31:11 +08:00
tw93
2578d0a920 chore: Bump version to 1.29.0 2026-03-05 15:16:55 +08:00
tw93
8e4b8a5e0d Improve update checks and cleanup UX, add timeout regressions 2026-03-05 12:00:07 +08:00
tw93
814b3680b9 feat(version): show commit hash for nightly installs (#517)
Display commit hash in parentheses after "Nightly" channel label
to help users identify exact version when testing nightly builds.
2026-03-03 16:58:31 +08:00
tw93
27a2cc5927 feat: show nightly channel in version output
Refs #517
2026-03-02 10:55:36 +08:00
tw93
de57a20828 refactor(dry-run): unify flag handling in completion and remove 2026-03-01 21:04:41 +08:00
陳德生
05446e0847 Add dry-run support across destructive commands (#516)
* chore: update contributors [skip ci]

* Add dry-run support across destructive commands

Implement dry-run for uninstall, purge, installer, touchid, completion, and remove flows.\nGuard side effects in uninstall path (launchctl, defaults writes, kill/brew actions), update help/README, and add coverage in CLI/Bats tests.\n\nValidation: ./scripts/check.sh and ./scripts/test.sh (452 tests, 0 failures, 8 skipped).

* test(purge): keep dev-compatible purge coverage

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Tw93 <hitw93@gmail.com>
2026-03-01 20:03:22 +08:00
tw93
adcd98096a fix(update): keep sudo session alive during installer run
Start sudo keepalive after authorization and clean it up on all failure/success paths to avoid repeated password prompts and overlapping update UI output. Closes #514.
2026-03-01 19:56:42 +08:00
tw93
172742b0d5 fix(version): avoid SIGPIPE in Homebrew install detection
Cache Homebrew formula output and use shell string matching to prevent pipefail SIGPIPE races that could misreport script installs as manual. Closes #513.
2026-03-01 19:56:33 +08:00
tw93
c1f25eb854 chore: Bump version to 1.28.1 2026-02-28 11:23:38 +08:00
tw93
194fe871e5 chore(release): bump to 1.28.0 and refresh security audit 2026-02-27 10:07:49 +08:00
tw93
4c9a71315f refactor(ui): unify action and list hints across commands 2026-02-23 11:34:22 +08:00
tw93
082cc1d09b feat(update): add --nightly channel for script installs
Refs #482
2026-02-22 21:25:42 +08:00
tw93
e581da1d65 chore(release): bump version to 1.27.0 2026-02-21 20:22:16 +08:00
tw93
88a4c83a2b fix: update version to 1.26.0 2026-02-15 08:52:06 +08:00
tw93
b605dde450 refactor: simplify analyze volumes behavior 2026-02-10 15:32:13 +08:00
Andrei Murariu
37bdc6edf7 feat: Exclude External Disks from Analyze (#428)
Created optional flag `--exclude-volumes` for `mo analyze` to consent the users to analyze the filesystem without taking in consideration attached Volumes.
Normal behaviour (with volumes included) is left untouched.
2026-02-10 15:28:33 +08:00
tw93
e6829b9a5d fix: improve cache freshness fallback and proxy detection 2026-02-07 17:48:55 +08:00
tw93
11325720c4 fix: update version to 1.24.0 2026-02-01 09:32:18 +08:00
tw93
e966838c82 style: standardize punctuation across codebase
- Replace parentheses with commas for supplementary info
- Use commas instead of em-dashes for separators
- Update bullet points from - to * in some contexts
- Improve version extraction regex with fallback logic
2026-01-26 14:36:06 +08:00
tw93
fb4cef5fa7 docs: add help text and test for 'mo update --force' 2026-01-26 10:10:46 +08:00
Andrei Murariu
670f970b4c feature: mo update --force flag implementation (#360) 2026-01-26 10:07:58 +08:00
Tw93
c0596f51e3 Fix update output version parsing 2026-01-23 23:28:27 +08:00
Tw93
f9c33ac317 publish 1.23.1 2026-01-23 22:41:43 +08:00
Tw93
a4f1f49fab feat: improve version detection and error handling
- Add fallback to mo --version when brew list fails
- Add error handling for debug log write failures
- Improve version extraction with multiple fallback strategies
2026-01-23 22:25:35 +08:00
Tw93
3d985ebcb9 publish 1.23 2026-01-23 20:31:54 +08:00
Tw93
72f42a363e chore: remove redundant sensors card and bump version to 1.22.1
- Disable sensors data collection (CPU temp already shown in CPU card)
- Remove unused sensor-related functions (collectSensors, prettifyLabel, hasSensorData, renderSensorsCard)
- Remove unused gopsutil/sensors import
- Fix inline spinner disown call with explicit PID
- Update version from 1.22.0 to 1.22.1
- Update SECURITY_AUDIT.md to match new version and date
2026-01-17 10:46:11 +08:00
Tw93
f05441344a publish 1.22.0 2026-01-17 10:14:39 +08:00
Tw93
5ec237b9dd publish 1.21 2026-01-14 15:26:42 +08:00
Tw93
e186086578 Fix handing issue on macOS Sequoia after completing 1 task (#291) 2026-01-11 08:11:43 +08:00
Tw93
d45423df94 fix issue with mo remove #289 2026-01-10 20:08:47 +08:00
Tw93
6be1915db2 1.20.0 2026-01-08 16:25:32 +08:00
Tw93
c871d1ada0 chore: auto format code 2026-01-05 03:03:26 +00:00
Tw93
d9facc347d fix: ensure version extraction processes only the first line of output 2026-01-05 11:01:23 +08:00
Tw93
9236f45229 1.19.0 2026-01-05 10:43:56 +08:00
Tw93
ad42266b09 refactor: rename installers command to installer across commands, script, and documentation. 2026-01-04 10:23:23 +08:00
Tw93
4680982ea1 Merge pull request #240 from JackPhallen/feat/installers-clean
feat: Create utility to find stale app installers
2026-01-04 10:12:00 +08:00
Jack Phallen
a2f071fd48 feat: Create utility to find stale app installers 2026-01-03 10:00:57 -08:00
Tw93
6dfd675417 refactor: standardize epoch time retrieval with get_epoch_seconds and ensure locale-independent string transformations. 2026-01-03 18:07:47 +08:00
Tw93
6c8c87bef6 refactor: remove Christmas seasonal feature 2026-01-02 19:26:22 +08:00
Tw93
115e2d3ef1 1.18.0 2026-01-02 19:17:49 +08:00
Tw93
88f434f01a feat: Add browser version cleanup tests, enhance shell completion with new tests, and introduce core command definitions. 2026-01-02 09:55:42 +08:00
Jean-Jacques Martrès
6c93f9a0e9 🐛 fix(code formatting): use spaces not tabs 2026-01-01 18:30:18 +01:00
Jean-Jacques Martrès
553bd47127 feat: add shell completion script
This commit introduces a new `completion` command that provides shell
completion for bash, zsh, and fish.

The completion is implemented as a shell script in `bin/completion.sh`
and the main `mole` script has been updated to use it.

This approach was chosen to keep the completion logic in shell script,
as the `mole` command is primarily a set of shell scripts.
2026-01-01 15:27:23 +01:00
Tw93
9aa569cbb6 feat: Enhance clean, optimize, analyze, and status commands, and update security audit documentation. 2025-12-31 16:23:31 +08:00
Tw93
108563ed9b refactor: enhance install script robustness with improved error handling, option validation, and safer file operations, and add error checking for alias removal during uninstall. 2025-12-31 14:46:14 +08:00
Tw93
6cf6a995cd Fix: Improve Homebrew uninstallation feedback in 'mo remove'
When 'mole remove' is used and Mole was installed via Homebrew, the script
now provides more explicit feedback if the 'brew uninstall --force mole'
command fails. Previously, errors were silently ignored.

This change ensures that if Homebrew uninstallation encounters an issue,
the user is informed with the error output and instructed on how to
manually complete the uninstallation, preventing inconsistencies where
Homebrew still believes Mole is installed.

Additionally, a minor improvement to config_dir resolution in update_mole
was included for robustness.
2025-12-31 00:17:40 +08:00
Tw93
fff27a7578 1.17.0 2025-12-30 18:18:11 +08:00
Tw93
8711c5b5fc feat: add cloud storage protection and bump version to 1.16.2
- Protect Dropbox, OneDrive, Google Drive, Backblaze, Box (Issue #204)
- Add homebrew.mxcl.* services protection
- Document mo optimize --dry-run in help and README
- Bump version to 1.16.2
2025-12-30 14:38:22 +08:00