Skip to content

Commit

Permalink
Banner on main.go
Browse files Browse the repository at this point in the history
  • Loading branch information
nthnn committed Nov 5, 2023
1 parent e1740c1 commit 570b1d6
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,33 @@ import (
"fmt"
"os"

"github.com/fatih/color"
"github.com/nthnn/AnkoWeb/server"
)

func printBanner() {
color.New(color.FgHiBlue).Print(`
█████╗ ███╗ ██╗██╗ ██╗ ██████╗ ██╗ ██╗███████╗██████╗
██╔══██╗████╗ ██║██║ ██╔╝██╔═══██╗██║ ██║██╔════╝██╔══██╗
███████║██╔██╗ ██║█████╔╝ ██║ ██║██║ █╗ ██║█████╗ ██████╔╝
██╔══██║██║╚██╗██║██╔═██╗ ██║ ██║██║███╗██║██╔══╝ ██╔══██╗
██║ ██║██║ ╚████║██║ ██╗╚██████╔╝╚███╔███╔╝███████╗██████╔╝
╚═╝ ╚═╝╚═╝ ╚═══╝╚═╝ ╚═╝ ╚═════╝ ╚══╝╚══╝ ╚══════╝╚═════╝
`,
)
}

func initFlags() {
flag.CommandLine.SetOutput(os.Stdout)

flag.Usage = func() {
fmt.Println("AnkoWeb v0.0.1 - Primitive Version\n\nParameters:")
printBanner()

color.New(color.FgHiYellow).Print(" AnkoWeb v0.0.1 - Primitive Version\n\n")

fmt.Println("–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––")
fmt.Println("Parameters:")
flag.PrintDefaults()
}
flag.Parse()
Expand Down

0 comments on commit 570b1d6

Please sign in to comment.