aboutsummaryrefslogtreecommitdiff
path: root/src/config
diff options
context:
space:
mode:
authorMax Audron <audron@cocaine.farm>2022-06-07 12:28:18 +0200
committerMaximilian Manz <maximilian.manz@de.clara.net>2022-06-20 11:33:04 +0200
commit7e73ebcad03a5477367763d4a5e9c22f9e9967ca (patch)
tree39e543ec482be2e95c512b45f6dbdbe816dc0992 /src/config
parentfix clippy lints (diff)
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
Diffstat (limited to 'src/config')
-rw-r--r--src/config/args.rs4
1 files changed, 4 insertions, 0 deletions
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<String>,
+
+ /// 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)]