-
-
Notifications
You must be signed in to change notification settings - Fork 7
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
Replace launcha
with adminer
command
#18
Conversation
launcha
with adminer
command
Test this one with
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is the way to go, and thanks!
Right now, it gives the required message on ddev launcha -h
:
Launcha is no longer available. Please use 'ddev launch' instead. To run Adminer, please use 'ddev adminer'.
BUT... it doesn't give that message when people use ddev launcha
, which just silently returns. Please make it return with error text and an error exit value, thanks!
Improving the test would be good too, currently it has
ddev help adminer | grep adminer >/dev/null
ddev help launcha | grep adminer >/dev/null
but really testing for ddev launcha
returning an error would be better.
Confirmed. $ ddev launcha -h
Launcha is no longer available. Please use 'ddev launch' instead. To run Adminer, please use 'ddev adminer'.
Failed to run launcha -h; error=exit status 2
$ ddev launcha
$ |
@rfay I've updated the code. I'm not super-confident with bash, so I've created a test that fails if the exit status on |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I should have mentioned this simpler approach before, and wasn't clear.
Just make the launcha command look something like this:
#!/bin/bash
#ddev-generated
printf "'ddev launcha' is no longer available. Use 'ddev launch' and 'ddev adminer' instead."
exit 2
Maybe give a link to https://github.com/ddev-ddev-adminer.
I don't want to lose track of this; can you try the super-simple approach? thanks @mejta ! |
This also resolves Yay! |
Sorry for delay, launcha command modified. |
The Issue
The current way to launch Adminer is via
ddev launcha -a
. It's different from how e.g. PHPMyAdmin is launched (ddev phpmyadmin
).How This PR Solves The Issue
PR changes launching the Adminer the same way like PHPMyAdmin:
ddev adminer
Manual Testing Instructions
ddev get https://github.com/mejta/ddev-adminer/tarball/replace-launcha-with-adminer-command