Implement basic version of local shell

Also added two simple reporters that can be used by the shell to report command execution details.

Signed-off-by: Vladimir Domnich <v.domnich@yadro.com>
This commit is contained in:
Vladimir Domnich 2022-08-24 19:01:07 +04:00 committed by Vladimir
parent c0bbfd1705
commit f6ee129354
11 changed files with 453 additions and 0 deletions

9
tests/helpers.py Normal file
View file

@ -0,0 +1,9 @@
import traceback
def format_error_details(error: Exception) -> str:
return "".join(traceback.format_exception(
etype=type(error),
value=error,
tb=error.__traceback__)
)