(parts: string[], action: SessionAction)
| 220 | } |
| 221 | |
| 222 | function formatGetActionLine(parts: string[], action: SessionAction): string | undefined { |
| 223 | const sub = action.positionals?.[0]; |
| 224 | const ref = action.positionals?.[1]; |
| 225 | if (!sub || !ref) return undefined; |
| 226 | parts.push(formatScriptArg(sub)); |
| 227 | parts.push(formatScriptArg(ref)); |
| 228 | if (ref.startsWith('@')) appendRefLabel(parts, action); |
| 229 | return parts.join(' '); |
| 230 | } |
| 231 | |
| 232 | function appendRefLabel(parts: string[], action: SessionAction): void { |
| 233 | const refLabel = action.result?.refLabel; |
no test coverage detected