bra icon indicating copy to clipboard operation
bra copied to clipboard

Run multiple sets of commands at in parallelize

Open toni-moreno opened this issue 5 years ago • 1 comments

My project (https://github.com/toni-moreno/resistor) needs compile 2 different binaries, I would like handle code changes with bra for both binaries.

But when configuring with this config it doens't work

$ cat .bra.toml 
[run]
init_cmds = [
  ["go", "build","-o", "./bin/resistor", "./pkg/"],
  ["go", "build","-o", "./bin/resinjector", "./pkg/udf" ],
  ["./bin/resistor", "&", "./bin/resinjector"],
]
watch_all = true
watch_dirs = [
	"$WORKDIR/pkg",
]

There is any way to do this?

toni-moreno avatar Aug 10 '18 16:08 toni-moreno

Good idea... but currently implementation only works based on sequential execution, we may need to introduce a new key (e.g. init_cmds_sets) to define more than one set of commands that are executed concurrently.

unknwon avatar Aug 14 '18 13:08 unknwon