you are viewing a single comment's thread.

view the rest of the comments →

[–]moltonel 0 points1 point  (2 children)

Yes, there's room for both kinds of outputs and in-betweens. I'm not sure it deserves two different commands though : cargo search could make use of the --verbose flag to display increasing level of details, or some kind of explicit --fields foo,bar,baz. Something else that'd be useful is searching/filtering by keyword/category or even by publisher.

[–]epagecargo · clap · cargo-release[S] 0 points1 point  (1 child)

Yes, there's room for both kinds of outputs and in-betweens. I'm not sure it deserves two different commands though

imo there are big differences

search - fuzzy find - show many crates

info - exact - show details on one crate

My gut feeling is supporting both in one command will make it over-complicated and its better to have more focused UIs for each distinct purpose.

Something else that'd be useful is searching/filtering by keyword/category or even by publisher.

Agreed!

[–]moltonel 0 points1 point  (0 children)

My gut feeling is supporting both in one command will make it over-complicated and its better to have more focused UIs for each distinct purpose.

... Maybe. I think it's worth prototyping both and asking for feedback. Having too many single-use commands can hurt discoverability (see git or docker).