feat: more fields in result detail parser
This commit is contained in:
		
							parent
							
								
									ed43414b86
								
							
						
					
					
						commit
						340ba5d0c5
					
				| 
						 | 
				
			
			@ -38,6 +38,12 @@ class ParserResultDetail(BaseModel):
 | 
			
		|||
        False, validation_alias=AliasChoices("proc-peak", "proc_peak")
 | 
			
		||||
    )  # Display peak process count
 | 
			
		||||
    error: bool = False  # Display error messages
 | 
			
		||||
    code_block: bool = Field(
 | 
			
		||||
        True, validation_alias=AliasChoices("code-block", "code_block")
 | 
			
		||||
    )  # Display file in code block
 | 
			
		||||
    max_length: int = Field(
 | 
			
		||||
        2048, validation_alias=AliasChoices("max-length", "max_length")
 | 
			
		||||
    )  # Max output length of each file
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
class ParserFile(BaseModel):
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -151,6 +151,8 @@ def fix_result_detail(
 | 
			
		|||
        show_memory=result_detail_parser_config.mem,
 | 
			
		||||
        show_error=result_detail_parser_config.error,
 | 
			
		||||
        show_proc_peak=result_detail_parser_config.proc_peak,
 | 
			
		||||
        files_in_code_block=result_detail_parser_config.code_block,
 | 
			
		||||
        max_file_length=result_detail_parser_config.max_length,
 | 
			
		||||
    )
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user