diff --git a/internal/container/container.go b/internal/container/container.go index 5bfa904..95d7351 100644 --- a/internal/container/container.go +++ b/internal/container/container.go @@ -92,11 +92,10 @@ func runGenerate(image, apiRoot, output, generatorInput, apiPath string) error { containerArgs = append(containerArgs, fmt.Sprintf("--api-path=%s", apiPath)) } - ls, err := getCommand("ls", "-la", generatorInput) + _, err := getCommand("ls", "-la", generatorInput) if err != nil { return err } - slog.Info(ls) runDockerWithEntrypointOverride(image, mounts, "id", []string{}) runDockerWithEntrypointOverride(image, mounts, "ls", []string{"-la"}) runDockerWithEntrypointOverride(image, mounts, "ls", []string{"-la", "/generator-input"}) @@ -199,9 +198,14 @@ func gid() (string, error) { return getCommand("id", "-g") } func getCommand(c string, args ...string) (string, error) { - out, err := exec.Command(c, args...).Output() + cmd := exec.Command(c, args...) + slog.Info(cmd.String()) + + out, err := cmd.Output() if err != nil { return "", err } - return string(out[:len(out)-1]), nil + result := string(out[:len(out)-1]) + slog.Info(result) + return result, nil }