parqcat 1.0.1

A lightweight Unix-style CLI for inspecting Parquet files.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use std::io::IsTerminal;
use std::process::ExitCode;

fn main() -> ExitCode {
    let stdout = std::io::stdout();
    let default_format = if stdout.is_terminal() {
        parqcat::OutputFormat::Table
    } else {
        parqcat::OutputFormat::Jsonl
    };

    parqcat::main_entry_with_default_format(
        std::env::args_os().skip(1),
        stdout,
        std::io::stderr(),
        default_format,
    )
}