blob: 9ecfbf0680d5e28154658bd216febd802db67c0b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
#[macro_use]
extern crate clap;
#[macro_use]
extern crate lazy_static;
#[macro_use]
extern crate serde_derive;
extern crate toml;
extern crate xdg;
mod joshuto;
const PROGRAM_NAME: &str = "joshuto";
const CONFIG_FILE: &str = "joshuto.toml";
const MIMETYPE_FILE: &str = "mimetype.toml";
const KEYMAP_FILE: &str = "keymap.toml";
const THEME_FILE: &str = "theme.toml";
fn main()
{
let args: Vec<String> = std::env::args().collect();
for arg in &args {
if arg.as_str() == "-v" {
println!("{}", crate_version!());
return
}
}
let config = joshuto::config::JoshutoConfig::get_config();
// println!("{:#?}", config);
let keymap = joshuto::config::JoshutoKeymap::get_config();
// println!("{:#?}", keymap);
joshuto::run(config, keymap);
}
|