Skip to content

Commit

Permalink
Merge pull request #457 from ernilambar/fix-user-application-delete-e…
Browse files Browse the repository at this point in the history
…xample

Update examples for user application delete command
  • Loading branch information
swissspidy authored Jan 16, 2024
2 parents 349beb7 + a435dc2 commit 26fadf2
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions src/User_Application_Password_Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@
* $ wp user application-password update 123 6633824d-c1d7-4f79-9dd5-4586f734d69e --name=newappname
* Success: Updated application password.
*
* # Delete an existing application password
* $ wp user application-password delete 123 6633824d-c1d7-4f79-9dd5-4586f734d69e
* Success: Deleted 1 of 1 application password.
*
* # Check if an application password for a given application exists
* $ wp user application-password exists 123 myapp
* $ echo $?
Expand Down Expand Up @@ -418,9 +422,13 @@ public function record_usage( $args, $assoc_args ) { // phpcs:ignore Generic.Cod
*
* ## EXAMPLES
*
* # Record usage of an application password
* $ wp user application-password record-usage 123 6633824d-c1d7-4f79-9dd5-4586f734d69e
* Success: Recorded application password usage.
* # Delete an existing application password
* $ wp user application-password delete 123 6633824d-c1d7-4f79-9dd5-4586f734d69e
* Success: Deleted 1 of 1 application password.
*
* # Delete all of the user's application passwords
* $ wp user application-password delete 123 --all
* Success: Deleted all application passwords.
*
* @param array $args Indexed array of positional arguments.
* @param array $assoc_args Associative array of associative arguments.
Expand Down

0 comments on commit 26fadf2

Please sign in to comment.