API

pyenvs command entrypoint

dependencies(configuration, formatter)

Builds the environment set mapping the configuration using the given formatter.

Source code in multienv/pyenvs.py
def dependencies(configuration: Configuration, formatter: Formatters) -> list:
    """Builds the environment set mapping the configuration using the given formatter."""
    return formatter.build(configuration)

entrypoint()

The pyenvs command entrypoint.

Source code in multienv/pyenvs.py
def entrypoint():
    """The pyenvs command entrypoint."""

    commands = {
        'info': _info,
        'dependencies': _dependencies
    }

    ns: Namespace = _create_parser().parse_args()

    commands[ns.CMD](ns)