dnephin / dobi

A build automation tool for Docker applications
https://dnephin.github.io/dobi/
Apache License 2.0
309 stars 36 forks source link

'dobi list -t a -t b' AND operation #211

Open KairaMiu opened 3 years ago

KairaMiu commented 3 years ago

It would be nice if dobi had a way to use an AND operation optionally for listing jobs with tags instead of OR operation. This would add an additional (optional) parameter to dobi list -t a -t b [OPERATION], which is per default --or and can be replaced with --and.

Example original (--or):

$ dobi list -t a -t b
Resources:
    job-a-b
    job-a-c
    job-b-c

Tags: 
    a, b, c

Example with --and:

$ dobi list -t a -t b --and
Resources:
    job-a-b

Tags: 
    a, b, c