(rest, flag)
| 117 | rest = input; |
| 118 | } else if (first) { |
| 119 | const parsedDuration = parseDuration(first); |
| 120 | if (parsedDuration !== null) |
| 121 | intervalMs = parsedDuration; |
| 122 | else if (intervalMs === null) |
| 123 | return { ok: false, error: "Usage: /loop 0s <prompt> | /loop 5m <prompt> | /loop-goal <objective> | /loop-command 200m /compact | /loop-shell 10m npm test | /loop --watch progress.md <prompt>" }; |
| 124 | else |
| 125 | rest = input; |
| 126 | } |
| 127 | } |
| 128 | if (intervalMs === null) |
no test coverage detected