Skip to content

Improvements to the CLI commands#152

Merged
renatonascalves merged 5 commits intorelease/0.4.2from
feature/cli
Feb 10, 2022
Merged

Improvements to the CLI commands#152
renatonascalves merged 5 commits intorelease/0.4.2from
feature/cli

Conversation

@renatonascalves
Copy link
Copy Markdown
Contributor

@renatonascalves renatonascalves commented Feb 8, 2022

  • Improving PHPDoc
  • More CLI command examples
  • Adding more standards from https://make.wordpress.org/cli/handbook/guides/commands-cookbook/
  • Using WP_CLI::log instead of WP_CLI::line
  • The debug command checks for the existence of a valid post and adds a warning for SP_DEBUG and SAVEQUERIES
  • Use WP_CLI\Utils\get_flag_value to get flag values
  • Use quote instead of double quotes

@renatonascalves renatonascalves self-assigned this Feb 8, 2022
Copy link
Copy Markdown
Contributor

@mogmarsh mogmarsh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

some good improvements 👍

@mboynes mboynes changed the base branch from main to release/0.4.2 February 10, 2022 17:39
@renatonascalves renatonascalves merged commit acfccf1 into release/0.4.2 Feb 10, 2022
@renatonascalves renatonascalves deleted the feature/cli branch February 10, 2022 19:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants