refactor: move mode_get to modes/get module and update imports
This commit is contained in:
@@ -314,7 +314,7 @@ fn main() -> Result<(), Error> {
|
||||
|
||||
match mode {
|
||||
KeepModes::Save => mode_save(&mut cmd, args, ids, tags, conn, data_path)?,
|
||||
KeepModes::Get => mode_get(&mut cmd, args, ids, tags, &mut conn, data_path)?,
|
||||
KeepModes::Get => crate::modes::get::mode_get(&mut cmd, args, ids, tags, &mut conn, data_path)?,
|
||||
KeepModes::Diff => mode_diff(&mut cmd, args, ids, tags, &mut conn, data_path)?,
|
||||
KeepModes::List => mode_list(&mut cmd, args, ids, tags, &mut conn, data_path)?,
|
||||
KeepModes::Update => mode_update(&mut cmd, args, ids, tags, &mut conn, data_path)?,
|
||||
|
||||
9
src/modes/get.rs
Normal file
9
src/modes/get.rs
Normal file
@@ -0,0 +1,9 @@
|
||||
use std::io;
|
||||
use std::path::PathBuf;
|
||||
use std::collections::HashMap;
|
||||
|
||||
use anyhow::{Context, Result, Error, anyhow};
|
||||
use clap::Command;
|
||||
|
||||
use crate::db;
|
||||
use crate::compression::{CompressionType, get_engine};
|
||||
@@ -1 +1,2 @@
|
||||
pub mod common;
|
||||
pub mod get;
|
||||
|
||||
Reference in New Issue
Block a user