Create¶
The relenv create command.
- exception relenv.create.CreateException¶
Raised when there is an issue creating a new relenv environment.
- relenv.create.chdir(path: str | PathLike[str]) Iterator[None]¶
Context manager that changes to the specified directory and back.
- Parameters:
path (str) – The path to temporarily change to
- relenv.create.create(name: str, dest: str | PathLike[str] | None = None, arch: str | None = None, version: str | None = None) None¶
Create a relenv environment.
- Parameters:
name (str) – The name of the environment
dest (str) – The path the environment should be created under
arch (str) – The architecture to create the environment for
- Raises:
CreateException – If there is a problem in creating the relenv environment
- relenv.create.main(args: Namespace) None¶
The entrypoint into the
relenv createcommand.- Parameters:
args (argparse.Namespace) – The args passed to the command
- relenv.create.setup_parser(subparsers: argparse._SubParsersAction[argparse.ArgumentParser]) None¶
Setup the subparser for the
createcommand.- Parameters:
subparsers (argparse._SubParsersAction) – The subparsers object returned from
add_subparsers