Obviously this can be done with a little Python/Bash script, but a command line utility that supports this would be nice.
I was going to write this utility myself, until the part where I had to implement the parsing of the combinational logic (since it can be arbitrarily nested/chained), and I didn't find tools in the language of my choice (Rust) back then to make that easy.
I did find a rust library to do just that yesterday[0], so I myself might get on it!