Skip to content
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

Rename wp checksum core back to wp core verify-checksums #14

Closed
danielbachhuber opened this issue Oct 24, 2017 · 8 comments
Closed

Rename wp checksum core back to wp core verify-checksums #14

danielbachhuber opened this issue Oct 24, 2017 · 8 comments
Assignees
Milestone

Comments

@danielbachhuber
Copy link
Member

The original rename is a decision I regret. Most WP-CLI commands are verbs, so we should make this a verb too.

@schlessera
Copy link
Member

How about wp verify?

  • wp verify core
  • wp verify plugin --all
  • wp verify theme --all
  • wp verify all

@danielbachhuber
Copy link
Member Author

wp verify is too ambiguous.

@schlessera
Copy link
Member

And the same stack with verify-checksums instead?

@schlessera
Copy link
Member

I just don't think that this should be split amongst multiple commands. There's a lot of code reuse, and the most used scenario will probably be verify all the stuff, once we have implemented that.

@danielbachhuber
Copy link
Member Author

I just don't think that this should be split amongst multiple commands. There's a lot of code reuse,

We can use PHP inheritance to DRY our code without forcing our naming structure to a specific pattern.

And the same stack with verify-checksums instead?

Most commands are wp <noun> <verb>. I think we should follow this existing pattern for consistency.

@schlessera
Copy link
Member

Before I go about renaming the commands again, I'd like to make sure we're on the same page.

We now have core checksums and plugin checksums (and themes will be aded later as well).

Right now, these are implemented in wp-cli/checksum-command and are named:

  • wp checksum core
  • wp checksum plugin (in separate branch right now)

What we want is:

  • wp core verify-checksums (with alias wp checksum core)
  • wp plugin verify-checksums (with alias wp checksum plugin)

These will stay in the wp-cli/checksum-command repository (instead of splitting them out into the wp-cli/core-command and wp-cli/extension-command repositories.

@danielbachhuber Do you agree with all of the above?

@danielbachhuber
Copy link
Member Author

👍 from me if it seems fine to you

@schlessera
Copy link
Member

I'll put my OCD neatly into a drawer away from the laptop, to ignore the repository name mismatch... ;)

schlessera added a commit that referenced this issue Jan 25, 2018
`wp checksum core` => `wp core verify-checksums`
`wp checksum plugin` => `wp plugin verify-checksums`

Fixes #14
@gitlost gitlost added this to the 1.0.7 milestone Jan 26, 2018
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants