Dec-01-2024, 11:14 PM
I'm wondering how one would go about writing a GUI for a CLI package? I've tried doing internet searches to see how it's done but I'm using wrong searches... nothing coming close to what I'm looking for. I've scratched my head a few times trying to think of how it is done but haven't made progress. I'm looking for some pointers on where to start. I don't think it'll make a difference but I only know GTK and tkinter.
Say, for a simple example, podlet - it's a package that turns a podman run command into a .container unit file for systemd.
ie, for the run command...
Thank you for any help!
Say, for a simple example, podlet - it's a package that turns a podman run command into a .container unit file for systemd.
ie, for the run command...
podman run --publish 5900:5900 --name my_container -v /home/server/data:/home/user/ container_image x11vnc -forever -createUsing podlet...
podlet run --publish 5900:5900 --name my_container -v /home/server/data:/home/user/ container_image x11vnc -forever -create=>
[Container] ContainerName=my_container Exec=x11vnc -forever -create Image=container_image PublishPort=5900:5900 Volume=/home/server/my_container/data:/home/user/I guess what I'm wondering is would I have to incorporate the podlet code into my code or can I somehow add the podlet package so that it's something that can be called. I'd imagine the latter is a can-o'-worms because of dependencies. What is the approach?
Thank you for any help!