(parts: string[], action: SessionAction)
| 189 | } |
| 190 | |
| 191 | function formatClickLikeActionLine(parts: string[], action: SessionAction): string | undefined { |
| 192 | const first = action.positionals?.[0]; |
| 193 | if (!first) return undefined; |
| 194 | if (first.startsWith('@')) { |
| 195 | parts.push(formatScriptArg(first)); |
| 196 | appendRefLabel(parts, action); |
| 197 | appendScriptSeriesFlags(parts, action); |
| 198 | return parts.join(' '); |
| 199 | } |
| 200 | if (action.positionals.length === 1) { |
| 201 | parts.push(formatScriptArg(first)); |
| 202 | appendScriptSeriesFlags(parts, action); |
| 203 | return parts.join(' '); |
| 204 | } |
| 205 | return undefined; |
| 206 | } |
| 207 | |
| 208 | function formatFillActionLine(parts: string[], action: SessionAction): string | undefined { |
| 209 | const ref = action.positionals?.[0]; |
no test coverage detected