diff options
| author | denis <denismaximov98@gmail.com> | 2021-05-02 11:59:20 +0300 |
|---|---|---|
| committer | denis <denismaximov98@gmail.com> | 2021-05-02 11:59:20 +0300 |
| commit | 452940fb6530bc508d26c9ebaf6dd784751f6351 (patch) | |
| tree | cd57bafebd00503eb6f12480a43d6aa9a02e45e5 /src/common/mod.rs | |
| parent | chore: clippy please allow it (diff) | |
| parent | docs(changelog): Improved Config Loading #423 (diff) | |
| download | sl0ppij-452940fb6530bc508d26c9ebaf6dd784751f6351.tar.gz sl0ppij-452940fb6530bc508d26c9ebaf6dd784751f6351.tar.xz sl0ppij-452940fb6530bc508d26c9ebaf6dd784751f6351.zip | |
Merge branch 'main' into x-colors
Diffstat (limited to 'src/common/mod.rs')
| -rw-r--r-- | src/common/mod.rs | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/common/mod.rs b/src/common/mod.rs index c9b8e0e2..b17fce34 100644 --- a/src/common/mod.rs +++ b/src/common/mod.rs @@ -120,7 +120,7 @@ pub enum AppInstruction { /// Start Zellij with the specified [`OsApi`] and command-line arguments. // FIXME this should definitely be modularized and split into different functions. -pub fn start(mut os_input: Box<dyn OsApi>, opts: CliArgs) { +pub fn start(mut os_input: Box<dyn OsApi>, opts: CliArgs, config: Config) { let take_snapshot = "\u{1b}[?1049h"; os_input.unset_raw_mode(0); let _ = os_input @@ -130,15 +130,6 @@ pub fn start(mut os_input: Box<dyn OsApi>, opts: CliArgs) { env::set_var(&"ZELLIJ", "0"); - let config_dir = opts.config_dir.or_else(install::default_config_dir); - - let config = Config::from_cli_config(opts.config, opts.option, config_dir) - .map_err(|e| { - eprintln!("There was an error in the config file:\n{}", e); - std::process::exit(1); - }) - .unwrap(); - let command_is_executing = CommandIsExecuting::new(); let full_screen_ws = os_input.get_terminal_size_using_fd(0); |
