Hi,

Can't we add more details to the existing way information is shown? If the
information are on the JSON shouldn't it be possible to show it in a user
friendly manner?


Regards,
Chamila de Alwis
Software Engineer | WSO2 | +94772207163
Blog: code.chamiladealwis.com



On Wed, May 20, 2015 at 2:50 PM, Dinithi De Silva <dinit...@wso2.com> wrote:

> +1 for printing the json string as in other commands
> (describe-application, describe-network-partition..etc)
>
> On Wed, May 20, 2015 at 1:33 PM, Anuruddha Liyanarachchi <
> anurudd...@wso2.com> wrote:
>
>> Hi Devs,
>>
>> In the CLI, "describe-cartridge" displays data in following format which
>> doesn't show the network-interfaces or properties defined in the cartridge.
>>
>>
>> -------------------------------------
>>> Cartridge Information:
>>> -------------------------------------
>>> Type: php
>>> Category: framework
>>> Name: php
>>> Description: php Cartridge
>>> Version: 7
>>> Multi-Tenant: false
>>> Hostname: php.stratos.org
>>> -------------------------------------
>>> IaaS Providers:
>>> -------------------------------------
>>> +-----------+------------------------------------------------+
>>> | Type      | Image ID                                       |
>>> +-----------+------------------------------------------------+
>>> | mock      | RegionOne/b4ca55e3-58ab-4937-82ce-817ebd10240e |
>>> +-----------+------------------------------------------------+
>>> | openstack | RegionOne/b4ca55e3-58ab-4937-82ce-817ebd10240e |
>>> +-----------+------------------------------------------------+
>>> -------------------------------------
>>
>>
>>  Instead of displaying the data like below shall we print the details in
>> JSON format so that users are able to view more information. WDYT ?
>>
>> {
>>>
>>>    - "type":"php",
>>>
>>>
>>>    - "category":"framework",
>>>
>>>
>>>    - "provider":"apache",
>>>
>>>
>>>    - "host":"php.stratos.org",
>>>
>>>
>>>    - "displayName":"php",
>>>
>>>
>>>    - "description":"php Cartridge",
>>>
>>>
>>>    - "version":"7",
>>>
>>>
>>>    - "multiTenant":false,
>>>
>>>
>>>    - "loadBalancingIPType":"private",
>>>
>>>
>>>    - "portMapping":[
>>>       1. {
>>>          - "protocol":"http",
>>>          - "port":80,
>>>          - "proxyPort":8280
>>>       },
>>>       2. {
>>>          - "protocol":"tcp",
>>>          - "port":22,
>>>          - "proxyPort":8222
>>>       }
>>>    ],
>>>
>>>
>>>    - "iaasProvider":[
>>>       1. {
>>>          - "type":"mock",
>>>          - "imageId":"RegionOne/b4ca55e3-58ab-4937-82ce-817ebd10240e",
>>>          - "property":[
>>>             1. {
>>>                - "name":"instanceType",
>>>                - "value":
>>>                "RegionOne/aa5f45a2-c6d6-419d-917a-9dd2e3888594"
>>>             },
>>>             2. {
>>>                - "name":"keyPair",
>>>                - "value":"reka"
>>>             },
>>>             3. {
>>>                - "name":"securityGroups",
>>>                - "value":"default"
>>>             }
>>>          ],
>>>          - "networkInterfaces":[
>>>             1. {
>>>                - "networkUuid":"b55f009a-1cc6-4b17-924f-4ae0ee18db5e"
>>>             }
>>>          ]
>>>       },
>>>       2. {
>>>          - "type":"openstack",
>>>          - "imageId":"RegionOne/b4ca55e3-58ab-4937-82ce-817ebd10240e",
>>>          - "property":[
>>>             1. {
>>>                - "name":"instanceType",
>>>                - "value":
>>>                "RegionOne/aa5f45a2-c6d6-419d-917a-9dd2e3888594"
>>>             },
>>>             2. {
>>>                - "name":"keyPair",
>>>                - "value":"reka"
>>>             },
>>>             3. {
>>>                - "name":"securityGroups",
>>>                - "value":"default"
>>>             }
>>>          ],
>>>          - "networkInterfaces":[
>>>             1. {
>>>                - "networkUuid":"b55f009a-1cc6-4b17-924f-4ae0ee18db5e"
>>>             }
>>>          ]
>>>       }
>>>    ]
>>>
>>> }
>>
>> --
>> *Thanks and Regards,*
>> Anuruddha Lanka Liyanarachchi
>> Software Engineer - WSO2
>> Mobile : +94 (0) 712762611
>> Tel      : +94 112 145 345
>> a <thili...@wso2.com>nurudd...@wso2.com
>>
>
>
>
> --
> *Dinithi De Silva*
> Associate Software Engineer, WSO2 Inc.
> m:+94716667655 | e:dinit...@wso2.com | w: www.wso2.com
> | a: #20, Palm Grove, Colombo 03
>

Reply via email to