-
Couldn't load subscription status.
- Fork 355
[CLI] Split --skip-wordpress-install into --skip-wordpress-download and --skip-wordpress-install #2786
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
Conversation
…nd --skip-wordpress-install
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.
left a comment
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.
@adamziel, instead of having multiple params that express a negative, what do you think about having a single param that positively asserts a specific behavior and has a default value?
The code in this PR maps the two "skip" args to a single "installation mode". I feel like exposing this as an arg like --wordpress-install-mode might be easier for users to think about. With a positive arg, we explicitly request a desired behavior. With the negative args, we are specifying modifiers for implicit behavior.
At least in my mind, it is simpler to just think about the desired behavior and ask for that.
The values could be something like:
download-and-install(documented as the default if the arg is not specified)install-if-needed(install if we detect WP is not already installed)do-nothingorskip-install
I don't love the above names, but hopefully they convey the idea. :) I suppose this also could be applied to SQLite database integration setup.
What do you think?
|
I like that @brandonpayton, thank you for sharing this idea. It's indeed clearer. Let me refactor. |
|
superseded by #2803 |
Motivation for the change, related issues
Studio noted they can't easily used a local, unzipped WordPress directory:
This PR separates skipping the download from skipping the installation.
--skip-wordpress-setup--skip-wordpress-setup– deprecated, hidden--skip-wordpress-download– Skip downloading and unzipping WordPress. Use when the /wordpress directory is already populated.--skip-wordpress-install– Skip running the WordPress installer. Use when the mounted /wordpress site is already installed.Testing instructions
Run
cc @bcotrim @brandonpayton