mac_maker.utilities.shell¶
Interruptable command loop for the click_shell module.
- class mac_maker.utilities.shell.CommandLoop[source]¶
Command Loop with interrupt for the click_shell module.
- exit(exit_code, pid)[source]¶
Exit a process, without interrupting the command loop.
- Parameters
exit_code (
int) – The code that will be used to exit.pid (
int) – The process ID that will be terminated.
- Return type
None
- exit_shell(exit_code, pid)[source]¶
Interrupt the command loop and exit the process.
- Parameters
exit_code (
int) – The code that will be used to exit.pid (
int) – The process ID that will be terminated.
- Return type
None