Skip to content

feat: add uninstall dry-run mode [salvage #46359] - #60111

Merged
teknium1 merged 1 commit into
mainfrom
hermes/hermes-b744ad9b
Jul 7, 2026
Merged

feat: add uninstall dry-run mode [salvage #46359]#60111
teknium1 merged 1 commit into
mainfrom
hermes/hermes-b744ad9b

Conversation

@teknium1

@teknium1 teknium1 commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Summary

hermes uninstall --dry-run prints the full uninstall plan without stopping services or deleting files.

Salvage of #46359 (branch was 3007 commits stale; cherry-picked cleanly onto current main, authorship preserved).

Changes

  • hermes_cli/subcommands/uninstall.py: add --dry-run flag
  • hermes_cli/uninstall.py: early-return _print_uninstall_dry_run() — non-mutating plan covering gateway cleanup, PATH cleanup, wrappers/symlinks, GUI artifacts, code checkout, and data removal/preservation (incl. named-profile enumeration under --full)
  • tests/hermes_cli/test_uninstall_dry_run.py: dry-run skips _perform_uninstall; parser accepts the flag

Validation

Check Result
scripts/run_tests.sh tests/hermes_cli/test_uninstall_dry_run.py tests/hermes_cli/test_uninstall_node_symlinks.py tests/hermes_cli/test_gui_uninstall.py all passed

Infographic

Uninstall dry-run mode

Port from nanocoai/nanoclaw#2719: let operators preview the uninstall plan without stopping services or deleting files.
@alt-glitch alt-glitch added type/feature New feature or request P3 Low — cosmetic, nice to have comp/cli CLI entry point, hermes_cli/, setup wizard labels Jul 7, 2026
@teknium1
teknium1 merged commit 4916897 into main Jul 7, 2026
31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/cli CLI entry point, hermes_cli/, setup wizard P3 Low — cosmetic, nice to have type/feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants