Crates.io | alive_watch |
lib.rs | alive_watch |
version | 0.1.5 |
source | src |
created_at | 2024-04-10 16:16:14.255272 |
updated_at | 2024-04-23 05:06:27.873387 |
description | alive_watch : alter plugin for alive |
homepage | https://atomgit.com/i18n/alive/tree/dev/alter/alive_watch |
repository | https://atomgit.com/i18n/alive.git |
max_upload_size | |
id | 1203756 |
size | 10,396 |
use std::path::PathBuf;
use alive_watch::Conf;
use aok::{Result, OK};
use static_init::constructor;
use tracing::info;
#[constructor(0)]
extern "C" fn init() {
loginit::init()
}
#[test]
fn test() -> Result<()> {
let dir: PathBuf = std::env!("CARGO_MANIFEST_DIR").into();
let conf = Conf::new(dir.parent().unwrap().join("conf"));
info!("dir: {:?}", conf);
for i in conf.cluster("ol")?.iter() {
dbg!(i);
}
OK
}