fixed main func
This commit is contained in:
		
							parent
							
								
									28743704cc
								
							
						
					
					
						commit
						165ba20005
					
				
							
								
								
									
										8
									
								
								main.go
									
									
									
									
									
								
							
							
						
						
									
										8
									
								
								main.go
									
									
									
									
									
								
							| @ -138,11 +138,6 @@ func main() { | |||||||
| 	var flagEnableL = flag.Bool("l", false, "Enable ls -l output") | 	var flagEnableL = flag.Bool("l", false, "Enable ls -l output") | ||||||
| 	var flagEnableA = flag.Bool("a", false, "Enable ls -a output") | 	var flagEnableA = flag.Bool("a", false, "Enable ls -a output") | ||||||
| 
 | 
 | ||||||
| func main() { |  | ||||||
| 	var flagNoColor = flag.Bool("no-colour", false, "Disable color output") |  | ||||||
| 	var flagNoList = flag.Bool("no-l", false, "Disable ls -l output") |  | ||||||
| 	var dir string |  | ||||||
| 
 |  | ||||||
| 	flag.Parse() | 	flag.Parse() | ||||||
| 
 | 
 | ||||||
| 	if *flagNoColor { | 	if *flagNoColor { | ||||||
| @ -157,8 +152,5 @@ func main() { | |||||||
| 		PrintWithoutL(content, flagEnableA) | 		PrintWithoutL(content, flagEnableA) | ||||||
| 	} else { | 	} else { | ||||||
| 		PrintWithL(content, flagEnableA) | 		PrintWithL(content, flagEnableA) | ||||||
| 	dirOutput := color.New(color.FgCyan, color.Bold) |  | ||||||
| 	fileOutput := color.New(color.FgWhite, color.Bold) |  | ||||||
| 
 |  | ||||||
| 	} | 	} | ||||||
| } | } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user