combine plugin/theme search code

It didn't use the new WP_CLI\Formatter class.