face 0.1.0

Fold And Cluster Entries — a Unix-style CLI for grouping, paging, and summarizing structured command output.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use clap::Parser;
use std::io::{stderr, stdin, stdout};

fn main() {
    let cli = face_cli::cli::Cli::parse();
    let stdin = stdin().lock();
    let stdout = stdout().lock();
    let stderr = stderr().lock();
    let mut io = face_cli::Io::new(stdin, stdout, stderr);
    if let Err(error) = face_cli::run(cli, &mut io) {
        eprintln!("face: {error}");
        std::process::exit(1);
    }
}