-
-
Notifications
You must be signed in to change notification settings - Fork 580
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ddev "api" for interacting with ddev-ui, other future applications, and normal user #477
Comments
The current UI expects the following JSON structure from the output of ddev list and describe: ddev list is basically an object containing a string with the router status, as well as an array of site objects EX:
ddev describe is an object in which various site details is contained in a child object with the site detail description as it's key. EX:
|
I apologize if these are naive, but I have a few follow-up questions:
|
I don't see a need to go into a different mode at all, i'd propose a flag (ddev list --json) that would instead output as json instead of the pretty text we're getting now. ddev router status was indeed omitted, and would need to be added in. will update. auth-pantheon in specific was not addressed simply because i haven't gotten to working with that command yet tbh. |
Hi @andrew-c-tran. Understood. I just want to be thorough so that this becomes something we can get an LOE and also get to an actionable state! |
sirupsen/logrus has ways to do complete json output, so per Brad's suggestion I'm experimenting with it to see how we could use it for all user-oriented (or ddev-ui oriented) output. |
Updated format of DDEV List in post above to include RouterStatus |
Example usage: https://github.com/rfay/logrustry/blob/master/cmd/logrustry/main.go Proposed strategy:
(There is an open question: logrus likes single-level fields with json. How can it do a table with rows and fields successfully? I'll take a look) |
What happened (or feature request):
For ddev-ui, we need to provide
We discussed this today and decided this overall plan:
These don't deal with the sudo problem, but that may be able to be bundled into a single
ddev hostname
call so that it can only happen in one place.The text was updated successfully, but these errors were encountered: