({ positionals, flags }: ReplayCommandParams)
| 17 | }; |
| 18 | |
| 19 | function handleReplayRunCommand({ positionals, flags }: ReplayCommandParams): false { |
| 20 | if (positionals.length > 1) { |
| 21 | throw new AppError('INVALID_ARGS', 'replay accepts exactly one input path: replay <path>'); |
| 22 | } |
| 23 | if (flags.replayExportFormat !== undefined || flags.out !== undefined) { |
| 24 | throw new AppError( |
| 25 | 'INVALID_ARGS', |
| 26 | 'replay --format/--out are only supported with replay export.', |
| 27 | ); |
| 28 | } |
| 29 | return false; |
| 30 | } |
| 31 | |
| 32 | async function handleReplayExportCommand({ |
| 33 | positionals, |