From 7e73ebcad03a5477367763d4a5e9c22f9e9967ca Mon Sep 17 00:00:00 2001 From: Max Audron Date: Tue, 7 Jun 2022 12:28:18 +0200 Subject: process sync and update in parallel Split the repos up in x batches where x is either decided on based on number of cpu cores available or given by the --jobs argument --- src/config/args.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/config/args.rs') diff --git a/src/config/args.rs b/src/config/args.rs index 446c5ce..f8ad8e8 100644 --- a/src/config/args.rs +++ b/src/config/args.rs @@ -10,6 +10,10 @@ pub struct Args { /// Only operate on this subtree #[clap(global = true)] pub scope: Option, + + /// Number of jobs to run in parallel, 0 is automatic + #[clap(short = 'j', long = "jobs", default_value = "0", global = true)] + pub jobs: usize, } #[derive(PartialEq, Clone, Debug, Subcommand)] -- cgit v1.2.3