Skip to content
This repository has been archived by the owner on Aug 22, 2023. It is now read-only.

feat: add oclif pretty printer #27

Merged
merged 15 commits into from
Jun 25, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Add prettyPrint default export
  • Loading branch information
chadian committed Jun 24, 2020
commit b0672bb05ebf1f9a95e6369f91cffc9a81088fec
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ import {CLIError, addOclifExitCode, OclifError} from './errors/cli'
import {ExitError} from './errors/exit'
import prettyPrint, {PrettyPrintableError, applyPrettyPrintOptions} from './errors/pretty-print'

export {prettyPrint}

export function exit(code = 0): never {
throw new ExitError(code)
}
Expand Down