Skip to content

Commit fbc8500

Browse files
danimtbjgsogo
authored andcommitted
Update install.json output (#959)
* Update install.json output * Reduce output * fix json
1 parent a5b6e61 commit fbc8500

File tree

2 files changed

+67
-60
lines changed

2 files changed

+67
-60
lines changed

reference/commands/output/install.rst

Lines changed: 66 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -50,69 +50,76 @@ The output JSON contains a two first level keys:
5050

5151
.. code-block:: bash
5252
53-
$ conan install zlib/1.2.11@conan/stable --json install.json
53+
$ conan install OpenSSL/1.0.2l@conan/stable --json install.json
5454
5555
.. code-block:: json
5656
:caption: install.json
5757
58-
{
59-
"error": false,
60-
"installed": [
61-
{
62-
"recipe": {
63-
"id": "zlib/1.2.11@conan/stable",
64-
"name": "zlib",
65-
"version": "1.2.11",
66-
"user": "conan",
67-
"channel": "stable",
68-
"downloaded": false,
69-
"cache": true,
70-
"error": null,
71-
"remote": null,
72-
"time": "2018-10-10T10:28:28.351753",
73-
"dependency": true
74-
},
75-
"packages": [
76-
{
77-
"id": "0eaf3bfbc94fb6d2c8f230d052d75c6c1a57a4ce",
78-
"downloaded": false,
79-
"cache": true,
80-
"error": null,
81-
"remote": null,
82-
"time": "2018-10-10T10:28:28.356103",
83-
"built": false,
84-
"cpp_info": {
85-
"includedirs": [
86-
"include"
87-
],
88-
"libdirs": [
89-
"lib"
90-
],
91-
"resdirs": [
92-
"res"
93-
],
94-
"bindirs": [
95-
"bin"
96-
],
97-
"builddirs": [
98-
""
99-
],
100-
"libs": [
101-
"z"
102-
],
103-
"rootpath": "/Users/jgsogo/.conan/data/zlib/1.2.11/conan/stable/package/0eaf3bfbc94fb6d2c8f230d052d75c6c1a57a4ce",
104-
"version": "1.2.11",
105-
"description": "A Massively Spiffy Yet Delicately Unobtrusive Compression Library (Also Free, Not to Mention Unencumbered by Patents)"
106-
}
107-
}
108-
]
109-
}
110-
]
111-
}
112-
58+
{
59+
"error":false,
60+
"installed":[
61+
{
62+
"recipe":{
63+
"id":"OpenSSL/1.0.2l@conan/stable",
64+
"downloaded":true,
65+
"exported":false,
66+
"error":null,
67+
"remote":"https://api.bintray.com/conan/conan/conan-center",
68+
"time":"2018-11-29T11:59:53.601813",
69+
"dependency":true,
70+
"name":"OpenSSL",
71+
"version":"1.0.2l",
72+
"user":"conan",
73+
"channel":"stable"
74+
},
75+
"packages":[
76+
{
77+
"id":"606fdb601e335c2001bdf31d478826b644747077",
78+
"downloaded":true,
79+
"exported":false,
80+
"error":null,
81+
"remote":"https://api.bintray.com/conan/conan/conan-center",
82+
"time":"2018-11-29T12:00:03.874284",
83+
"built":false,
84+
"cpp_info":{
85+
"includedirs":[
86+
"include"
87+
],
88+
"libdirs":[
89+
"lib"
90+
],
91+
"resdirs":[
92+
"res"
93+
],
94+
"bindirs":[
95+
"bin"
96+
],
97+
"builddirs":[
98+
""
99+
],
100+
"libs":[
101+
"ssleay32",
102+
"libeay32",
103+
"crypt32",
104+
"msi",
105+
"ws2_32"
106+
],
107+
"rootpath":"C:/Users/user/.conan/data/OpenSSL/1.0.2l/conan/stable/package/606fdb601e335c2001bdf31d478826b644747077",
108+
"version":"1.0.2l",
109+
"description":"OpenSSL is an open source project that provides a robust, commercial-grade, and full-featured toolkit for the Transport Layer Security (TLS) and Secure Sockets Layer (SSL) protocols",
110+
"public_deps":[
111+
"zlib"
112+
]
113+
}
114+
}
115+
]
116+
},
117+
{"...":"..."
118+
}
119+
]
120+
}
113121
114122
.. note::
115123

116-
As this is a marked as *experimental*, some fields may be removed or added: fields
117-
``version`` and ``description`` inside ``cpp_info`` will eventually be removed and paths
118-
may be changed for absolute ones.
124+
As this is a marked as *experimental*, some fields may be removed or added: fields ``version`` and ``description`` inside ``cpp_info``
125+
will eventually be removed and paths may be changed for absolute ones.

reference/commands/output/upload.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ The output JSON contains a two first level keys:
3535
$ conan upload h* -all -r conan-center --json upload.json
3636
3737
.. code-block:: json
38-
:caption: install.json
38+
:caption: upload.json
3939
4040
{
4141
"error":false,

0 commit comments

Comments
 (0)