diff --git a/src/main.rs b/src/main.rs index e2d1efa..a1d0b20 100644 --- a/src/main.rs +++ b/src/main.rs @@ -444,7 +444,7 @@ fn mode_save(cmd: &mut Command, args: Args, ids: &mut Vec, tags: &mut Vec, tags: &mut Vec, conn: &mut Connection, data_path: PathBuf) -> Result<()> { +pub fn mode_get(cmd: &mut Command, args: Args, ids: &mut Vec, tags: &mut Vec, conn: &mut Connection, data_path: PathBuf) -> Result<()> { if ! ids.is_empty() && ! tags.is_empty() { cmd.error(ErrorKind::InvalidValue, "Both ID and tags given, you must supply exactly one ID or atleast one tag when using --get").exit(); } else if ids.len() > 1 { diff --git a/src/modes/get.rs b/src/modes/get.rs index 8209039..590aac6 100644 --- a/src/modes/get.rs +++ b/src/modes/get.rs @@ -1,6 +1,3 @@ -use std::io; -use std::path::PathBuf; -use std::collections::HashMap; use anyhow::{Context, Result, Error, anyhow}; use clap::Command;