fixed windows welcome header unable to be read

This commit is contained in:
John O'Keefe 2023-12-09 12:07:06 -05:00
parent d38cfc8036
commit 029058f49c
2 changed files with 1 additions and 2 deletions

View File

@ -11,5 +11,4 @@ func Error(err error) {
pterm.Error.Println(err)
os.Exit(1)
}
return
}

View File

@ -14,7 +14,7 @@ import (
func main() {
// Set Welcome Header
pterm.DefaultHeader.WithBackgroundStyle(pterm.NewStyle(pterm.BgCyan)).WithTextStyle(pterm.NewStyle(pterm.FgCyan)).Println("Welcome to Checkdigit Calculator")
pterm.DefaultHeader.WithBackgroundStyle(pterm.NewStyle(pterm.BgCyan)).WithTextStyle(pterm.NewStyle(pterm.FgBlack)).Println("Welcome to Checkdigit Calculator")
// Check what directory the commandline is on when the program is launched.
directory, err := os.Getwd()