piel.cli.utils#

Functions#

append_to_bashrc_if_does_not_exist(line)

Appends a line to .bashrc if it does not exist.

echo_and_run_subprocess(command, **kwargs)

Runs a subprocess and prints the command.

echo_and_check_subprocess(command, **kwargs)

Runs a subprocess and prints the command. Raises an exception if the subprocess fails.

get_python_install_directory()

Gets the piel installation directory.

get_piel_home_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