# wp core download falls back to the tar binary when PharData isn't available
if ( ! class_exists( 'PharData' ) ) {
$cmd = "tar xz --strip-components=1 --directory=%s -f $tarball";
WP_CLI::launch( Utils\esc_cmd( $cmd, $dest ) );
return;
}
public static launch ( string $command, boolean $exit_on_error = true, boolean $return_detailed = false ) : integer | ProcessRun | ||
$command | string | External process to launch. |
$exit_on_error | boolean | Whether to exit if the command returns an elevated return code. |
$return_detailed | boolean | Whether to return an exit status (default) or detailed execution results. |
return | integer | ProcessRun | The command exit status, or a ProcessRun object for full details. |