diff --git a/Cargo.lock b/Cargo.lock index d46f222f..67a02cde 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1830,7 +1830,7 @@ dependencies = [ [[package]] name = "topgrade" -version = "8.1.0" +version = "8.1.1" dependencies = [ "anyhow", "cfg-if 1.0.0", diff --git a/Cargo.toml b/Cargo.toml index 2c93067b..3fa31974 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,7 +5,7 @@ categories = ["os"] keywords = ["upgrade", "update"] license-file = "LICENSE" repository = "https://github.com/r-darwish/topgrade" -version = "8.1.0" +version = "8.1.1" authors = ["Roey Darwish Dror "] exclude = ["doc/screenshot.gif"] edition = "2018" diff --git a/src/config.rs b/src/config.rs index ab844926..a6f3e9fc 100644 --- a/src/config.rs +++ b/src/config.rs @@ -11,7 +11,7 @@ use pretty_env_logger::formatted_timed_builder; use regex::Regex; use serde::Deserialize; use structopt::StructOpt; -use strum::{EnumIter, EnumString, EnumVariantNames, VariantNames}; +use strum::{EnumIter, EnumString, EnumVariantNames, IntoEnumIterator, VariantNames}; use sys_info::hostname; use which_crate::which; @@ -517,6 +517,10 @@ impl Config { enabled_steps.extend(only) } + if enabled_steps.is_empty() { + enabled_steps.extend(Step::iter()); + } + let mut disabled_steps: Vec = Vec::new(); disabled_steps.extend(&opt.disable); if let Some(disabled) = config_file.disable.as_ref() {