yunjae2 / tagit

A CLI tagging tool for experiments
MIT License
5 stars 0 forks source link

Using tag values in parsing rules #26

Open yunjae2 opened 4 years ago

yunjae2 commented 4 years ago

Some data needs to be parsed based on the tag values. It would be good to have any way to use the tag values in the rules. As now, passing the value as a shell variable can be a way:

$ tagit parse add myexp bw --src bw_read "if [[ "$op" == "read" ]]; then cat; fi"
$ tagit parse add myexp bw --src bw_write "if [[ "$op" == "write" ]]; then cat; fi"