Shell Command

Simplified shell command implementation.

_enable_capture(render)[source]

Enable terminal capture operation.

Return type:

int

Parameters:

render (RenderUtils) – Command utilities instance

Returns:

The exit code of the operation

Return type:

int

_remove_bash_functions(render, file)[source]

Remove a bash integration.

Return type:

int

Parameters:
  • render (RenderUtils) – Command utilities instance

  • file (Path) – The path object with the correct location

Returns:

The exit code of the operation

Return type:

int

_write_bash_functions(render, file, contents)[source]

Write bash functions to the desired location.

Return type:

int

Parameters:
  • render (RenderUtils) – Command utilities instance

  • file (Path) – The path object with the correct location

  • contents (Union[bytes, str]) – The contents to be written in the file

Returns:

The exit code of the operation

Return type:

int