main_rename
#
CLI implementation for conda rename.
Renames an existing environment by cloning it and then removing the original environment.
Functions#
|
|
|
Ensure that the new prefix does not contain protected directories. |
|
Ensure that we are receiving at least one valid value for the environment |
|
Ensure that our destination does not exist |
|
Executes the command for renaming an existing environment. |
- configure_parser(sub_parsers: argparse._SubParsersAction, **kwargs) argparse.ArgumentParser #
- check_protected_dirs(prefix: str | pathlib.Path, json: bool = False) None #
Ensure that the new prefix does not contain protected directories.
- validate_src() str #
Ensure that we are receiving at least one valid value for the environment to be renamed and 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: argparse.Namespace, parser: argparse.ArgumentParser) int #
Executes the command for renaming an existing environment.