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

WP-CLI Site Reporting Commands #8

Merged
merged 6 commits into from
Jan 9, 2024
Merged

WP-CLI Site Reporting Commands #8

merged 6 commits into from
Jan 9, 2024

Conversation

rleeson
Copy link
Contributor

@rleeson rleeson commented Nov 20, 2023

Description

As a developer, I need to retrieve common data from sites. For WordPress this includes Post, Taxonomy, and other related data, for instance ACF Flex Content field usage.

This work adds the infrastructure for common, reusable WP CLI commands to pull into any project. Any available commands are only made accessible through opt-in registration.

  • Add the ACF flex content report CLI command

Steps to Validate

  1. Add the Composer library to a project
  2. Ensure the auto-loader is registered
  3. Following auto-loader registrations, add Kanopi\Components\Commands\Registration::WPCLICommands(); to register all common commands
  4. Use any of the commands, for instance wp kanopi-flex-report-content audit ./ prefix- flex_content,area_list where the comma-delimited list is the set of slugs to report, files are generated in the current directory with the prefix, prefix-

@rleeson
Copy link
Contributor Author

rleeson commented Jan 9, 2024

Based on feedback, I moved the reporting commands to a separate namespace and changed their prefix to kanopi-report-.

@rleeson rleeson merged commit 41a033a into main Jan 9, 2024
@rleeson rleeson deleted the feature/site-reporting branch January 9, 2024 01:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants