Skip to content

m ci env

Create the [m_dir]/.m/env.list file.

With the bashrc option it will print a bashrc snippet and no file will be created. Note that boolean values are lowercased in the snippet. This eventually be the case for generated env.list file.

Source code in m/cli/commands/ci/env.py
class Arguments(BaseModel):
    """Create the [m_dir]/.m/env.list file.

    With the `bashrc` option it will print a bashrc snippet and no file will
    be created. Note that boolean values are lowercased in the snippet. This
    eventually be the case for generated env.list file.
    """

    pretty: bool = Arg(
        default=False,
        help='format json payload with indentation',
    )
    yaml: bool = Arg(
        default=False,
        help='use yaml format',
    )
    m_dir: str = Arg(
        default='m',
        help='m project directory',
        positional=True,
    )
    bashrc: bool = Arg(
        default=False,
        help='print bashrc snippet',
    )

Options

--pretty

  • default: false

format json payload with indentation

--yaml

  • default: false

use yaml format

--bashrc

  • default: false

print bashrc snippet

Positional arguments

m_dir

  • default: 'm'

m project directory