Skip to content

Conversation

i-am-chitti
Copy link
Contributor

Description

Update runcommand doc to add default and accepted values.

@i-am-chitti i-am-chitti requested a review from a team as a code owner May 27, 2024 12:08
Copy link
Member

@mrsdizzie mrsdizzie left a comment

Choose a reason for hiding this comment

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

This is already somewhat documented in the same docblock right above this change and you can see it here: https://make.wordpress.org/cli/handbook/references/internal-api/wp-cli-runcommand/

Which documents all elements and some accepted values, but doesn't include defaults or full descriptions.

This new documentation looks to be missing command_args from the options array also. I added some suggestions for more detailed descriptions based on what the code actually does (which wasn't previously documented in full in the comments)

@mrsdizzie mrsdizzie added this to the 2.11.0 milestone Jun 13, 2024
@swissspidy swissspidy modified the milestones: 2.11.0, 2.12.0 Aug 19, 2024
@codecov-commenter
Copy link

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

Thanks for integrating Codecov - We've got you covered ☂️

Copy link
Member

@mrsdizzie mrsdizzie left a comment

Choose a reason for hiding this comment

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

I committed all my previous suggestions since there was no response from the author and we might as well use them

@mrsdizzie mrsdizzie merged commit 90c9a75 into wp-cli:main Feb 28, 2025
44 of 47 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add defaults and accepted values for runcommand() options
6 participants