tro 2.12.0

A Trello API client for the command line
Documentation
1
2
3
4
5
6
7
8
9
10
11
use unicode_width::UnicodeWidthStr;

pub fn title(text: &str) -> String {
    let border = "=".repeat(UnicodeWidthStr::width(text));

    [format!(" {} ", text), format!("={}=", border)].join("\n")
}

pub fn header(text: &str, header_char: &str) -> String {
    [text, &header_char.repeat(UnicodeWidthStr::width(text))].join("\n")
}