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

Change Conan 2.0 conan inspect syntax #12247

Closed
czoido opened this issue Oct 5, 2022 · 1 comment
Closed

Change Conan 2.0 conan inspect syntax #12247

czoido opened this issue Oct 5, 2022 · 1 comment
Assignees
Milestone

Comments

@czoido
Copy link
Contributor

czoido commented Oct 5, 2022

Related with: #12235 (comment)

conan inspect has a subcommand path that I think we should reconsider. The motivation for adding this is having path subcommand as an approach to leave the possibility open for the future to inspect references in the cache and in remotes. You have to call:

conan inspect path conanfile.py 

instead of

conan inspect conanfile.py

Maybe we should consider using a syntax more aligned with other commands, something like:

conan inspect conanfile.py
conan inspect --reference=zlib/1.2.11 --> goes to the local cache

I would leave the inspect on remote case for users to implement their own using custom commands or maybe:

conan inspect --reference=zlib/1.2.11 --cache --> goes to the local cache
conan inspect --reference=zlib/1.2.11 --remote=remote --> goes to the remote
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