(startMarker: string, endMarker: string)
| 93 | } |
| 94 | |
| 95 | getSetupScript(startMarker: string, endMarker: string): string { |
| 96 | const cleanup = this.getCleanupScript(); |
| 97 | return `__TF="/tmp/tabby_cmd_$$"; function __tc() { ${cleanup} }; __tpc() { local e=$?; if [[ -f "$__TF" ]]; then echo "${endMarker}"; echo "exit_code: $e"; rm -f "$__TF" 2>/dev/null; __tc; fi }; trap 'if [[ -f "$__TF" ]]; then echo "${endMarker}"; echo "exit_code: $?"; rm -f "$__TF" 2>/dev/null; __tc; fi' EXIT; OLD_PS1="$PS1"; PS1='$(__tpc)'$PS1`; |
| 98 | } |
| 99 | |
| 100 | getCommandPrefix(): string { |
| 101 | return 'touch "$__TF"; '; |
nothing calls this directly
no test coverage detected