File tree Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -454,9 +454,7 @@ impl Config {
454
454
} = flags;
455
455
456
456
let mut config = Config :: default_opts ( ) ;
457
- let mut exec_ctx = ExecutionContext :: new ( ) ;
458
- exec_ctx. set_verbose ( flags_verbose) ;
459
- exec_ctx. set_fail_fast ( flags_cmd. fail_fast ( ) ) ;
457
+ let exec_ctx = ExecutionContext :: new ( flags_verbose, flags_cmd. fail_fast ( ) ) ;
460
458
461
459
config. exec_ctx = exec_ctx;
462
460
Original file line number Diff line number Diff line change @@ -550,7 +550,7 @@ impl Default for CommandOutput {
550
550
#[ derive( Clone , Default ) ]
551
551
pub struct ExecutionContext {
552
552
dry_run : DryRun ,
553
- verbose : u8 ,
553
+ verbosity : u8 ,
554
554
pub fail_fast : bool ,
555
555
delayed_failures : Arc < Mutex < Vec < String > > > ,
556
556
command_cache : Arc < CommandCache > ,
@@ -603,8 +603,8 @@ impl CommandCache {
603
603
}
604
604
605
605
impl ExecutionContext {
606
- pub fn new ( ) -> Self {
607
- ExecutionContext :: default ( )
606
+ pub fn new ( verbosity : u8 , fail_fast : bool ) -> Self {
607
+ Self { verbosity , fail_fast , .. Default :: default ( ) }
608
608
}
609
609
610
610
pub fn dry_run ( & self ) -> bool {
@@ -629,7 +629,7 @@ impl ExecutionContext {
629
629
}
630
630
631
631
pub fn is_verbose ( & self ) -> bool {
632
- self . verbose > 0
632
+ self . verbosity > 0
633
633
}
634
634
635
635
pub fn fail_fast ( & self ) -> bool {
@@ -641,7 +641,7 @@ impl ExecutionContext {
641
641
}
642
642
643
643
pub fn set_verbose ( & mut self , value : u8 ) {
644
- self . verbose = value;
644
+ self . verbosity = value;
645
645
}
646
646
647
647
pub fn set_fail_fast ( & mut self , value : bool ) {
You can’t perform that action at this time.
0 commit comments