INNER CODE UNIT · Go
Main
mkubaczyk/helmsman · internal/app/main.go:153
func Main() int {
var s State
flags.parse()
// When --parallel-files is set, re-exec once per DSF file as isolated subprocesses.
if flags.parallelFiles {
if len(flags.files) < 2 {
log.Warning("--parallel-files has no effect with fewer than 2 -f flags; running normally")
} else {
return runParallelFiles(&flags)
}
}
// Each process gets its own unique temp dir via os.MkdirTemp so that
// concurrent helmsman runs don't collide on disk.
var tmpErr error
flags.tempDir, tmpErr = os.MkdirTemp("", tempFilesDir+"-*")