mirror of
https://github.com/NotAShelf/stash.git
synced 2026-05-12 18:29:30 +00:00
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:
parent
75ca501e29
commit
b0ee7f59a3
3 changed files with 2 additions and 44 deletions
|
|
@ -5,4 +5,3 @@ pub mod list;
|
|||
pub mod query;
|
||||
pub mod store;
|
||||
pub mod watch;
|
||||
pub mod wipe;
|
||||
|
|
|
|||
|
|
@ -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(())
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue