diff options
author | Kunal Mohan <kunalmohan99@gmail.com> | 2021-05-19 18:09:22 +0530 |
---|---|---|
committer | Kunal Mohan <kunalmohan99@gmail.com> | 2021-05-22 22:19:50 +0530 |
commit | d6fc7b04d14e8eeb5157cace639cc1d157766987 (patch) | |
tree | 3c8ff910ad3864c091340de5ef55236e59d17ac7 /src/main.rs | |
parent | d13fc7cafab760d3e69528a71c60e94785699709 (diff) |
add attach and list sessions subcommand to CliArgs
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.rs b/src/main.rs index a970ce446..eb7f476b9 100644 --- a/src/main.rs +++ b/src/main.rs @@ -5,7 +5,7 @@ use std::convert::TryFrom; 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}, + cli::{CliArgs, Command}, consts::{ZELLIJ_TMP_DIR, ZELLIJ_TMP_LOG_DIR}, input::config::Config, logging::*, @@ -16,8 +16,8 @@ use zellij_utils::{ pub fn main() { let opts = CliArgs::from_args(); - if let Some(ConfigCli::Setup(setup)) = opts.option.clone() { - Setup::from_cli(&setup, &opts).expect("Failed to print to stdout"); + if let Some(Command::Setup(ref setup)) = opts.command { + Setup::from_cli(setup, &opts).expect("Failed to print to stdout"); } let config = match Config::try_from(&opts) { |