688 B
688 B
podmactl
podmactl
is a script to manage the podman machines declared in Home
Manager.
How it works
main()
is a (hopefully) straight-forward method to read, but the gist of it is:
- The declared machines and their configuration are passed in.
- Existing machines and their configuration are listed.
- A diff is made from the declared machines and existing machines.
- New machines are added.
- Existing machines are updated.
- Old machines are removed.
- The machine declared as
active
is started (if necessary).
Developing
Enter a devshell with nix-shell
.
Make your changes and then run
# Code autoformatting
black .
# Unittests
python -m unittest