question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Improve version output

See original GitHub issue

Problem

Currently the version CLI output (when running prisma2 -v) is quite “overwhelming”.

image

Solution

  1. I suggest to reformat the output by “segmenting” the output into two blocks. e.g.
@prisma/cli: 2.0.0-preview025

Current platform:     darwin
Query Engine:         prisma 8814060fa684793b73d07dbfccd4b7777b3361ae (at /usr/local/lib/node_modules/@prisma/cli/query-engine-darwin)
Migration Engine:     migration-engine-cli 8814060fa684793b73d07dbfccd4b7777b3361ae (at /usr/local/lib/node_modules/@prisma/cli/migration-engine-darwin)
Introspection Engine: introspection-core 8814060fa684793b73d07dbfccd4b7777b3361ae (at /usr/local/lib/node_modules/@prisma/cli/introspection-engine-darwin)
  1. Additionally I’d print the “key” of the key/value-pairs (e.g. @prisma/cli) in bold.

Additional context

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:1
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
schicklingcommented, Dec 16, 2022

@janpio for programmatic comparisons we should have a --json option anyway. I don’t think this was so far a stated requirement/design goal for the CLI.

2reactions
janpiocommented, Dec 16, 2022

👍 on splitting the output.

  1. Additionally I’d print the “key” of the key/value-pairs (e.g. @prisma/cli) in bold.

I think this would unfortunately lead to problems when you do programmatic string comparison as the bolding would be invisible control characters in the string, so you need to use strip-ansi first 😕

Read more comments on GitHub >

github_iconTop Results From Across the Web

Improve the output of the node version check script #2552
Currently the response at the top is overpowered by the npm error lines. It would be nice to increase the visibility of the...
Read more >
CLI to Aid Versioning of Input, Source, and Output
I'm currently working in an environment where I have the following: Multiple Inputs (with multiple versions); Source code to generate output ( ...
Read more >
Android Studio "Error Running Git" , 'Empty git --version output:'
I just went to the Git path ubication, the only different thing that I did was have stopped at the cmd folder. As...
Read more >
Solved: show version output on router - Cisco Community
Solved: Hi every body! I have few questions about the output of " show version" command. Show version command displays a lot of...
Read more >
Version Management-Output Type - SAP Community
Hi Gurus, Is there anyway Version Management in PO, related with output type of PO. I mean is there config to be done...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found