fixed coloring
This commit is contained in:
parent
264cff93a2
commit
4ec896276f
6
main.go
6
main.go
@ -14,7 +14,9 @@ import (
|
||||
|
||||
func main() {
|
||||
// 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.
|
||||
directory, err := os.Getwd()
|
||||
@ -28,7 +30,7 @@ func main() {
|
||||
if len(args) > 0 {
|
||||
input = args[0]
|
||||
} 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)
|
||||
input, err = reader.ReadString('\n')
|
||||
Error(err)
|
||||
|
Loading…
Reference in New Issue
Block a user