Consider creating WP-CLI package manager implementation
Closed this issue · 1 comments
ssnepenthe commented
Ex:
public function get_plugins( $ignored = [] ) {
$plugins = WP_CLI::runcommand( 'plugin list --fields=name,version --format=json', [
'parse' => 'json',
'return' => true,
] );
// Filter ignored.
// Map to Soter_Core\Package instances.
return $plugins;
}
Not sure there is much benefit here aside from staying within WP-CLI...
ssnepenthe commented
Closing as I don't think this makes much sense... We have access to the WP core functions, may as well use them.