refactor: improve Podman installer

- Refactor Podman installer to use a more robust approach
- Improve error handling and clarify the installation/removal
- Update example usage to reflect changes

Co-authored-by: supermario <mariobassem12@gmail.com>
This commit is contained in:
Mahmoud Emad
2025-01-06 12:51:25 +02:00
parent 624639f87e
commit 61b210d7e0
5 changed files with 46 additions and 35 deletions

View File

@@ -4,8 +4,8 @@ import freeflowuniverse.herolib.installers.virt.podman as podman_installer
mut podman := podman_installer.get()!
if podman.installed() {
podman.destroy()!
} else {
podman.install()!
}
// To install
podman.install()!
// To remove
podman.destroy()!