Hey all, I usually use vim as my code editor. Is there a way to easily make cargo build output a list of files that have errors so that I can just feed it into another CLI program? I am not seeing anything obvious in cargo build --help.
As an example, in the same way with grep I can do grep 'fn run' -rl * | vim, I would like to be able to do cargo build --error-file-list | vim to open all of the files that have errors in vim so I can work through them sequentially.
In the past, I have played with grep to get files from the output of other files, but it would be nice to avoid that if possible.
Thank you in advance!
4 posts - 2 participants