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:
Andrew Phillips (aider)
2025-05-09 16:39:41 -03:00
parent e134c73eda
commit 008899f6ab
2 changed files with 1 additions and 4 deletions

View File

@@ -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() {
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 {

View File

@@ -1,6 +1,3 @@
use std::io;
use std::path::PathBuf;
use std::collections::HashMap;
use anyhow::{Context, Result, Error, anyhow};
use clap::Command;