diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-04-15 15:35:45 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-04-15 15:36:44 +0900 |
| commit | f7f48d57e9260f4e076e47013318714a52527b2f (patch) | |
| tree | d16fa26a0b7843c9ff568d3f86df4219c0eedcab /cmd | |
| parent | 5c2345128e06c53702b36c7a0920a6b7778f3e61 (diff) | |
internal/pkg: pass impure job count
This is cleaner than checking cpu count during cure, it is impossible to avoid impurity in both situations but this is configurable.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/mbf/main.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/cmd/mbf/main.go b/cmd/mbf/main.go index c79a61bf..a9d9a0c8 100644 --- a/cmd/mbf/main.go +++ b/cmd/mbf/main.go @@ -72,6 +72,7 @@ func main() { var ( flagQuiet bool flagCures int + flagJobs int flagBase string flagIdle bool @@ -99,7 +100,7 @@ func main() { if flagHostAbstract { flags |= pkg.CHostAbstract } - cache, err = pkg.Open(ctx, msg, flags, flagCures, base) + cache, err = pkg.Open(ctx, msg, flags, flagCures, flagJobs, base) return }).Flag( @@ -111,6 +112,10 @@ func main() { "cures", command.IntFlag(0), "Maximum number of dependencies to cure at any given time", ).Flag( + &flagJobs, + "jobs", command.IntFlag(0), + "Preferred number of jobs to run, when applicable", + ).Flag( &flagBase, "d", command.StringFlag("$MBF_CACHE_DIR"), "Directory to store cured artifacts", |
