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:
@@ -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()!
|
||||
|
||||
Reference in New Issue
Block a user