Skip to content

m devcontainer require_env_vars

Verify that the required environment variables are set.

Exists with non-zero exit code if any of the required environment variables are not set.

Source code in m/cli/commands/devcontainer/require_env_vars.py
class Arguments(BaseModel):
    """Verify that the required environment variables are set.

    Exists with non-zero exit code if any of the required environment variables
    are not set.
    """

    env_vars: list[str] = Arg(
        help='environment variables to check',
        nargs='+',
        positional=True,
    )

Positional arguments

env_vars

environment variables to check