pub fn switch( config: &Config, name: &str, was_requested: bool, operation: &Operation) -> Result<()>