Hi. I think it would be convenient if runn had more flexibility in filtering runbooks.
## examples
runn run path/to/**/*.yml --label !foo
runn run path/to/**/*.yml --label '!foo and !bar'
However, I am aware that introducing negative operator into the current label option can be troublesome. If possible, it might be better to introduce a new option that allows users to freely filter using the expr syntax.
## examples
runn run path/to/**/*.yml --filter '!labels.foo and !labels.bar'
runn run path/to/**/*.yml --filter '!labels.foo' --filter '!labels.bar'
# converted to => (!labels.foo) and ('!labels.bar)
runn run path/to/**/*.yml --filter '!labels["foo"]' --filter '!labels["bar"]'
# converted to => (!labels["foo"]) and ('!labels["bar"])
Hi. I think it would be convenient if runn had more flexibility in filtering runbooks.
However, I am aware that introducing negative operator into the current label option can be troublesome. If possible, it might be better to introduce a new option that allows users to freely filter using the expr syntax.