ruwebframe 0.1.8

a simple webframe for rust actix-web, based on rudi and rbatis.
Documentation
use crate::rubase::rutils;
use crate::rubase::rutils::file_utils;
use crate::rudi::difactroy::find_bean_di_factroy;
use crate::{rucmd, rulog};

#[cfg(test)]
mod tests {
    use super::*;
    use crate::rubase::rudto::filedto::FileDto;

    #[test]
    fn test_01_rucmd_test() {
        let cmd = rucmd::find_bean_ru_cmd().unwrap();
        cmd.help();
    }

    #[test]
    fn test_11_make_di() {
        find_bean_di_factroy().unwrap().lock().unwrap().make_di();
    }
    #[test]
    fn test_12_list_di() {
        find_bean_di_factroy().unwrap().lock().unwrap().list_di();
    }

    #[test]
    fn test_13_list_di() {
        let files = file_utils::list_all_files_suffix("./logs", "log");
        for file in files {
            rulog::info(file.as_str());
        }
    }
    #[test]
    fn test_14_list_di() {
        println!("{}", file_utils::current_dir().unwrap().to_str().unwrap());
    }
    #[test]
    fn test_15_list_di() {
        let mut dto = FileDto::new();
        dto.home_dir = "./logs".to_string();
        dto.suffix = "log".to_string();
        dto.size = 1;

        let files = file_utils::list_files(&mut dto);
        for file in files {
            rulog::info2("ret:", file.as_str());
        }
    }
    #[test]
    fn test_15_list_rs_files() {
        let files = file_utils::list_rs_files("./src");
        for file in files {
            rulog::info(file.as_str());
        }
    }
    #[test]
    fn test_17_find_dirs() {
        let p = file_utils::current_dir().unwrap();
        println!("{}", p.as_path().to_str().unwrap());
        let files = file_utils::find_dir(p.as_path().to_str().unwrap(), "config");
        for file in files {
            crate::rulog::ru_log::info2("find_dirs:", file.to_str().unwrap());
        }
    }
    #[test]
    fn test_16_list_rs_files() {
        rulog::info2("basepatth:", rutils::find_base_path().as_str());
    }
}