(startMarker: string, endMarker: string)
| 75 | } |
| 76 | |
| 77 | getSetupScript(startMarker: string, endMarker: string): string { |
| 78 | const cleanup = this.getCleanupScript(); |
| 79 | return `__TM=0;function __tc(){${cleanup}};function __tpc(){if [[ $__TM -eq 0 ]];then local e=$?;local c=$(fc -ln -1);if [[ "$c" == *"${startMarker}"* ]];then __TM=1;echo "${endMarker}";echo "exit_code: $e";__tc;fi;fi};precmd_functions=(__tpc)`; |
| 80 | } |
| 81 | } |
| 82 | |
| 83 | /** |
nothing calls this directly
no test coverage detected