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
//! `apic` — API contract tooling.
//!
//! Binary entry point. The command-line interface and all subcommand handling
//! live in [`cli`]; everything below is wiring for the supporting modules.
/// Restores the default `SIGPIPE` disposition on Unix.
///
/// Rust installs `SIG_IGN` for `SIGPIPE` at startup, which turns a write to a
/// closed pipe (e.g. `apic read | head`) into a panic instead of a clean exit.
/// Resetting to `SIG_DFL` makes the process terminate quietly like a normal
/// Unix tool.
/// Delegates to [`cli::run`], which parses the command line and dispatches to
/// the matching subcommand handler.