Skip to content

Commit

Permalink
Update readme based on new success messages
Browse files Browse the repository at this point in the history
  • Loading branch information
ernilambar committed Mar 19, 2024
1 parent 8f7ceb7 commit 78dda34
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 20 deletions.
19 changes: 9 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3353,11 +3353,11 @@ wp signup

# Activate signup.
$ wp signup activate 2
Success: Signup activated. Password: bZFSGsfzb9xs
Success: Signup 2 activated. Password: bZFSGsfzb9xs

# Delete signup.
$ wp signup delete 3
Success: Signup deleted.
Success: Signup 3 deleted.



Expand All @@ -3378,7 +3378,7 @@ wp signup activate <signup>

# Activate signup.
$ wp signup activate 2
Success: Signup activated. Password: bZFSGsfzb9xs
Success: Signup 2 activated. Password: bZFSGsfzb9xs



Expand All @@ -3399,7 +3399,7 @@ wp signup delete <signup>

# Delete signup.
$ wp signup delete 3
Success: Signup deleted.
Success: Signup 3 deleted.



Expand Down Expand Up @@ -3436,12 +3436,11 @@ wp signup get <signup> [--field=<field>] [--fields=<fields>] [--format=<format>]
**EXAMPLES**

# Get signup.
$ wp signup get 1
+-----------+------------+---------------------+---------------------+--------+------------------+
| signup_id | user_login | user_email | registered | active | activation_key |
+-----------+------------+---------------------+---------------------+--------+------------------+
| 1 | bobuser | [email protected] | 2024-03-13 05:46:53 | 1 | 663b5af63dd930fd |
+-----------+------------+---------------------+---------------------+--------+------------------+
$ wp signup get 1 --field=user_login
bobuser

# Get signup and export to JSON file.
$ wp signup get bobuser --format=json > bobuser.json



Expand Down
19 changes: 9 additions & 10 deletions src/Signup_Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@
*
* # Activate signup.
* $ wp signup activate 2
* Success: Signup activated. Password: bZFSGsfzb9xs
* Success: Signup 2 activated. Password: bZFSGsfzb9xs
*
* # Delete signup.
* $ wp signup delete 3
* Success: Signup deleted.
* Success: Signup 3 deleted.
*
* @package wp-cli
*/
Expand Down Expand Up @@ -177,12 +177,11 @@ public function list_( $args, $assoc_args ) {
* ## EXAMPLES
*
* # Get signup.
* $ wp signup get 1
* +-----------+------------+---------------------+---------------------+--------+------------------+
* | signup_id | user_login | user_email | registered | active | activation_key |
* +-----------+------------+---------------------+---------------------+--------+------------------+
* | 1 | bobuser | [email protected] | 2024-03-13 05:46:53 | 1 | 663b5af63dd930fd |
* +-----------+------------+---------------------+---------------------+--------+------------------+
* $ wp signup get 1 --field=user_login
* bobuser
*
* # Get signup and export to JSON file.
* $ wp signup get bobuser --format=json > bobuser.json
*
* @package wp-cli
*/
Expand Down Expand Up @@ -210,7 +209,7 @@ public function get( $args, $assoc_args ) {
*
* # Activate signup.
* $ wp signup activate 2
* Success: Signup activated. Password: bZFSGsfzb9xs
* Success: Signup 2 activated. Password: bZFSGsfzb9xs
*
* @package wp-cli
*/
Expand Down Expand Up @@ -240,7 +239,7 @@ public function activate( $args, $assoc_args ) {
*
* # Delete signup.
* $ wp signup delete 3
* Success: Signup deleted.
* Success: Signup 3 deleted.
*
* @package wp-cli
*/
Expand Down

0 comments on commit 78dda34

Please sign in to comment.