scriba 0.2.0

CLI text rendering, prompts, and terminal output utilities
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use scriba::{Format, Output, Ui};

#[test]
fn ui_renders_markdown_output() {
    let ui = Ui::new().with_format(Format::Markdown);

    let output = Output::new().heading(1, "scriba").paragraph("hello");

    let rendered = ui.render(&output).unwrap();

    assert!(rendered.contains("# scriba"));
    assert!(rendered.contains("hello"));
}