commands: deprecate plain wipe command in favor of db wipe

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I62dbcc00b6b79f160318f9704fab001b6a6a6964
This commit is contained in:
raf 2026-04-03 14:44:44 +03:00
commit b0ee7f59a3
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF
3 changed files with 2 additions and 44 deletions

View file

@ -5,4 +5,3 @@ pub mod list;
pub mod query;
pub mod store;
pub mod watch;
pub mod wipe;

View file

@ -1,13 +0,0 @@
use crate::db::{ClipboardDb, SqliteClipboardDb, StashError};
pub trait WipeCommand {
fn wipe(&self) -> Result<(), StashError>;
}
impl WipeCommand for SqliteClipboardDb {
fn wipe(&self) -> Result<(), StashError> {
self.wipe_db()?;
log::info!("database wiped");
Ok(())
}
}