Don't pass dry_run as a boolean to functions

This commit is contained in:
Roey Darwish Dror
2018-12-31 13:26:17 +02:00
parent 23ae157c72
commit 957d73c634
13 changed files with 257 additions and 196 deletions

View File

@@ -1,4 +1,5 @@
use super::error::{Error, ErrorKind};
use super::executor::RunType;
use directories::BaseDirs;
use failure::ResultExt;
use serde::Deserialize;
@@ -78,7 +79,7 @@ pub struct Opt {
/// Print what would be done
#[structopt(short = "n", long = "dry-run")]
pub dry_run: bool,
pub run_type: RunType,
/// Do not ask to retry failed steps
#[structopt(long = "no-retry")]