File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22# TurtleTerm CloudFog surface bridge.
33set -eu
44
5+ bin_dir=" $( CDPATH= cd -- " $( dirname -- " $0 " ) " && pwd) "
6+ agentctl=" $bin_dir /turtle-agentctl"
7+ if [ ! -x " $agentctl " ]; then
8+ agentctl=" turtle-agentctl"
9+ fi
10+
511cmd=" ${1:- surfaces} "
612case " $cmd " in
713 surfaces)
814 shift || true
9- exec turtle- agentctl --stdio cloudfog-surfaces " $@ "
15+ exec " $ agentctl" --stdio cloudfog-surfaces " $@ "
1016 ;;
1117 inspect)
1218 shift || true
13- exec turtle- agentctl --stdio cloudfog-inspect " $@ "
19+ exec " $ agentctl" --stdio cloudfog-inspect " $@ "
1420 ;;
1521 request-execution)
1622 shift || true
1723 surface=" ${1:- cloudfog/ local-devshell} "
1824 shift || true
19- exec turtle- agentctl --stdio request-surface-execution " $surface " " $@ "
25+ exec " $ agentctl" --stdio request-surface-execution " $surface " " $@ "
2026 ;;
2127 * )
2228 echo " usage: turtle-cloudfog [surfaces|inspect <surface>|request-execution <surface> -- <command>]" >&2
You can’t perform that action at this time.
0 commit comments