Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
Fix breakage
Browse files Browse the repository at this point in the history
  • Loading branch information
r-darwish committed Dec 12, 2021
1 parent 9795804 commit 1f3d8d3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>"]
exclude = ["doc/screenshot.gif"]
edition = "2018"
Expand Down
6 changes: 5 additions & 1 deletion src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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<Step> = Vec::new();
disabled_steps.extend(&opt.disable);
if let Some(disabled) = config_file.disable.as_ref() {
Expand Down

0 comments on commit 1f3d8d3

Please sign in to comment.