reactive_graph_client/
bin_client.rs1use crate::client::args::ClientAndSharedArguments;
2use crate::client::client;
3use crate::shared::completions::handle_completions;
4use crate::shared::info::handle_info_command;
5#[cfg(target_os = "linux")]
6use crate::shared::manpages::handle_man_pages;
7use crate::shared::markdown_help::handle_markdown_help;
8use clap::Parser;
9use std::alloc::System;
10
11pub mod client;
12pub mod shared;
13
14#[global_allocator]
15static ALLOCATOR: System = System;
16
17fn main() {
18 let args = ClientAndSharedArguments::parse();
19
20 handle_markdown_help::<ClientAndSharedArguments>(&args.shared.markdown_help);
21
22 #[cfg(target_os = "linux")]
23 handle_man_pages::<ClientAndSharedArguments>(&args.shared.man_pages);
24
25 handle_completions::<ClientAndSharedArguments>(&args.shared.completions);
26
27 handle_info_command(&args.shared.info);
28
29 client(args.client)
30}