fix: header alignment, 🪪 session, commit-only version, clipboard shows text, no extra blank lines
This commit is contained in:
parent
05a63fe911
commit
20cae0b717
2 changed files with 9 additions and 11 deletions
|
|
@ -96,10 +96,10 @@ pub fn cmd_done(action: &str, name: &str, payload: &str, success: bool, result:
|
|||
crate::logger::write_line(if success { "OK" } else { "ERROR" }, &format!("{name} {payload} → {result}"));
|
||||
}
|
||||
|
||||
/// Info line for the startup header (not in table format).
|
||||
/// Aligns key to a fixed width so values line up.
|
||||
/// Info line for the startup header — uses same column alignment as table rows.
|
||||
pub fn info_line(emoji: &str, key: &str, value: &str) {
|
||||
println!(" {} {:<12} {}", emoji_cell(emoji), key, value);
|
||||
// Match table layout: 2 spaces + 2-wide emoji + 2 spaces + name (NAME_W) + 2 spaces + value
|
||||
println!(" {} {:<name_w$} {}", emoji_cell(emoji), key, value, name_w = NAME_W);
|
||||
}
|
||||
|
||||
pub fn err(emoji: &str, msg: &str) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue