summaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
authorCaleb Bassi <calebjbassi@gmail.com>2019-02-15 04:43:09 -0800
committerCaleb Bassi <calebjbassi@gmail.com>2019-02-15 05:56:09 -0800
commit29b3922f9efb9f277641a63f8f1719a15cbb8d16 (patch)
treed919ba11fa5c754565c64c43cb1614f7ae4d2546 /src/main.rs
parent3853eef2d052460982903038daac7abd2b71d12e (diff)
refactor: project layout
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs22
1 files changed, 19 insertions, 3 deletions
diff --git a/src/main.rs b/src/main.rs
index 2b07eb1..7c6efdd 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -5,12 +5,25 @@ extern crate serde_derive;
extern crate structopt;
extern crate xdg;
-mod joshuto;
+mod commands;
+mod config;
+mod context;
+mod history;
+mod preview;
+mod run;
+mod sort;
+mod structs;
+mod tab;
+mod textfield;
+mod ui;
+mod unix;
+mod window;
use std::path::PathBuf;
use structopt::StructOpt;
-use joshuto::config::{JoshutoConfig, JoshutoKeymap};
+use config::{JoshutoConfig, JoshutoKeymap, JoshutoMimetype, JoshutoPreview, JoshutoTheme};
+use run::run;
const PROGRAM_NAME: &str = "joshuto";
const CONFIG_FILE: &str = "joshuto.toml";
@@ -33,6 +46,9 @@ lazy_static! {
}
temp
};
+ static ref theme_t: JoshutoTheme = JoshutoTheme::get_config();
+ static ref mimetype_t: JoshutoMimetype = JoshutoMimetype::get_config();
+ static ref preview_t: JoshutoPreview = JoshutoPreview::get_config();
}
#[derive(StructOpt, Debug)]
@@ -44,5 +60,5 @@ fn main() {
let config = JoshutoConfig::get_config();
let keymap = JoshutoKeymap::get_config();
- joshuto::run(config, keymap);
+ run(config, keymap);
}