alive_watch

Crates.ioalive_watch
lib.rsalive_watch
version0.1.5
sourcesrc
created_at2024-04-10 16:16:14.255272
updated_at2024-04-23 05:06:27.873387
descriptionalive_watch : alter plugin for alive
homepagehttps://atomgit.com/i18n/alive/tree/dev/alter/alive_watch
repositoryhttps://atomgit.com/i18n/alive.git
max_upload_size
id1203756
size10,396
(3tieto)

documentation

README

alive_watch

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
}
Commit count: 0

cargo fmt