Skip to content

Commit

Permalink
add config home --json docs (conan-io#1464)
Browse files Browse the repository at this point in the history
* add config home --json docs

* Update reference/commands/output/config.rst

Co-Authored-By: Javier G. Sogo <[email protected]>
  • Loading branch information
czoido and jgsogo committed Oct 28, 2019
1 parent e6258c4 commit 88d42ac
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 2 deletions.
5 changes: 3 additions & 2 deletions reference/commands.rst
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ Other useful commands:



Output
------
JSON Output
-----------

JSON documents generated by the commands:

Expand All @@ -85,6 +85,7 @@ JSON documents generated by the commands:
commands/output/upload.rst
commands/output/user.rst
commands/output/info.rst
commands/output/config.rst

Return codes
------------
Expand Down
26 changes: 26 additions & 0 deletions reference/commands/output/config.rst
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"
}

0 comments on commit 88d42ac

Please sign in to comment.