1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::{Model, models, Plugin};
use crate::file::file::FileFile;

pub struct File {}

impl Plugin for File {
    fn title(&mut self) -> &'static str { "文件系统" }
    fn model(&mut self, name: &str) -> Box<dyn Model> {
        match name {
            "file" => Box::new(FileFile {}),
            _ => models(name)
        }
    }
}

pub mod file;