fixed coloring
This commit is contained in:
		
							
								
								
									
										6
									
								
								main.go
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								main.go
									
									
									
									
									
								
							@@ -14,7 +14,9 @@ import (
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
func main() {
 | 
					func main() {
 | 
				
			||||||
	// Set Welcome Header
 | 
						// Set Welcome Header
 | 
				
			||||||
	pterm.DefaultHeader.WithBackgroundStyle(pterm.NewStyle(pterm.BgCyan)).WithTextStyle(pterm.NewStyle(pterm.FgBlack)).Println("Welcome to Checkdigit Calculator")
 | 
						// pterm.DefaultHeader.WithBackgroundStyle(pterm.NewStyle(pterm.BgCyan)).WithTextStyle(pterm.NewStyle(pterm.FgBlack)).Println("Welcome to Checkdigit Calculator")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						pterm.DefaultSection.Printfln(pterm.Cyan("Welcome to Check Digit Calculator"))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// Check what directory the commandline is on when the program is launched.
 | 
						// Check what directory the commandline is on when the program is launched.
 | 
				
			||||||
	directory, err := os.Getwd()
 | 
						directory, err := os.Getwd()
 | 
				
			||||||
@@ -28,7 +30,7 @@ func main() {
 | 
				
			|||||||
	if len(args) > 0 {
 | 
						if len(args) > 0 {
 | 
				
			||||||
		input = args[0]
 | 
							input = args[0]
 | 
				
			||||||
	} else {
 | 
						} else {
 | 
				
			||||||
		pterm.Printf(pterm.Cyan("What is the name of the file in this directory?: "))
 | 
							pterm.Printf(pterm.LightGreen("What is the name of the file in this directory?: "))
 | 
				
			||||||
		reader := bufio.NewReader(os.Stdin)
 | 
							reader := bufio.NewReader(os.Stdin)
 | 
				
			||||||
		input, err = reader.ReadString('\n')
 | 
							input, err = reader.ReadString('\n')
 | 
				
			||||||
		Error(err)
 | 
							Error(err)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user