Skip to content

Commit

Permalink
refactor: move db::pbs into its own file, remove "db copy" (#115)
Browse files Browse the repository at this point in the history
  • Loading branch information
holtgrewe authored Jun 9, 2023
1 parent c77b2d4 commit a6e8585
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
6 changes: 1 addition & 5 deletions src/db/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,5 @@ pub mod compile;
pub mod conf;
pub mod genes;
pub mod mk_inhouse;
pub mod pbs;
pub mod to_bin;

/// Data structures for (de-)serialization as generated by `prost-build`.
pub mod pbs {
include!(concat!(env!("OUT_DIR"), "/varfish.v1.svs.rs"));
}
3 changes: 3 additions & 0 deletions src/db/pbs.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
//! Data structures for (de-)serialization as generated by `prost-build`.
include!(concat!(env!("OUT_DIR"), "/varfish.v1.svs.rs"));
4 changes: 0 additions & 4 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ struct Db {
#[allow(clippy::large_enum_variant)]
#[derive(Debug, Subcommand)]
enum DbCommands {
Copy(annonars::db_utils::cli::copy::Args),
Compile(db::compile::Args),
MkInhouse(db::mk_inhouse::Args),
Genes(Genes),
Expand Down Expand Up @@ -167,9 +166,6 @@ fn main() -> Result<(), anyhow::Error> {
db::genes::query::run(&cli.common, args)?;
}
},
DbCommands::Copy(args) => {
annonars::db_utils::cli::copy::run(&annonars_common, args)?
}
},
Commands::Pheno(pheno) => match &pheno.command {
PhenoCommands::Prepare(args) => pheno::prepare::run(&cli.common, args)?,
Expand Down

0 comments on commit a6e8585

Please sign in to comment.