fn new()

in scripts/src/command/create_package_xml.rs [58:74]


    fn new(path: &str) -> Self {
        let path = path.trim_matches('"');
        let role = if path.ends_with(".md")
            || path.starts_with("docs/")
            || path.starts_with("dist-material/")
            || ["LICENSE", "NOTICE"].contains(&path)
        {
            "doc"
        } else {
            "src"
        };

        Self {
            name: path.to_owned(),
            role: role.to_owned(),
        }
    }