I have a command that produces some output. Let's say, it's:
bat "rake some_task"
I'd like to set some variable to an output produced by that `rake` command. Is it possible to do?
I tried to use ProcessBuilder but it results in a much larger amount of code.
Thank you!