mirror of
https://github.com/chatmail/core.git
synced 2026-05-02 12:56:30 +03:00
apply CR
This commit is contained in:
@@ -477,10 +477,12 @@ pub async fn cmdline(context: Context, line: &str, chat_id: &mut ChatId) -> Resu
|
||||
Some(arg2.to_string()),
|
||||
)
|
||||
.await?;
|
||||
println!("Exported to {}.", dir.to_string_lossy());
|
||||
println!("Exported to {}.", dir.display());
|
||||
}
|
||||
"send-backup" => {
|
||||
let dir = dirs::home_dir().unwrap_or_default();
|
||||
let tdir = tempfile::TempDir::new()?;
|
||||
let dir = tdir.path();
|
||||
println!("Storing backup in: {} ", dir.display());
|
||||
let transfer = send_backup(&context, dir.as_ref(), Some(arg1.to_string())).await?;
|
||||
let ticket = transfer.ticket();
|
||||
let ticket_bytes = ticket.as_bytes();
|
||||
|
||||
Reference in New Issue
Block a user