pub fn command(self) -> Result<Box<dyn Handler>> {
        if let Some(command) = self.command {
            return match command {
                Command::List(cmd) => Ok(Box::new(cmd)),
            };
        }

        Err(anyhow!(
            "no command provided. To start client in daemon mode, use --daemon."
        ))
    }
/// Get the current command to execute.
///
/// If the command is not valid for the current enabled mode (daemon or agent), we must throw an error.
Get the current command to execute.
If the command is not valid for the current enabled mode (daemon or agent), we must throw an error.
Get the current command to execute . If the command is not valid for the current enabled mode ( daemon or agent ) we must throw an error .
pub fn command(self) -> Result<Box<dyn Handler>> {
        if let Some(command) = self.command {
            return match command {
                Command::List(cmd) => Ok(Box::new(cmd)),
            };
        }
        Err(anyhow!(
            "no command provided. To start client in daemon mode, use --daemon."
        ))
    }
pub fn command ( self ) -> Result < Box < dyn Handler > > { if let Some ( command ) = self . command { return match command { Command :: List ( cmd ) => Ok ( Box :: new ( cmd ) ) , } ; } Err ( anyhow ! ( " " ) ) }
Get the current command to execute.
Get the current command to execute .
self
self