forked from conan-io/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add config home --json docs (conan-io#1464)
* add config home --json docs * Update reference/commands/output/config.rst Co-Authored-By: Javier G. Sogo <[email protected]>
- Loading branch information
Showing
2 changed files
with
29 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
|
||
.. _config_json: | ||
|
||
|
||
Config output | ||
------------- | ||
|
||
.. warning:: | ||
|
||
This is an **experimental** feature subject to breaking changes in future releases. | ||
|
||
The :command:`conan config home` provides a ``--json`` parameter to generate | ||
a file containing the information of the conan home directory. | ||
|
||
.. code-block:: bash | ||
$ conan config home --json home.json | ||
It will create a JSON file like: | ||
|
||
.. code-block:: json | ||
:caption: home.json | ||
{ | ||
"home": "/path/to/conan/home" | ||
} |