feat: Add uninstall script for Fabric AI CLI with logging and OS detection

This commit is contained in:
Peter Wood
2025-11-30 19:39:45 -05:00
parent bb945ebd42
commit 6aa087cf0a
3 changed files with 227 additions and 0 deletions

11
.github/prompts/removefabric.prompt.md vendored Normal file
View File

@@ -0,0 +1,11 @@
Create a portable bash shell script to safely uninstall the Fabric AI CLI and related packages on Debian, Ubuntu, and Fedora systems. The script must:
- Detect the operating system and select the appropriate package manager (`apt`, `dnf`, or `yum`).
- Uninstall Fabric packages installed via system package managers and Python package managers (`pip`, `pip3`).
- Check for errors after each removal step; abort the script if a critical error occurs.
- Prompt the user for confirmation before making any changes.
- Advise the user to reboot the system if required after uninstallation.
- Log all actions and errors to a user-specified log file.
- Be fully self-contained and compatible with bash.
Reference the official [Fabric documentation](https://github.com/danielmiessler/Fabric) and your distributions package manager documentation for implementation details.