@@ -131,13 +131,13 @@ pub fn initialize_build(
131131    filter :  & Option < regex:: Regex > , 
132132    show_progress :  bool , 
133133    path :  & Path , 
134-     snapshot_output :  bool , 
134+     plain_output :  bool , 
135135    warn_error :  Option < String > , 
136136)  -> Result < BuildCommandState >  { 
137137    let  project_context = ProjectContext :: new ( path) ?; 
138138    let  compiler = get_compiler_info ( & project_context) ?; 
139139
140-     if  !snapshot_output  && show_progress { 
140+     if  !plain_output  && show_progress { 
141141        print ! ( "{} {}Building package tree..." ,  style( "[1/7]" ) . bold( ) . dim( ) ,  TREE ) ; 
142142        let  _ = stdout ( ) . flush ( ) ; 
143143    } 
@@ -149,7 +149,7 @@ pub fn initialize_build(
149149    let  compiler_check = verify_compiler_info ( & packages,  & compiler) ; 
150150
151151    if  show_progress { 
152-         if  snapshot_output  { 
152+         if  plain_output  { 
153153            if  let  CompilerCheckResult :: CleanedPackagesDueToCompiler  = compiler_check { 
154154                // Snapshot-friendly output (no progress prefixes or emojis) 
155155                println ! ( "Cleaned previous build due to compiler update" ) ; 
@@ -181,7 +181,7 @@ pub fn initialize_build(
181181
182182    let  timing_source_files = Instant :: now ( ) ; 
183183
184-     if  !snapshot_output  && show_progress { 
184+     if  !plain_output  && show_progress { 
185185        print ! ( 
186186            "{} {}Finding source files..." , 
187187            style( "[2/7]" ) . bold( ) . dim( ) , 
@@ -194,7 +194,7 @@ pub fn initialize_build(
194194    packages:: parse_packages ( & mut  build_state) ; 
195195    let  timing_source_files_elapsed = timing_source_files. elapsed ( ) ; 
196196
197-     if  !snapshot_output  && show_progress { 
197+     if  !plain_output  && show_progress { 
198198        println ! ( 
199199            "{}{} {}Found source files in {:.2}s" , 
200200            LINE_CLEAR , 
@@ -216,7 +216,7 @@ pub fn initialize_build(
216216    let  compile_assets_state = read_compile_state:: read ( & mut  build_state) ?; 
217217    let  timing_compile_state_elapsed = timing_compile_state. elapsed ( ) ; 
218218
219-     if  !snapshot_output  && show_progress { 
219+     if  !plain_output  && show_progress { 
220220        println ! ( 
221221            "{}{} {}Read compile state {:.2}s" , 
222222            LINE_CLEAR , 
@@ -238,7 +238,7 @@ pub fn initialize_build(
238238    let  timing_cleanup_elapsed = timing_cleanup. elapsed ( ) ; 
239239
240240    if  show_progress { 
241-         if  snapshot_output  { 
241+         if  plain_output  { 
242242            println ! ( "Cleaned {diff_cleanup}/{total_cleanup}" ) 
243243        }  else  { 
244244            println ! ( 
@@ -268,29 +268,29 @@ pub enum IncrementalBuildErrorKind {
268268
269269#[ derive( Debug ,  Clone ) ]  
270270pub  struct  IncrementalBuildError  { 
271-     pub  snapshot_output :  bool , 
271+     pub  plain_output :  bool , 
272272    pub  kind :  IncrementalBuildErrorKind , 
273273} 
274274
275275impl  fmt:: Display  for  IncrementalBuildError  { 
276276    fn  fmt ( & self ,  f :  & mut  fmt:: Formatter )  -> fmt:: Result  { 
277277        match  & self . kind  { 
278278            IncrementalBuildErrorKind :: SourceFileParseError  => { 
279-                 if  self . snapshot_output  { 
279+                 if  self . plain_output  { 
280280                    write ! ( f,  "{LINE_CLEAR}  Could not parse Source Files" , ) 
281281                }  else  { 
282282                    write ! ( f,  "{LINE_CLEAR}  {CROSS}Could not parse Source Files" , ) 
283283                } 
284284            } 
285285            IncrementalBuildErrorKind :: CompileError ( Some ( e) )  => { 
286-                 if  self . snapshot_output  { 
286+                 if  self . plain_output  { 
287287                    write ! ( f,  "{LINE_CLEAR}  Failed to Compile. Error: {e}" , ) 
288288                }  else  { 
289289                    write ! ( f,  "{LINE_CLEAR}  {CROSS}Failed to Compile. Error: {e}" , ) 
290290                } 
291291            } 
292292            IncrementalBuildErrorKind :: CompileError ( None )  => { 
293-                 if  self . snapshot_output  { 
293+                 if  self . plain_output  { 
294294                    write ! ( f,  "{LINE_CLEAR}  Failed to Compile. See Errors Above" , ) 
295295                }  else  { 
296296                    write ! ( f,  "{LINE_CLEAR}  {CROSS}Failed to Compile. See Errors Above" , ) 
@@ -307,11 +307,11 @@ pub fn incremental_build(
307307    show_progress :  bool , 
308308    only_incremental :  bool , 
309309    create_sourcedirs :  bool , 
310-     snapshot_output :  bool , 
310+     plain_output :  bool , 
311311)  -> Result < ( ) ,  IncrementalBuildError >  { 
312312    logs:: initialize ( & build_state. packages ) ; 
313313    let  num_dirty_modules = build_state. modules . values ( ) . filter ( |m| is_dirty ( m) ) . count ( )  as  u64 ; 
314-     let  pb = if  !snapshot_output  && show_progress { 
314+     let  pb = if  !plain_output  && show_progress { 
315315        ProgressBar :: new ( num_dirty_modules) 
316316    }  else  { 
317317        ProgressBar :: hidden ( ) 
@@ -334,7 +334,7 @@ pub fn incremental_build(
334334    match  result_asts { 
335335        Ok ( _ast)  => { 
336336            if  show_progress { 
337-                 if  snapshot_output  { 
337+                 if  plain_output  { 
338338                    println ! ( "Parsed {num_dirty_modules} source files" ) 
339339                }  else  { 
340340                    println ! ( 
@@ -352,7 +352,7 @@ pub fn incremental_build(
352352        Err ( err)  => { 
353353            logs:: finalize ( & build_state. packages ) ; 
354354
355-             if  !snapshot_output  && show_progress { 
355+             if  !plain_output  && show_progress { 
356356                println ! ( 
357357                    "{}{} {}Error parsing source files in {:.2}s" , 
358358                    LINE_CLEAR , 
@@ -366,7 +366,7 @@ pub fn incremental_build(
366366            println ! ( "{}" ,  & err) ; 
367367            return  Err ( IncrementalBuildError  { 
368368                kind :  IncrementalBuildErrorKind :: SourceFileParseError , 
369-                 snapshot_output , 
369+                 plain_output , 
370370            } ) ; 
371371        } 
372372    } 
@@ -376,7 +376,7 @@ pub fn incremental_build(
376376    let  timing_deps_elapsed = timing_deps. elapsed ( ) ; 
377377    current_step += 1 ; 
378378
379-     if  !snapshot_output  && show_progress { 
379+     if  !plain_output  && show_progress { 
380380        println ! ( 
381381            "{}{} {}Collected deps in {:.2}s" , 
382382            LINE_CLEAR , 
@@ -400,7 +400,7 @@ pub fn incremental_build(
400400    } ; 
401401
402402    let  start_compiling = Instant :: now ( ) ; 
403-     let  pb = if  !snapshot_output  && show_progress { 
403+     let  pb = if  !plain_output  && show_progress { 
404404        ProgressBar :: new ( build_state. modules . len ( ) . try_into ( ) . unwrap ( ) ) 
405405    }  else  { 
406406        ProgressBar :: hidden ( ) 
@@ -422,7 +422,7 @@ pub fn incremental_build(
422422    ) 
423423    . map_err ( |e| IncrementalBuildError  { 
424424        kind :  IncrementalBuildErrorKind :: CompileError ( Some ( e. to_string ( ) ) ) , 
425-         snapshot_output , 
425+         plain_output , 
426426    } ) ?; 
427427
428428    let  compile_duration = start_compiling. elapsed ( ) ; 
@@ -434,7 +434,7 @@ pub fn incremental_build(
434434    pb. finish ( ) ; 
435435    if  !compile_errors. is_empty ( )  { 
436436        if  show_progress { 
437-             if  snapshot_output  { 
437+             if  plain_output  { 
438438                println ! ( "Compiled {num_compiled_modules} modules" ) 
439439            }  else  { 
440440                println ! ( 
@@ -458,11 +458,11 @@ pub fn incremental_build(
458458        } 
459459        Err ( IncrementalBuildError  { 
460460            kind :  IncrementalBuildErrorKind :: CompileError ( None ) , 
461-             snapshot_output , 
461+             plain_output , 
462462        } ) 
463463    }  else  { 
464464        if  show_progress { 
465-             if  snapshot_output  { 
465+             if  plain_output  { 
466466                println ! ( "Compiled {num_compiled_modules} modules" ) 
467467            }  else  { 
468468                println ! ( 
@@ -539,7 +539,7 @@ pub fn build(
539539    show_progress :  bool , 
540540    no_timing :  bool , 
541541    create_sourcedirs :  bool , 
542-     snapshot_output :  bool , 
542+     plain_output :  bool , 
543543    warn_error :  Option < String > , 
544544)  -> Result < BuildCommandState >  { 
545545    let  default_timing:  Option < std:: time:: Duration >  = if  no_timing { 
@@ -553,7 +553,7 @@ pub fn build(
553553        filter, 
554554        show_progress, 
555555        path, 
556-         snapshot_output , 
556+         plain_output , 
557557        warn_error, 
558558    ) 
559559    . map_err ( |e| anyhow ! ( "Could not initialize build. Error: {e}" ) ) ?; 
@@ -565,10 +565,10 @@ pub fn build(
565565        show_progress, 
566566        false , 
567567        create_sourcedirs, 
568-         snapshot_output , 
568+         plain_output , 
569569    )  { 
570570        Ok ( _)  => { 
571-             if  !snapshot_output  && show_progress { 
571+             if  !plain_output  && show_progress { 
572572                let  timing_total_elapsed = timing_total. elapsed ( ) ; 
573573                println ! ( 
574574                    "\n {}{}Finished Compilation in {:.2}s" , 
0 commit comments