change header

This commit is contained in:
bcharest 2023-06-17 14:27:49 -04:00
parent fac4f4a7c2
commit e56b4a5b35
2 changed files with 4 additions and 5 deletions

View File

@ -1,7 +1,6 @@
package main
import (
"fmt"
"kode-starter/config"
"kode-starter/create"
"kode-starter/lists"
@ -50,6 +49,8 @@ func mainProgram(cmd *cobra.Command, args []string) {
config.SetInformations(cmd, args)
utils.PrintHeader()
// Check if the help flag is set
if cmd.Flags().Changed("help") || cmd.Flags().Changed("h") {
utils.PrintHelpFormated(version.GetFullVersion(), config.GetAuthor(), config.GetBuildDate(), cmd)
@ -64,9 +65,6 @@ func mainProgram(cmd *cobra.Command, args []string) {
func main() {
fmt.Println(utils.CreateLine(15))
utils.PrintHeader()
fmt.Println(utils.CreateLine(15))
rootCmd.Execute()
}

View File

@ -10,13 +10,14 @@ import (
)
func PrintHeader() {
fmt.Println(CreateLine(15))
fmt.Println(" __ __ __ ______ __ ")
fmt.Println(" / //_/ ____ ____/ / ___ / ____/ _____ ___ ____ _ / /_ ____ _____")
fmt.Println(" / ,< / __ \\ / __ / / _ \\ ______ / / / ___/ / _ \\ / __ `/ / __/ / __ \\ / ___/")
fmt.Println(" / /| | / /_/ // /_/ / / __//_____// /___ / / / __// /_/ / / /_ / /_/ / / / ")
fmt.Println("/_/ |_| \\____/ \\__,_/ \\___/ \\____/ /_/ \\___/ \\__,_/ \\__/ \\____/ /_/ ")
fmt.Println("")
fmt.Println(CreateLine(15))
}