Skip to main content

option_sdk/
lib.rs

1//! Shared paths, identity, config, crash, doctor, and terminal helpers for
2//! Option family apps (`optionSDK`).
3#![doc = include_str!("../README.md")]
4
5mod app;
6mod color;
7mod config;
8mod crash;
9mod fs;
10mod migrate;
11mod paths;
12mod term;
13
14pub mod doctor;
15pub mod user_dirs;
16
17#[cfg(test)]
18mod test_env;
19
20pub use app::App;
21pub use color::{color_enabled, color_on_stderr, color_on_stdout};
22pub use config::{ConfigError, load_toml, load_toml_chain, save_toml};
23pub use crash::{crash_log_path, install_crash_hook};
24pub use fs::atomic_write;
25pub use migrate::{migrate_dir, migrate_file};
26pub use paths::{expand_tilde, home_dir, option_root};
27pub use term::Style;