Linux iad1-shared-b7-18 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
Apache
: 67.205.6.31 | : 216.73.216.47
Cant Read [ /etc/named.conf ]
8.2.29
fernandoquevedo
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
local /
wp /
features /
[ HOME SHELL ]
Name
Size
Permission
Action
aliases.feature
15.82
KB
-rw-r--r--
bootstrap.feature
14.43
KB
-rw-r--r--
class-wp-cli.feature
570
B
-rw-r--r--
cli-bash-completion.feature
7.13
KB
-rw-r--r--
cli-cache.feature
2.12
KB
-rw-r--r--
cli-check-update.feature
10.09
KB
-rw-r--r--
cli-info.feature
1.25
KB
-rw-r--r--
cli.feature
2.52
KB
-rw-r--r--
command.feature
37.85
KB
-rw-r--r--
config.feature
18.61
KB
-rw-r--r--
context.feature
5.68
KB
-rw-r--r--
flags.feature
9.63
KB
-rw-r--r--
formatter.feature
5.73
KB
-rw-r--r--
framework.feature
11.22
KB
-rw-r--r--
help.feature
33.66
KB
-rw-r--r--
hook.feature
6.09
KB
-rw-r--r--
prompt.feature
5.14
KB
-rw-r--r--
requests.feature
3.62
KB
-rw-r--r--
runcommand.feature
10.41
KB
-rw-r--r--
runner.feature
2.6
KB
-rw-r--r--
skip-plugins.feature
3.35
KB
-rw-r--r--
skip-themes.feature
5.52
KB
-rw-r--r--
steps.feature
1.78
KB
-rw-r--r--
utils-wp.feature
22.54
KB
-rw-r--r--
utils.feature
6.71
KB
-rw-r--r--
validation.feature
1.16
KB
-rw-r--r--
wp-config.feature
1.11
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : cli.feature
Feature: `wp cli` tasks @less-than-php-8 Scenario: Ability to detect a WP-CLI registered command Given a WP installation # Allow for composer/ca-bundle using `openssl_x509_parse()` which throws PHP warnings on old versions of PHP. When I try `wp package install wp-cli/scaffold-package-command` And I run `wp cli has-command scaffold package` Then the return code should be 0 # Allow for composer/ca-bundle using `openssl_x509_parse()` which throws PHP warnings on old versions of PHP. When I try `wp package uninstall wp-cli/scaffold-package-command` And I try `wp cli has-command scaffold package` Then the return code should be 1 Scenario: Ability to detect a command which is registered by plugin Given a WP installation And a wp-content/mu-plugins/test-cli.php file: """ <?php // Plugin Name: Test CLI Help class TestCommand { } WP_CLI::add_command( 'test-command', 'TestCommand' ); """ When I run `wp cli has-command test-command` Then the return code should be 0 Scenario: Dump the list of global parameters with values Given a WP installation When I run `wp cli param-dump --with-values | grep -o '"current":' | uniq -c | tr -d ' '` Then STDOUT should be: """ 19"current": """ And STDERR should be empty And the return code should be 0 Scenario: Checking whether a global configuration parameter exists or not Given a WP installation And a custom-cmd.php file: """ <?php class Custom_Command extends WP_CLI_Command { /** * Custom command to validate a global configuration does exist or not. * * <config> * : Configuration parameter name to check for. * * @when after_wp_load */ public function __invoke( $args ) { if ( WP_CLI::has_config( $args[0] ) ) { WP_CLI::log( "Global configuration '{$args[0]}' does exist." ); } else { WP_CLI::log( "Global configuration '{$args[0]}' does not exist." ); } } } WP_CLI::add_command( 'custom-command', 'Custom_Command' ); """ When I run `wp --require=custom-cmd.php custom-command url` Then STDOUT should be: """ Global configuration 'url' does exist. """ When I run `wp --require=custom-cmd.php custom-command dummy` Then STDOUT should be: """ Global configuration 'dummy' does not exist. """
Close