ddev-ui icon indicating copy to clipboard operation
ddev-ui copied to clipboard

ddev version -j now has native and parseable responses

Open rfay opened this issue 8 years ago • 2 comments

What happened (or feature request):

ddev version -j now has full information in json readable format, so please switch to using that instead of scraping.

ddev version should also be used to determine the domain (instead of the current wired-in string literal "ddev.local".

$ ddev version -j
{
    "level": "info",
    "msg": "dba   \tdrud/phpmyadmin:v0.2.0         \nrouter\tdrud/ddev-router:v0.5.0        \ncommit\tv0.11.0-19-ged7e516d           \ndomain\tddev.local                     \ncli   \tv0.11.0-19-ged7e516d           \nweb   \tdrud/nginx-php-fpm-local:v0.9.1\ndb    \tdrud/mariadb-local:v0.7.1      ",
    "raw": {
        "build info": "Built Sat Jan 27 17:39:08 MST 2018 [email protected] drud/golang-build-container:v0.5.0",
        "cli": "v0.11.0-19-ged7e516d",
        "commit": "v0.11.0-19-ged7e516d",
        "db": "drud/mariadb-local:v0.7.1",
        "dba": "drud/phpmyadmin:v0.2.0",
        "domain": "ddev.local",
        "router": "drud/ddev-router:v0.5.0",
        "web": "drud/nginx-php-fpm-local:v0.9.1"
    },
    "time": "2018-01-29T12:16:35-07:00"
}

What you expected to happen:

How to reproduce this:

Version: Please include the output of ddev version, docker version and the project's .ddev/config.yaml.

Anything else do we need to know:

Related source links or issues:

Please use a complexity rating of 1-5 (5 is high) for a feature request. (High complexity implies more PR planning)

rfay avatar Jan 29 '18 19:01 rfay

This is mostly done, however in order to use the domain value, would require 2 DDEV CLI calls. We will need a settings area to manage this value. Moving to v.5.

dclear avatar Aug 20 '18 16:08 dclear

Why does this require 2 calls?

rfay avatar Aug 20 '18 17:08 rfay