csv-txt-excel-parallel-toolkit 0.4.7

A parallel and fast command line toolkit for small and large (>10G) CSV, TXT, and EXCEL files, with a unified api.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::utils::cli_result::CliResult;
use crate::utils::excel_reader::ExcelReader;
use std::path::Path;

pub fn run(path: &Path, sheet: usize) -> CliResult {
    // open file and header
    let mut range = ExcelReader::new(path, sheet)?;

    if let Some(r) = range.next() {
        r.iter()
            .enumerate()
            .for_each(|(u, r)| println!(" {u:<5}{r}"));
    }

    Ok(())
}