piel.cli.utils#
Functions#
Appends a line to .bashrc if it does not exist. |
|
|
Runs a subprocess and prints the command. |
|
Runs a subprocess and prints the command. Raises an exception if the subprocess fails. |
Gets the piel installation directory. |
|
Gets the piel home directory. |
Module Contents#
- append_to_bashrc_if_does_not_exist(line: str)#
Appends a line to .bashrc if it does not exist.
- Parameters:
line
Returns:
- echo_and_run_subprocess(command: list, **kwargs)#
Runs a subprocess and prints the command.
- Parameters:
command
**kwargs
Returns:
- echo_and_check_subprocess(command: list, **kwargs)#
Runs a subprocess and prints the command. Raises an exception if the subprocess fails.
- Parameters:
command
**kwargs
Returns:
- get_python_install_directory()#
Gets the piel installation directory.
- Returns:
The piel installation directory.
- Return type:
pathlib.Path
- get_piel_home_directory()#
Gets the piel home directory.
- Returns:
The piel home directory.
- Return type:
pathlib.Path