pub fn update_from_config(&mut self) {
        let config = if let Some(path) = &self.config {
            Config::from_path(path).unwrap()
        } else {
            let mut local_config_path = self.directory.clone();
            local_config_path.push("nabu.toml");

            Config::from_path(&local_config_path)
                .or_else(|_| Config::from_path(global_config_path()))
                .unwrap_or_default()
        };

        if self.delay.is_none() {
            self.delay = Some(config.delay);
        }

        if self.ignore.is_empty() {
            self.ignore = config.ignore.clone();
        }

        if !self.push_on_exit {
            self.push_on_exit |= config.push_on_exit;
        }
    }
/// Update the arguments with values from the configuration file.
/// Only replaces missing values.
Update the arguments with values from the configuration file.
Only replaces missing values.
Update the arguments with values from the configuration file . Only replaces missing values .
pub fn update_from_config(&mut self) {
        let config = if let Some(path) = &self.config {
            Config::from_path(path).unwrap()
        } else {
            let mut local_config_path = self.directory.clone();
            local_config_path.push("nabu.toml");
            Config::from_path(&local_config_path)
                .or_else(|_| Config::from_path(global_config_path()))
                .unwrap_or_default()
        };
        if self.delay.is_none() {
            self.delay = Some(config.delay);
        }
        if self.ignore.is_empty() {
            self.ignore = config.ignore.clone();
        }
        if !self.push_on_exit {
            self.push_on_exit |= config.push_on_exit;
        }
    }
pub fn update_from_config ( & mut self ) { let config = if let Some ( path ) = & self . config { Config :: from_path ( path ) . unwrap ( ) } else { let mut local_config_path = self . directory . clone ( ) ; local_config_path . push ( " " ) ; Config :: from_path ( & local_config_path ) . or_else ( | _ | Config :: from_path ( global_config_path ( ) ) ) . unwrap_or_default ( ) } ; if self . delay . is_none ( ) { self . delay = Some ( config . delay ) ; } if self . ignore . is_empty ( ) { self . ignore = config . ignore . clone ( ) ; } if ! self . push_on_exit { self . push_on_exit |= config . push_on_exit ; } }
Update the arguments with values from the configuration file.
Update the arguments with values from the configuration file .
&mut self
&mut self