Skip to content

feat(installer): add official uninstall.sh script and worker endpoint - #10

Merged
brasga-a merged 1 commit into
mainfrom
feat/uninstall-script-and-worker-route
Sep 20, 2026
Merged

brasga-a merged 1 commit into
mainfrom
feat/uninstall-script-and-worker-route

Conversation

@brasga-a

Copy link
Copy Markdown
Owner

Summary

  • Adds an official, portable POSIX uninstaller script (uninstall.sh) matching install.sh styling and conventions.
  • Supports --dir, --purge, --yes, --dry-run, --no-modify-path, and --quiet flags.
  • By default (without --purge), preserves user packages store and configuration, while deleting the executable and stripping # pkg-managed paths lines from shell rc files (~/.bashrc, ~/.zshrc, ~/.config/fish/config.fish).
  • Adds /uninstall and /uninstall.sh endpoints in the Cloudflare Worker (infra/cloudflare/src/index.js) with CDN caching.
  • Cross-references uninstallation instructions in install.sh --help.
  • Adds automated integration tests in tests/test_uninstall_script.rs (5 tests covering help, dry-run, clean uninstall, full purge, and fish shell cleanup).

Verification

  • cargo test --test test_uninstall_script: All 5 tests passed.
  • cargo test --workspace: All 94 core unit tests and 26 integration tests passed.
  • cargo fmt --all --check: Clean.
  • cargo clippy --workspace --all-targets -- -D warnings: 0 warnings, 0 errors.

@brasga-a
brasga-a merged commit 922c112 into main Sep 20, 2026
1 check passed
@brasga-a
brasga-a deleted the feat/uninstall-script-and-worker-route branch September 20, 2026 02:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant