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