1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
// Allow dead code for items that are part of the public API but only used in tests
#![allow(dead_code)]
mod analyzer;
#[cfg(feature = "archive")]
mod archive;
mod cmd;
mod convert;
mod copy_data;
// The binary duplicates module compilation from `lib.rs` (each `mod` below is
// the same source file compiled twice: once for the library crate, once
// inlined here). `diagnostic`/`generate`/`render`/`synthetic` re-export a
// staged API meant for library consumers (see `generate`'s module docs);
// nothing in the CLI itself reaches most of it, so those `pub use` items are
// legitimately unused from the binary's perspective — scoped here rather than
// crate-wide so an unused import anywhere else in the bin still fails
// `clippy -D warnings`.
#[allow(unused_imports)]
mod diagnostic;
mod differ;
#[cfg(feature = "duckdb-query")]
mod duckdb;
mod fake_data;
#[allow(unused_imports)]
mod generate;
mod graph;
mod json_schema;
#[cfg(feature = "man-pages")]
mod man;
mod merger;
mod parser;
mod pk;
#[allow(unused_imports)]
mod profile;
mod progress;
mod redactor;
#[allow(unused_imports)]
mod render;
mod sample;
mod schema;
mod shard;
mod splitter;
#[allow(unused_imports)]
mod synthetic;
mod transform_common;
mod validate;
mod writer;
#[cfg(feature = "archive")]
mod zip_input;
use clap::Parser;
use cmd::Cli;
fn main() -> std::process::ExitCode {
let cli = Cli::parse();
match cmd::run(cli) {
Ok(code) => code,
Err(e) => {
eprintln!("{e}");
std::process::ExitCode::FAILURE
}
}
}