Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup readme #13

Merged
merged 1 commit into from
Jan 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 0 additions & 15 deletions .github/workflows/regenerate-readme.yml

This file was deleted.

6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@ wp database reset --author=<username>
**OPTIONS**

--author=<username>
Administrator user you want to keep after reset
Administrator user you want to keep after reset.

**EXAMPLES**

# Reset database and keep `admin` user
# Reset database and keep `admin` user.
$ wp database reset --author=admin

## Installing

Installing this package requires WP-CLI v2.0 or greater. Update to the latest stable release with `wp cli update`.
Installing this package requires WP-CLI v2.9 or greater. Update to the latest stable release with `wp cli update`.

Once you've done so, you can install the latest stable version of this package with:

Expand Down
63 changes: 32 additions & 31 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,55 +17,56 @@
],
"homepage": "https://github.com/ernilambar/database-command",
"require": {
"wp-cli/wp-cli": "^2"
"wp-cli/wp-cli": "^2.9"
},
"require-dev": {
"wp-cli/entity-command": "2.5",
"wp-cli/scaffold-package-command": "^2",
"wp-cli/wp-cli-tests": "^4"
},
"minimum-stability": "dev",
"prefer-stable": true,
"autoload": {
"psr-4": {
"Nilambar\\WP_CLI_Database\\DatabaseCommand\\": "src/"
},
"psr-4": {
"Nilambar\\WP_CLI_Database\\DatabaseCommand\\": "src/"
},
"files": [
"command.php"
]
},
"minimum-stability": "dev",
"prefer-stable": true,
"config": {
"process-timeout": 7200,
"sort-packages": true,
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
},
"process-timeout": 7200,
"sort-packages": true
},
"scripts": {
"behat": "run-behat-tests",
"behat-rerun": "rerun-behat-tests",
"lint": "run-linter-tests",
"phpcs": "run-phpcs-tests",
"phpcbf": "run-phpcbf-cleanup",
"phpunit": "run-php-unit-tests",
"prepare-tests": "install-package-tests",
"test": [
"@lint",
"@phpcs",
"@phpunit",
"@behat"
]
},
"extra": {
"commands": [
"database reset"
],
"readme": {
"sections": [
"Using",
"Installing",
"Contributing"
]
}
"readme": {
"sections": [
"Using",
"Installing",
"Contributing"
]
}
},
"scripts": {
"behat": "run-behat-tests",
"behat-rerun": "rerun-behat-tests",
"lint": "run-linter-tests",
"phpcbf": "run-phpcbf-cleanup",
"phpcs": "run-phpcs-tests",
"phpunit": "run-php-unit-tests",
"prepare-tests": "install-package-tests",
"readme": "wp scaffold package-readme . --force",
"test": [
"@lint",
"@phpcs",
"@phpunit",
"@behat"
]
}
}