made colors better
This commit is contained in:
		
							parent
							
								
									60f122de78
								
							
						
					
					
						commit
						c4d2ec2529
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -111,16 +111,16 @@ impl ToString for BuildRuleKind<BuildRule> {
 | 
			
		|||
                    BuildRuleKind::Convenience(_) => {
 | 
			
		||||
                        special = true;
 | 
			
		||||
                        if rule.target.contains("clean") {
 | 
			
		||||
                            ret.push_str(&format!("{}printf '\\e[90m:: Cleaning up ...\\e[0m'\n", command_prefix));
 | 
			
		||||
                            ret.push_str(&format!("{}printf ':: Cleaning up ...\\e[0m'\n", command_prefix));
 | 
			
		||||
                        }
 | 
			
		||||
                        if rule.target.contains("run") {
 | 
			
		||||
                            ret.push_str(&format!("{}printf '\\e[34m:: Running\\e[0m \\e[1m%s\\e[0m \\e[34m...\\e[0m\\n' $(TARGET)\n", command_prefix));
 | 
			
		||||
                            ret.push_str(&format!("{}printf '\\e[36m:: Running\\e[0m \\e[1m%s\\e[0m \\e[36m...\\e[0m\\n' $(TARGET)\n", command_prefix));
 | 
			
		||||
                        }
 | 
			
		||||
                        ""
 | 
			
		||||
                    },
 | 
			
		||||
                };
 | 
			
		||||
                if !special {
 | 
			
		||||
                    ret.push_str(&format!("{}printf '\\e[90m:: {}\\e[0m \\e[1m%s\\e[0m \\e[90m...\\e[0m' {}\n", command_prefix, verb, 
 | 
			
		||||
                    ret.push_str(&format!("{}printf ':: {} \\e[1m%s\\e[0m ...\\e[0m' {}\n", command_prefix, verb, 
 | 
			
		||||
                                          (PathBuf::from(&rule.target)).file_name().unwrap().to_str().unwrap()));
 | 
			
		||||
                }
 | 
			
		||||
            }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue