( parts: string[], action: Pick<SessionAction, 'positionals' | 'flags' | 'runtime'>, )
| 6 | } from './script-utils.ts'; |
| 7 | |
| 8 | export function appendOpenActionScriptArgs( |
| 9 | parts: string[], |
| 10 | action: Pick<SessionAction, 'positionals' | 'flags' | 'runtime'>, |
| 11 | ): void { |
| 12 | for (const positional of action.positionals ?? []) { |
| 13 | parts.push(formatScriptArg(positional)); |
| 14 | } |
| 15 | if (action.flags?.relaunch) { |
| 16 | parts.push('--relaunch'); |
| 17 | } |
| 18 | appendRuntimeHintFlags(parts, action.runtime); |
| 19 | } |
| 20 | |
| 21 | export function parseReplayOpenFlags(args: string[]): { |
| 22 | positionals: string[]; |
no test coverage detected