Skip to content

Commit

Permalink
adds logo
Browse files Browse the repository at this point in the history
  • Loading branch information
bentohset committed Mar 31, 2024
1 parent 20abba1 commit d766adb
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 13 deletions.
9 changes: 2 additions & 7 deletions cmd/gnm/main.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package main

import (
"fmt"
"log"
"os"
"path/filepath"
Expand Down Expand Up @@ -60,14 +59,10 @@ func main() {

func parseArgs() {
if len(os.Args) == 1 {
printLogo()
constants.PrintLogo()
} else if len(os.Args) == 2 {
if os.Args[1] == "-h" || os.Args[1] == "--help" || os.Args[1] == "h" || os.Args[1] == "help" {
printLogo()
constants.PrintLogo()
}
}
}

func printLogo() {
fmt.Println("GNM")
}
20 changes: 14 additions & 6 deletions internal/constants/constants.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package constants

import "fmt"

const (
// Name is the program name
Name = "gnm"
Expand All @@ -12,10 +14,16 @@ const (
// CrossSymbol is the code for check symbol
CrossSymbol = "\u2716 "

// PublicKey is the default name of SSH public key
PublicKey = "id_rsa.pub"
// PrivateKey is the default name of SSH private key
PrivateKey = "id_rsa"
// DefaultKey is the default alias name of SSH key
DefaultKey = "default"
Logo = `
_______ .__ __. .___ ___.
/ _____|| \ | | | \/ |
| | __ | \| | | \ / |
| | |_ | | . | | |\/| |
| |__| | | |\ | | | | |
\______| |__| \__| |__| |__|
`
)

func PrintLogo() {
fmt.Println(Logo)
}

0 comments on commit d766adb

Please sign in to comment.