PHP Class WP_CLI_SSH_Command, wp-cli-ssh

Inheritance: extends WP_CLI_Command
Show file Open project: x-team/wp-cli-ssh

Public Methods

Method Description
__invoke ( $args, $assoc_args ) Forward command to remote host

Private Methods

Method Description
check_disabled_commands ( array $args, array $ssh_config ) : void | error Check if the command run is disabled on local config

Method Details

__invoke() public method

## OPTIONS ... : The command to run. [--=...] : associative args to pass to the command [--flag...] : flag to pass to the command --host= : name of the host to connect to ## EXAMPLES wp ssh plugin status --host=vagrant
public __invoke ( $args, $assoc_args )