1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
use lazy_static::lazy_static;
lazy_static! {
pub static ref CONFIG_FILE: Option<String> = {
dirs_next::home_dir().map(|mut path| {
path.extend(&[".config", "solana", "cli", "config.yml"]);
path.to_str().unwrap().to_string()
})
};
}
pub mod process_command;
pub mod command;
pub mod app;
#[macro_export]
macro_rules! check_and_update_err {
($result: expr, $err: expr) => {
match $result.is_err() {
true => Err($err),
false => Ok($result.unwrap()),
}
};
}