jfrog / jfrog-cli

JFrog CLI is a client that provides a simple interface that automates access to the JFrog products.
https://www.jfrog.com/confluence/display/CLI/JFrog+CLI
Apache License 2.0
519 stars 223 forks source link

Allow for more powerful filtering for the --props and --exclude-props parameters #2581

Open PM-JoakimGustavsson opened 1 week ago

PM-JoakimGustavsson commented 1 week ago

Problem

Many of the generic file commands support the --props and --exclude-props parameters to filter the results based on the values of specific properties. These parameters are quite limited currently for the following reasons:

Solution we would like to see

Extend the capability of the --props and --exclude-props to both allow for wildcards, but also to allow for more complex logic in the matchings. An example might be to allow the user to specify prop=a|prop=b to signify a logical OR operation.

Alternatives we have considered

Making seperate queries and taking the union or intersection of the results by passing the results to the jq tool.