-
Notifications
You must be signed in to change notification settings - Fork 991
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
Add format json option to conan cache path #15613
Add format json option to conan cache path #15613
Conversation
Co-authored-by: Rubén Rincón Blanco <git@rinconblanco.es>
Co-authored-by: James <memsharded@gmail.com>
LGTM as it is, but I wonder if we might want something slightly more elaborate? At the moment, the following two invocationS:
and
would both return a json have the key e.g.
and
or even a richer
Just an idea, but perhaps if we decide to do something richer in the future, leave the json today in a way that can be extended without breaking? |
I think it should be good enough with the command to return 1 path only because all the use cases I have found so far it is to do operations on 1 folder, like the metadata one, but it is unlikely to need several folders, and it that is the case they can do several
Should be future-proof enough, and maybe if we want a multiple-paths command and accept multiple Because for the basic case I am concerned that you'd need to use both the argumetn So I think might be good as-is |
Makes sense! Merging :) Thanks @juansblanco !! |
Changelog: Feature: Add
--format=json
option toconan cache path
.Docs: Omit
Added
--format=json
option to theconan cache path
command that returns a json as:{"cache_path": "C:\\Users\\user\\.conan2\\p\\zlib2cad50ee1214e\\e"}
Closes: #15599