hosts, a python with textual based /etc/hosts editor.
Find a file
phg 1b57be2cbf Implement HostsManager for managing hosts file edits with permission handling
- Added PermissionManager class for managing sudo permissions.
- Introduced HostsManager class for high-level operations on hosts file.
- Implemented methods for entering/exiting edit mode, toggling entries, moving entries, updating entries, saving the hosts file, and restoring backups.
- Integrated permission validation and backup creation during edit operations.
- Enhanced main application to support edit mode and associated actions.
- Added tests for PermissionManager and HostsManager to ensure functionality and error handling.
2025-07-29 22:43:01 +02:00
memory-bank Implement HostsManager for managing hosts file edits with permission handling 2025-07-29 22:43:01 +02:00
src/hosts Implement HostsManager for managing hosts file edits with permission handling 2025-07-29 22:43:01 +02:00
tests Implement HostsManager for managing hosts file edits with permission handling 2025-07-29 22:43:01 +02:00
.clinerules initial commit 2025-07-29 13:50:55 +02:00
.gitignore Add .gitignore file to exclude unnecessary files and directories 2025-07-29 15:09:57 +02:00
.python-version initial commit 2025-07-29 13:50:55 +02:00
main_old.py Add unit tests for HostEntry and HostsFile models, and implement HostsParser tests 2025-07-29 14:52:31 +02:00
pyproject.toml Update dependencies to latest versions: textual 5.0.1 and pytest 8.4.1 2025-07-29 16:07:50 +02:00
README.md initial commit 2025-07-29 13:50:55 +02:00
uv.lock Update dependencies to latest versions: textual 5.0.1 and pytest 8.4.1 2025-07-29 16:07:50 +02:00