main_rename#

CLI implementation for conda rename.

Renames an existing environment by cloning it and then removing the original environment.

Functions#

validate_src(→ str)

Validate that we are receiving at least one value for --name or --prefix

validate_destination(→ str)

Ensure that our destination does not exist

execute(args, _)

Executes the command for renaming an existing environment.

validate_src() str#

Validate that we are receiving at least one value for --name or --prefix and ensure that the "base" environment is not being renamed

validate_destination(dest: str, force: bool = False) str#

Ensure that our destination does not exist

execute(args, _)#

Executes the command for renaming an existing environment.