conan-io / conan

Conan - The open-source C and C++ package manager
https://conan.io
MIT License
8.3k stars 985 forks source link

[feature] conan list is not ergonomic #17299

Closed pierricgimmig closed 2 weeks ago

pierricgimmig commented 2 weeks ago

Make conan list output all packages without requiring the "*"

Intuitively, I want to be able to list my conan packages using conan list

C:\Users\pierr\git
λ conan list
ERROR: Missing pattern or graph json file

I then have to go through the docs to find an example that tells me that I'm missing "*".

Why require the "*" argument? It's a small thing, but it's frustrating to the user, especially since Conan is close to Python, and we'd expect conan list to work like pip list does.

Suggestion, make conan list behave like conan list *

Have you read the CONTRIBUTING guide?

memsharded commented 2 weeks ago

Hi @pierricgimmig

Thanks for your suggestion.

I am proposing the change in https://github.com/conan-io/conan/pull/17300, but can't guarantee 100% it will move forward, I will check with the team, there might be other UX reasons why this wasn't already the default, there were even tests that were checking this behavior.

pierricgimmig commented 2 weeks ago

Thank you @memsharded !

memsharded commented 2 weeks ago

https://github.com/conan-io/conan/pull/17300 was merged, so this will be in next Conan 2.10.

Thanks for the feedback!

pierricgimmig commented 2 weeks ago

Thanks for the quick turnaround!