Skip to content

Allow multiple values for --field options in wp plugin list #159

Closed

Description

@priscillamc

It's not possible to use multiple values in the --field option to customize wp plugin list.

For example, it would be helpful to be able to do the example command below:

wp plugin list --name=example-plugin1,example-plugin-2

This should only show the info for the plugins in the list, not all of the plugins.

Activity

  1. schlessera commented on Mar 9, 2019

    @schlessera
    Member

    Correct, this is not possible. The main issue with a mechanism like that is the actual "user interface". If you use a comma for separating values, for example, you cannot have a comma in a value you're looking for anymore.

    I wonder if the comma is actually useful in any of the fields here...?

  2. Sidsector9 commented on Feb 20, 2022

    @Sidsector9
    Member

    @schlessera how about limiting the --name argument to accept only plugin slugs? If we do that, we don't have to worry about commas. Maybe instead of --name, we can use --slug for semantic reasons.

  3. danielbachhuber commented on Nov 11, 2023

    @danielbachhuber
    Member

    Related #224

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions