Skip to content

mxcli new: add --container-runtime flag (parity with mxcli init) #739

Description

@kaspergff

Problem

mxcli new always generates a Docker-based devcontainer, regardless of the user's preferred container runtime. mxcli init already supports --container-runtime docker|podman, but mxcli new — which calls init internally — does not expose this option.

Expected behavior

mxcli new MyApp --version 11.12.0 --container-runtime podman

Should generate a Podman-based devcontainer (no docker-in-docker feature, MXCLI_CONTAINER_CLI=podman env var, podman installed in the Dockerfile).

Current behavior

--container-runtime is silently ignored on mxcli new; the generated .devcontainer/ always uses Docker.

Suggested fix

Pass --container-runtime through to the internal mxcli init call in cmd_new.go.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions