yozefu_command/
lib.rs

1//! Structures and utility functions to build the command line interface of `yozefu`.
2//! It relies on the [`clap`](https://crates.io/crates/clap) crate.
3
4mod cli;
5mod cluster;
6mod command;
7mod headless;
8mod log;
9mod theme;
10use app::configuration::GlobalConfig;
11pub use clap::Parser;
12pub use cli::Cli;
13pub use cluster::Cluster;
14use lib::Error;
15pub use tui::TuiError;
16
17pub use app::APPLICATION_NAME;
18
19pub fn read_config() -> Result<GlobalConfig, Error> {
20    GlobalConfig::read(&GlobalConfig::path()?)
21}