formats#

Helpers for rendering CLI help text.

Functions#

get_available_environment_formats(→ str)

Render epilog text for grouped environment format plugins.

get_multiplatform_lockfile(→ str | None)

Return first default_filenames from the first multiplatform lockfile.

get_available_environment_formats(formats: collections.abc.Mapping[conda.plugins.types.EnvironmentFormat, collections.abc.Sequence[conda.plugins.types.CondaPluginWithEnvironmentFormat]], *, indent: int = 0) str#

Render epilog text for grouped environment format plugins.

Each plugin is one bullet line: NAME, NAME (aliases: ...), NAME: FILENAME, ..., or combined aliases plus filenames.

get_multiplatform_lockfile(formats: collections.abc.Mapping[conda.plugins.types.EnvironmentFormat, collections.abc.Sequence[conda.plugins.types.CondaEnvironmentExporter]]) str | None#

Return first default_filenames from the first multiplatform lockfile.