(status: string | undefined)
| 30 | } as const; |
| 31 | |
| 32 | export function goalExitCode(status: string | undefined): number { |
| 33 | switch (status) { |
| 34 | case 'blocked': |
| 35 | return GOAL_EXIT_CODES.blocked; |
| 36 | case 'paused': |
| 37 | return GOAL_EXIT_CODES.paused; |
| 38 | default: |
| 39 | return GOAL_EXIT_CODES.complete; |
| 40 | } |
| 41 | } |
| 42 | |
| 43 | const GOAL_PREFIX = /^\/goal(\s|$)/; |
| 44 |
no outgoing calls
no test coverage detected