API
pyenvs command entrypoint
config(configuration, formatter)
Builds the environment set mapping the configuration using the given formatter.
Source code in multienv/pyenvs.py
def config(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,
'config': _config
}
ns: Namespace = _create_parser().parse_args()
commands[ns.CMD](ns)