keith / rules_multirun

Bazel rules for running multiple commands in parallel in a single bazel invocation
Apache License 2.0
72 stars 15 forks source link

[FR] print something other than "Running [command target]" #31

Closed alexeagle closed 7 months ago

alexeagle commented 7 months ago

The print_command attribute lets you print something before each command runs, but it's fixed. It would be neat if I could specify a message on the command target that should be printed before that command is spawned. While we're at it, I'd love to be able to print something after the subprocess completes, and have some interpolation variables available like how long it took to run.

keith commented 7 months ago

did the first part of this in https://github.com/keith/rules_multirun/pull/35

alexeagle commented 7 months ago

Actually I think the second part isn't worth your time. It will be printed at the same time that the program itself completes, so it can just as easily print that output itself.

Thanks!

keith commented 7 months ago

sounds good!