summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index ca893b5..280ee5d 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -129,6 +129,9 @@ async fn run() -> Result<()> {
serde_json::to_string(&title)?,
text.len()
);
+ println!("--- formatted preview ---");
+ println!("{text}");
+ println!("--- end preview ---");
return Ok(());
}
browser::cmd_create(&paths, &title, &body).await
@@ -158,6 +161,9 @@ async fn run() -> Result<()> {
serde_json::to_string(&title)?,
text.len()
);
+ println!("--- formatted preview ---");
+ println!("{text}");
+ println!("--- end preview ---");
return Ok(());
}
browser::cmd_update(&paths, &match_title, &title, &body).await