mirror of
https://github.com/NotAShelf/stash.git
synced 2026-04-13 06:23:47 +00:00
modularize codebase
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I6a6a69648ea836bfeb539450db14a666c623412e
This commit is contained in:
parent
478c020579
commit
b0820a1940
10 changed files with 445 additions and 252 deletions
12
src/commands/decode.rs
Normal file
12
src/commands/decode.rs
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
use crate::db::{ClipboardDb, SledClipboardDb};
|
||||
use std::io::{Read, Write};
|
||||
|
||||
pub trait DecodeCommand {
|
||||
fn decode(&self, in_: impl Read, out: impl Write, input: Option<String>);
|
||||
}
|
||||
|
||||
impl DecodeCommand for SledClipboardDb {
|
||||
fn decode(&self, in_: impl Read, out: impl Write, input: Option<String>) {
|
||||
self.decode_entry(in_, out, input);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue