Giter Site home page Giter Site logo

Prettify `cargo crev verify` about cargo-crev HOT 11 CLOSED

dpc avatar dpc commented on May 18, 2024
Prettify `cargo crev verify`

from cargo-crev.

Comments (11)

hirschenberger avatar hirschenberger commented on May 18, 2024 2

I used verify deps just now and asked myself what these numbers are. A table header would be great to show what the columns mean.

from cargo-crev.

dpc avatar dpc commented on May 18, 2024 1

@rffrancon Yeah, the simpler the better.

from cargo-crev.

dpc avatar dpc commented on May 18, 2024 1

Note: Now verify deps will have review counters. 286d69d

from cargo-crev.

ffranr avatar ffranr commented on May 18, 2024

I think the result rows should be sorted: unknown, verified, and then flagged. In this way the most important results will be the most visible. I also think that they should be sorted a second time alphabetically. The summary statistics should then be underneath all of that.

@dpc @Dylan-DPC What do you guys think?

from cargo-crev.

dpc avatar dpc commented on May 18, 2024

I for one like the way stuff is displayed currently. It is easily grepable and shows up in real-time, without having to wait. But I guess the default could be something more human-friendly.

@rffrancon Seems to me that the logical sorting order should be ether verified, unknown, flagged or in reverse. Probably flaggged stuff should be at the bottom. I agree about sorting in alphabetical order.

A --no-sort would by nice too that would just display stuff as it goes through it.

from cargo-crev.

ffranr avatar ffranr commented on May 18, 2024

I agree with you. I like the realtime side of it also. But it would just be nice if the results were displayed in a consistent way, changes would be easier to spot. --no-sort is a nice plan.

We could also verify asynchronously from what I can tell, but perhaps that is over complicated for this stage.

from cargo-crev.

pimotte avatar pimotte commented on May 18, 2024

I used verify deps just now and asked myself what these numbers are. A table header would be great to show what the columns mean.

The header is there now. As a first-time user I could make sense of most of them. flgs stands for flags, and mostly marks crates that have a FFI? The only column I can't grasp is "own." What does that mean?

verifi.  reviews     downloads    own. flgs crate               version        
unknown   0  0    94496    243751 0/1       miniz_oxide          0.2.0                                                                                                                                                           
unknown   0  0     1426      1504 0/1       default              0.1.2          
unknown   0  0   417415   1792454 2/6       unicode-segmentation 1.2.1          
unknown   0  0   182481   1894095 1/1  CB   miniz-sys            0.1.11         
unknown   0  0    12135     52632 0/1       darling_macro        0.8.0          
unknown   0  0   952114   3394285 1/1       clap                 2.32.0         
unknown   0  0   595096   2434709 1/1  CB   backtrace-sys        0.1.24 

from cargo-crev.

dpc avatar dpc commented on May 18, 2024

@pimotte I'm having a hard time to balance lack of space and staying informative. :)

CB is one flag for Custom Build . I would like to have more flags like that in the future: unsafe, etc. There's an open issue for it. own. is owners . known owners / total owners. You can edit known owners with cargo crev edit known.

from cargo-crev.

nbigaouette avatar nbigaouette commented on May 18, 2024

How about outputing to csv format?

  • We could use (as a user) xsv to prettify as a table
  • The csv would contain the header. If I pipe the versify output to a file (cargo crev crate verify --show-all --for-id ... > crev.log) the header is not included in the file.
  • Headers are hard to associate to columns due to alignments. Using csv format woulf fix that.

from cargo-crev.

dpc avatar dpc commented on May 18, 2024

@nbigaouette It shouldn't be difficult to add outputs in any format (considering how nice serde is). PRs welcome. I really can't invest much time in nice-to-have features right now.

from cargo-crev.

dpc avatar dpc commented on May 18, 2024

Good enough now, methinks.

from cargo-crev.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.