cliclack 0.5.2

Beautiful, minimal, opinionated CLI prompts inspired by the Clack NPM package.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use cliclack::{intro, log, outro_cancel};
use console::style;

fn main() -> std::io::Result<()> {
    intro(style(" log ").on_cyan().black())?;
    log::remark("This is a simple message")?;
    log::warning("This is a warning")?;
    log::error("This is an error")?;
    log::success("This is a success")?;
    log::info("This is an info")?;
    log::step("This is a multiline step...\n\nstruct Type {\n    field: u8\n}")?;
    outro_cancel("Like it's cancelled")
}