mirror of
https://github.com/NotAShelf/stash.git
synced 2026-04-15 15:23:47 +00:00
decode: fallback to relaying current clipboard to stdout on failure
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I6a6a696451def3e367afa9e8b0dd6ae626906e53
This commit is contained in:
parent
06221892b7
commit
64c923480e
3 changed files with 56 additions and 9 deletions
|
|
@ -148,15 +148,15 @@ fn main() {
|
|||
// Implement JSON output
|
||||
match db.list_json() {
|
||||
Ok(json) => {
|
||||
println!("{}", json);
|
||||
println!("{json}");
|
||||
}
|
||||
Err(e) => {
|
||||
log::error!("Failed to list entries as JSON: {}", e);
|
||||
log::error!("Failed to list entries as JSON: {e}");
|
||||
}
|
||||
}
|
||||
}
|
||||
_ => {
|
||||
log::error!("Unsupported format: {}", format);
|
||||
log::error!("Unsupported format: {format}");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue