mirror of
https://github.com/djdevin/recflare.git
synced 2026-09-09 07:01:27 -07:00
Initial commit
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user