Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A shorter version of output #16

Open
pravic opened this issue Jul 25, 2018 · 1 comment
Open

A shorter version of output #16

pravic opened this issue Jul 25, 2018 · 1 comment

Comments

@pravic
Copy link
Collaborator

pravic commented Jul 25, 2018

To continue from #15.

If you'd rather have quieter output, I'd be OK with just printing just the id or name or both with the dependents instead of the full metadata.

I'd rather go with an additional option (like, -q or --brief) that eliminates id, homepage, downloads (?),

Compare:

$ cargo show tokio
--
id: tokio
name: tokio
description: An event-driven, non-blocking I/O platform for writing asynchronous I/O
backed applications.

documentation: https://docs.rs/tokio/0.1
homepage: https://tokio.rs
repository: https://github.com/tokio-rs/tokio
max_version: 0.1.7
downloads: 315648
license: None
created: 2016-07-01T20:39:07.497766+00:00
updated: 2018-06-07T03:20:24.962151+00:00

vs

$ cargo show tokio --brief
--
name: tokio
description: An event-driven, non-blocking I/O platform for writing asynchronous I/O
backed applications.

documentation: https://docs.rs/tokio/0.1
repository: https://github.com/tokio-rs/tokio
max_version: 0.1.7
updated: 2018-06-07T03:20:24.962151+00:00

Also I'd replace downloads' number with a human-readable format (at least, 315,648, or 315K).

@g-k
Copy link
Owner

g-k commented Jul 31, 2018

I'd rather go with an additional option (like, -q or --brief) that eliminates id, homepage, downloads

👍 wfm

Also I'd replace downloads' number with a human-readable format (at least, 315,648, or 315K).

👍

Maybe the datetime strings for created and updated too.

See also #6 though I'd be in favor of just landing these changes and telling people who want custom output formats to use --json piped to jq or a similar tool.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants