Skip to content

Commit

Permalink
feat: add separator in header
Browse files Browse the repository at this point in the history
  • Loading branch information
VisualEhrmanntraut committed Jan 12, 2025
1 parent 894bc9b commit 9baaed9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ fn main() {
let date = Command::new("date").output().unwrap();
assert!(date.status.success());
let date = String::from_utf8(date.stdout).unwrap();
let header_template = Arc::new(format!("Command: !CMDLINE\nDate: {}\n\n", date.trim()));
let header_template = Arc::new(format!(
"Command: !CMDLINE\nDate: {}\n#######################################################\n\n",
date.trim()
));

let timestamp = Command::new("date").arg("+%s").output().unwrap();
assert!(timestamp.status.success());
Expand Down

0 comments on commit 9baaed9

Please sign in to comment.