Skip to content

Commit

Permalink
fix: "db-utils copy" now accepts "--all" and "--path-beds" (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
holtgrewe authored May 23, 2023
1 parent ca1d7e5 commit 0b50060
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/db_utils/cli/copy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,11 @@ pub struct ArgsQuery {
#[arg(long, group = "query")]
pub range: Option<spdi::Range>,
/// Specify path(s) to BED files to read from.
#[arg(long, group = "query")]
pub path_beds: Vec<PathBuf>,
/// Query for all variants.
#[arg(long, group = "query")]
pub all: bool,
}

/// Copy data from `db_read` to `db_write` for column family `cf_name` in the intervals in `path_bed`.
Expand Down Expand Up @@ -243,6 +247,7 @@ mod test {
position: None,
range: None,
path_beds: Vec::new(),
all: true,
},
path_wal_dir: None,
};
Expand All @@ -263,6 +268,7 @@ mod test {
position: Some(spdi::Pos::from_str("17:41267752")?),
range: None,
path_beds: Vec::new(),
all: false,
},
path_wal_dir: None,
};
Expand All @@ -283,6 +289,7 @@ mod test {
position: None,
range: Some(spdi::Range::from_str("17:41267752:41267774")?),
path_beds: Vec::new(),
all: false,
},
path_wal_dir: None,
};
Expand Down

0 comments on commit 0b50060

Please sign in to comment.