This commit is contained in:
cy 2025-04-13 14:52:12 -04:00
parent e58cf2bbd0
commit 681ee5e826
Signed by: cy
SSH key fingerprint: SHA256:o/geVWV4om1QhUSkKvDQeW/eAihwnjyXkqMwrVdbuts
6 changed files with 607 additions and 27 deletions

View file

@ -9,6 +9,7 @@ use nixcp::NixCp;
mod cli;
mod nixcp;
mod path_info;
mod uploader;
#[derive(Parser, Debug)]
#[command(version, name = "nixcp")]
@ -21,21 +22,9 @@ struct Cli {
to: String,
/// Upstream cache to check against. Can be specified multiple times.
/// cache.nixos.org is always included (unless --no-nixos-cache is passed)
/// cache.nixos.org is always included
#[arg(long = "upstream-cache", short)]
upstream_caches: Vec<String>,
/// Concurrent upstream cache checkers
#[arg(long, default_value_t = 32)]
upstream_checker_concurrency: u8,
/// Concurrent uploaders
#[arg(long, default_value_t = 4)]
uploader_concurrency: u8,
/// Concurrent nix-store commands to run
#[arg(long, default_value_t = 32)]
nix_store_concurrency: u8,
}
#[derive(Debug, Subcommand)]