mirror of
https://github.com/NotAShelf/stash.git
synced 2026-04-13 06:23:47 +00:00
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I6a6a696442ff25c3f65bb2d5f68e0d78a569fd76
13 lines
342 B
Rust
13 lines
342 B
Rust
use crate::db::{ClipboardDb, SledClipboardDb};
|
|
use std::io::Write;
|
|
|
|
pub trait ListCommand {
|
|
fn list(&self, out: impl Write, preview_width: u32);
|
|
}
|
|
|
|
impl ListCommand for SledClipboardDb {
|
|
fn list(&self, out: impl Write, preview_width: u32) {
|
|
self.list_entries(out, preview_width);
|
|
log::info!("Entries listed");
|
|
}
|
|
}
|