fix: resolve missing functions and unused imports
The commit adds `pub` to `mode_get` for visibility and removes unused imports in `src/modes/get.rs`, while adding the missing `get_engine` import.
This commit is contained in:
@@ -444,7 +444,7 @@ fn mode_save(cmd: &mut Command, args: Args, ids: &mut Vec<i64>, tags: &mut Vec<S
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
fn mode_get(cmd: &mut Command, args: Args, ids: &mut Vec<i64>, tags: &mut Vec<String>, conn: &mut Connection, data_path: PathBuf) -> Result<()> {
|
pub fn mode_get(cmd: &mut Command, args: Args, ids: &mut Vec<i64>, tags: &mut Vec<String>, conn: &mut Connection, data_path: PathBuf) -> Result<()> {
|
||||||
if ! ids.is_empty() && ! tags.is_empty() {
|
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();
|
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 {
|
} else if ids.len() > 1 {
|
||||||
|
|||||||
@@ -1,6 +1,3 @@
|
|||||||
use std::io;
|
|
||||||
use std::path::PathBuf;
|
|
||||||
use std::collections::HashMap;
|
|
||||||
|
|
||||||
use anyhow::{Context, Result, Error, anyhow};
|
use anyhow::{Context, Result, Error, anyhow};
|
||||||
use clap::Command;
|
use clap::Command;
|
||||||
|
|||||||
Reference in New Issue
Block a user