stash: remove redundant log messages

Ported from print-based logging, now redundant

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I6a6a6964c1ba52c792bd3c2a3e15a97a3b03260e
This commit is contained in:
raf 2025-08-12 15:35:26 +03:00
commit d8d27fab22
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF

View file

@ -91,21 +91,16 @@ fn main() {
match cli.command { match cli.command {
Some(Command::Store) => { Some(Command::Store) => {
log::info!("Executing: Store");
let state = env::var("STASH_CLIPBOARD_STATE").ok(); let state = env::var("STASH_CLIPBOARD_STATE").ok();
db.store(io::stdin(), cli.max_dedupe_search, cli.max_items, state); db.store(io::stdin(), cli.max_dedupe_search, cli.max_items, state);
} }
Some(Command::List) => { Some(Command::List) => {
log::info!("Executing: List");
db.list(io::stdout(), cli.preview_width); db.list(io::stdout(), cli.preview_width);
} }
Some(Command::Decode { input }) => { Some(Command::Decode { input }) => {
log::info!("Executing: Decode");
db.decode(io::stdin(), io::stdout(), input); db.decode(io::stdin(), io::stdout(), input);
} }
Some(Command::Delete { arg, r#type }) => { Some(Command::Delete { arg, r#type }) => match (arg, r#type.as_deref()) {
log::info!("Executing: Delete");
match (arg, r#type.as_deref()) {
(Some(s), Some("id")) => { (Some(s), Some("id")) => {
if let Ok(id) = s.parse::<u64>() { if let Ok(id) = s.parse::<u64>() {
use std::io::Cursor; use std::io::Cursor;
@ -131,14 +126,12 @@ fn main() {
(_, Some(_)) => { (_, Some(_)) => {
log::error!("Unknown type for --type. Use \"id\" or \"query\"."); log::error!("Unknown type for --type. Use \"id\" or \"query\".");
} }
} },
}
Some(Command::Wipe) => { Some(Command::Wipe) => {
log::info!("Executing: Wipe");
db.wipe(); db.wipe();
} }
Some(Command::Import { r#type }) => { Some(Command::Import { r#type }) => {
log::info!("Executing: Import");
// Default format is TSV (Cliphist compatible) // Default format is TSV (Cliphist compatible)
let format = r#type.as_deref().unwrap_or("tsv"); let format = r#type.as_deref().unwrap_or("tsv");
match format { match format {