Function
getRunCommand
(agent: string, script: string)
Source from the content-addressed store, hash-verified
| 1113 | } |
| 1114 | |
| 1115 | function getRunCommand(agent: string, script: string) { |
| 1116 | switch (agent) { |
| 1117 | case 'yarn': |
| 1118 | case 'pnpm': |
| 1119 | case 'bun': |
| 1120 | return [agent, script] |
| 1121 | case 'deno': |
| 1122 | return [agent, 'task', script] |
| 1123 | default: |
| 1124 | return [agent, 'run', script] |
| 1125 | } |
| 1126 | } |
| 1127 | |
| 1128 | type ColorName = Exclude<Parameters<typeof util.styleText>[0], any[]> |
| 1129 | |
Tested by
no test coverage detected