MCPcopy Create free account
hub / github.com/SteffMet/tabby-vscode-agent / getSetupScript

Method getSetupScript

src/tools/shell-strategy.ts:95–98  ·  view source on GitHub ↗
(startMarker: string, endMarker: string)

Source from the content-addressed store, hash-verified

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"; ';

Callers

nothing calls this directly

Calls 1

getCleanupScriptMethod · 0.95

Tested by

no test coverage detected