Skip to content

Commit

Permalink
feat(cli): add prisma-fmt to --version
Browse files Browse the repository at this point in the history
  • Loading branch information
Jolg42 committed May 6, 2020
1 parent bda7f1b commit 553bb81
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/packages/cli/src/Version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,19 @@ export class Version implements Command {
'PRISMA_QUERY_ENGINE_BINARY',
platform,
)
const fmtBinary = await this.resolveEngine(
'prisma-fmt',
'PRISMA_FMT_BINARY',
platform,
)

const rows = [
[packageJson.name, packageJson.version],
['Current platform', platform],
['Query Engine', this.printBinaryInfo(queryEngine)],
['Migration Engine', this.printBinaryInfo(migrationEngine)],
['Introspection Engine', this.printBinaryInfo(introspectionEngine)],
['Format Binary', this.printBinaryInfo(fmtBinary)],
]

return this.printTable(rows, args['--json'])
Expand Down

0 comments on commit 553bb81

Please sign in to comment.