Closed franz-josef-kaiser closed 7 years ago
Thanks for the awesome rundown!
Here's where I'm at on this...
You seem to be very knowledgable and passionate about it. I'd gladly accept a PR if you'd like to address the things above.
I addressed several of these in PR #54
Currently there are two problems with the import shell script:
wp
is installed and available. That can easily be checked up front and if not, abort gracefully, informing the user what to do.--allow-root
flag should be used for thewp
command. Maybe the best would be to allow running the script with one additional argument. That could simply be a yes/no flag that is prompted andread
.wp ${ROOT} plugin is-installed wordpress-importer
and then prompt if the user wants to install and activate it:wp ${ROOT} plugin install wordpress-importer --activate
.