lrpm 0.1.0

Lite-xl's rusty plugin manager.
1
2
3
4
5
6
7
8
9
10
11
12
use dirs;

pub fn user_dir() -> String {
    if let Some(path) = dirs::home_dir(){
        let path_string: String = path.to_string_lossy().into_owned();
        path_string
    } else{
        String::new()
    }
}

pub const JSON_URL:&str = "https://raw.githubusercontent.com/lite-xl/lite-xl-plugins/master/manifest.json";