ssnepenthe/soter-command

Consider creating WP-CLI package manager implementation

Closed this issue · 1 comments

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...

Closing as I don't think this makes much sense... We have access to the WP core functions, may as well use them.