Improve version output
See original GitHub issueProblem
Currently the version CLI output (when running prisma2 -v
) is quite “overwhelming”.
Solution
- 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)
- Additionally I’d print the “key” of the key/value-pairs (e.g.
@prisma/cli
) in bold.
Additional context
- Related issue: https://github.com/prisma/prisma2/issues/981
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:5 (4 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@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.👍 on splitting the output.
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 😕