Skip to content

Add queue validate subcommand to CLI#512

Open
saraichinwag wants to merge 1 commit intoExtra-Chill:mainfrom
Sarai-Chinwag:feature/queue-validate-cli
Open

Add queue validate subcommand to CLI#512
saraichinwag wants to merge 1 commit intoExtra-Chill:mainfrom
Sarai-Chinwag:feature/queue-validate-cli

Conversation

@saraichinwag
Copy link
Contributor

Summary

  • Adds wp datamachine flows queue validate <flow_id> "topic" subcommand that exposes the existing QueueValidator::validate() method via WP-CLI
  • Supports --post_type, --threshold, --step, and --format flags
  • Gracefully skips queue check when flow step resolution fails while still validating against published posts
  • Uses WP_CLI::warning() for duplicates (informational, not failure) and WP_CLI::success() for clear results

Closes #511

Expose QueueValidator::validate() via WP-CLI so agents and humans
can check for duplicate topics before adding them to the queue.

Supports --post_type, --threshold, --step, and --format flags.
Gracefully skips queue check if flow step resolution fails while
still validating against published posts.
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

Successfully merging this pull request may close these issues.

Expose queue_validator via WP-CLI command

1 participant