diff options
author | Kunal Mohan <kunalmohan99@gmail.com> | 2021-05-16 16:42:50 +0530 |
---|---|---|
committer | Kunal Mohan <kunalmohan99@gmail.com> | 2021-05-16 21:41:56 +0530 |
commit | 2038947a14d32d89da2bdbcaa1381c3015ac9c7a (patch) | |
tree | 5a332470e32b380816098594a89d3c3db1f6eb53 /src/main.rs | |
parent | 28212f54309d09263c6daa1801d49e8b4311be12 (diff) |
Big refactor: separate crates for client, server and utilities
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 25 |
1 files changed, 8 insertions, 17 deletions
diff --git a/src/main.rs b/src/main.rs index 12842b58c..1e1d4764e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,31 +1,22 @@ -mod cli; -mod client; -mod common; -mod server; #[cfg(test)] mod tests; -use client::{boundaries, layout, panes, start_client, tab}; -use common::{ - command_is_executing, errors, os_input_output, pty, screen, setup::Setup, utils, wasm_vm, -}; -use server::start_server; +use std::convert::TryFrom; use structopt::StructOpt; - -use crate::cli::CliArgs; -use crate::command_is_executing::CommandIsExecuting; -use crate::common::input::config::Config; -use crate::os_input_output::{get_client_os_input, get_server_os_input}; -use crate::utils::{ +use zellij_client::{os_input_output::get_client_os_input, start_client}; +use zellij_server::{os_input_output::get_server_os_input, start_server}; +use zellij_utils::{ + cli::{CliArgs, ConfigCli}, consts::{ZELLIJ_TMP_DIR, ZELLIJ_TMP_LOG_DIR}, + input::config::Config, logging::*, + setup::Setup, }; -use std::convert::TryFrom; pub fn main() { let opts = CliArgs::from_args(); - if let Some(crate::cli::ConfigCli::Setup(setup)) = opts.option.clone() { + if let Some(ConfigCli::Setup(setup)) = opts.option.clone() { Setup::from_cli(&setup, opts).expect("Failed to print to stdout"); std::process::exit(0); } else { |