feat: main flow created

This commit is contained in:
jb
2026-03-09 11:37:43 -03:00
parent 315807bbab
commit 6870144f39
16 changed files with 689 additions and 210 deletions
+27
View File
@@ -0,0 +1,27 @@
package tui
import (
"fmt"
"os/exec"
)
func RunContainer(image string, name string, port int) error {
cmd := exec.Command(
"docker", "run",
"-d",
"--name", name,
"-p", fmt.Sprintf("%d:%d", port, port),
image,
)
return cmd.Run()
}
func PullImage(image string) (string, error) {
cmd := exec.Command("docker", "pull", image)
out, err := cmd.CombinedOutput()
return string(out), err
}