Skip to content

compute: add test for end-to-end substitution

Administrator requested to merge rvt/compute-run-test into main

Created by: rvantonder

I'd like to allow substituting values of a match in a compute result, like the repo or file the match is found in. Basically a templating scheme that supports not just capture groups, but contextual info like repo name, file name, etc. if available.

This PR is just setup to test such functionality, which operates on a command.Run() method and allows operating on FileMatch that contains a bunch of contextual information to expose. I'm still in a work-in-progress phase for the actual implementation.

Merge request reports

Loading