Initial commit

This commit is contained in:
Devin Zuczek
2026-06-08 18:23:40 -04:00
commit 8e644a5c20
141 changed files with 21414 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
export function getOutcome({
exitCode,
skippedCode,
}: {
exitCode: number | null
skippedCode?: number
}) {
if (exitCode === 0) {
return chalk.green('Success!')
} else if (exitCode === skippedCode) {
return chalk.yellow('Skipped')
} else {
return chalk.red(`Failed with code: ${exitCode}`)
}
}
/**
* Non-zero exit code used to indicate "skipped due to shfmt/rg unavailable"
*/
export const SHFMT_SKIPPED_EXIT_CODE = 113