Files
shell/.github/prompts/removefabric.prompt.md

11 lines
869 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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.