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.

dotnet list reference and other similar commands should not print header or should have a switch to disable it

See original GitHub issue

Currently scenarios like:

dotnet list reference | xargs ...

are not working because we print headers. We should have a switch to disable that or not print it at all.

Issue Analytics

  • State:open
  • Created 7 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
MichaelSimonscommented, Nov 11, 2020

I’m thinking we need an option akin to git status --porcelain to support machine-readable output.

Yes please. I just encountered a scenario where I need to retrieve the RID from the cmd line. Having dotnet info support machine-readable output would be nice.

cc @KathleenDollard

0reactions
jasonkarnscommented, Sep 23, 2020

Alternatively, some have suggested that stderr should get all of the user-friendly text while stdout gets the machine-readable text.

This is quite widespread in the *nix world and was the first thing I and others typically reach for. Indeed, I was driven here to post about this issue precisely because:

for m in $(dotnet ef migrations list 2>/dev/null); do

didn’t do the correct thing. (Because the first two lines of output on STDOUT are Build started... and Build succeeded. before the actual migrations are printed.)

It’s all well and good for there to be --quiet or --verbose flags for fine-grained control. But even if those were available, I would still consider the CLI to be violating convention and norms if it continues to print diagnostic output to STDOUT by default.

Read more comments on GitHub >

github_iconTop Results From Across the Web

dotnet list reference command - .NET CLI
The dotnet list reference command provides a convenient option to list project references for a given project.
Read more >
The type is defined in an assembly that is not referenced ...
In my case "You must add a reference to assembly" actually meant, that caller and reference projects didn't have the same target framework....
Read more >
OpenLAB CDS Report Template Editor
With Single Sequence Summary reports, RTE automatically creates a list of all sequences in the current data scope. The generated report then shows...
Read more >
Heroku CLI Commands
These are the help texts for each of the core Heroku CLI commands. You can also see this text in your terminal with...
Read more >
Technical Reference Guide - TM-C3500 series
If you turn off the product using the power switch, the print head is automatically capped to avoid ink from drying. When you...
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